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

    How to setup captive portal

    Captive Portal
    2
    5
    5.5k
    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.
    • R
      raiza
      last edited by

      Hello, I want to use captive portal on pfSense. pfSense is installed in a virtualbox in debian squeeze host. And the debian is connected to internet through Wifi. I set the debian to act as a DNS and when I try to connect to internet from my debian, the captive portal doesn't work. So what setup should I follow?

      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by

        In what way does the captive portal not work? Please complete the sentence

        I did … and I saw ... but I expected to see ...

        There are far too many way for computer gear to "not work" for me to have much chance of guessing the particular way your gear "doesn't work".

        Its not clear you have created the necessary "plumbing" for your debian to access the internet through your pfsense (and presumably back through your debian or are you able to move the WiFi interface to pfSense)?

        1 Reply Last reply Reply Quote 0
        • R
          raiza
          last edited by

          My debian host is connected to internet through Wifi.
          pfSense is installed in virtualbox.
          I also installed ubuntu in the virtualbox to act as a client. When I set ubuntu to use NAT networking, I can connect to internet too in ubuntu.
          What I expected to see is that when I connect to internet from ubuntu I am redirected to the captive portal authentication page.

          1 Reply Last reply Reply Quote 0
          • W
            wallabybob
            last edited by

            @raiza:

            I also installed ubuntu in the virtualbox to act as a client.

            What sort of client and of what server? WiFi client of router? DHCP client of pfSense?

            Have you checked ubuntu actually uses that server rather than another?

            @raiza:

            When I set ubuntu to use NAT networking, I can connect to internet too in ubuntu.

            Have you done a traceroute to verify ubuntu goes through pfSense?

            @raiza:

            What I expected to see is that when I connect to internet from ubuntu I am redirected to the captive portal authentication page.

            What steps have you taken to ensure than ubuntu uses pfSense as its default gateway? that ubuntu can actually access pfSense (e.g. ping pfSense LAN IP address)? access router through pfSense?

            Have you read the virtualbox manual section on networking? One option is to set up a bridge with ubuntu and pfSense LAN interface on the bridge so ubuntu can talk with pfSense. You would then need another bridge with a the pfSense WAN interface and a debian interface as members so pfSense can talk to debian and then the WiFi router. If you have a spare WiFi USB stick you could have virtualbox give it to pfSense and configure the pfSense WAN interface to use it.

            There is a range of options for interconnecting the virtual machines but virtualbox can't guess what you want.

            1 Reply Last reply Reply Quote 0
            • R
              raiza
              last edited by

              Thanks for your reply. I'm gonna try it and tell u if it's working.

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