How to setup captive portal



  • 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?



  • 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)?



  • 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.



  • @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.



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


Locked