Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Pfsense problem and HTTP redirection

    Scheduled Pinned Locked Moved Captive Portal
    7 Posts 3 Posters 1.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tomas25
      last edited by

      Hello everyone.

      I installed virtualbox on pfsense. I have two interfaces wan and lan  (classic) on my VM pfsense. I added a Vm win7 in an internal network behind my LAN interface. For now everything works fine, I have Internet on Vm win7.
      Then I added a captive portal but I have to make myself redirection. When I open my web browser, I do not fall directly on my captive portal … I have to type in http: // monserveurpfsense: 8002. Normally pfsense must make alone redirect from HTTP and HTTPS requests.
      For now, I'm out of ideas to solve this problem.

      If someone would have an idea on the problem ???

      1 Reply Last reply Reply Quote 0
      • M
        manpacheco
        last edited by

        Same here already have posted it ,what version are you using?

        1 Reply Last reply Reply Quote 0
        • M
          muswellhillbilly
          last edited by

          What are you using for DNS? The browser has to be able to resolve an external address before redirecting to the portal page. Until you've authenticated, external DNS servers are unavailable, so the best thing is to set PFS as a DNS forwarder and use the firewall as your primary DNS for your LAN clients.

          1 Reply Last reply Reply Quote 0
          • M
            manpacheco
            last edited by

            Try updating to new version 2.1.5 ,this version it  works to me .

            1 Reply Last reply Reply Quote 0
            • T
              tomas25
              last edited by

              The version is 2.2.6, the last

              And for the dns, I added a dns server windows server 2008 r2, it is functional, but as you say, it is not until we reached has not authenticated to the captive portal. You could tell me how to put the local dns in place?

              I'll put the 2.1.5

              1 Reply Last reply Reply Quote 0
              • M
                muswellhillbilly
                last edited by

                If you want to use a Windows DNS server (good idea if you're working in a Windows environment), just add the IP of your Windows DNS server to list of 'allowed IPs' in your captive portal config. Then set your Windows server to use an external name server as it's forwarder (8.8.8.8, etc). Your clients will then be able to resolve external names via your Windows server and your captive portal page will load correctly.

                1 Reply Last reply Reply Quote 0
                • T
                  tomas25
                  last edited by

                  It works great !! I thank you  :)

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.