Captive Portal and Load Banlancer



  • Hello, thanks for provide pfsense for users.

    On my config :

    LAN: 192.168.2.254/24

    WAN1: 192.168.1.225/24        from a adsl-router
                          GW: 192.168.1.1

    WAN2: 192.168.1.235/24        for 2 wan purpose

    Enable captive portal: local user Authentication

    at here, anything work ok, when i want to surf on web, the login page appears.
    but,when i add load balancer config to pfsens system.the problem is out.

    I configured "Service Balancer" call "balancer" add  WAN1's gateway ip and monitor ip.
    –----> at here , anyting ok.  (for testing)

    I changed "Firewall: Rules-LAN" from
            default rule's gateway from "default" to "balancer"

    ------> The problem is here:
            1.  when i want to surf on web, the login page don't appears.  direct go to the page i want to go.
            2.  i try to ping any ip on internet, result is time out.
            3.  i try to telnet a mail host 25/110 port, can't  established link.
                  port 80 is pass anyway? ???
            4.  i open "http://192.168.2.254:8000/" the login auth page open, l
                      ogin ok, then ping/25/110 port is passed.
            5. if  changed "Firewall: Rules-LAN"  default rule's
                      gateway from  "balancer" to "default" anything is ok again.

    client's dns,gateway has pointed to  192.168.2.254 already.

    this is my issue, just like
    http://forum.pfsense.org/index.php/topic,1627.0.html
    does avaz use load balancer?



  • Captive portal is not compatible with the load balancer.



  • Is it on the road ?



  • Not at the present, but who knows what we'll end up with down the road.



  • Hi,

    I have load balance and i configured the Captive Portal to my LAN interface and its all right.

    My configuration is:

    pfSense - Version: RC2 - built on Tue Aug 1 18:14:08 UTC 2006

    LAN
    192.168.1.1
    192.168.1.0/24

    WAN (ADSL 1Mb)
    172.30.30.20
    172.30.30.0/24

    OPT1 (ADSL 256Kb)
    10.59.0.20
    10.59.0.0/24

    I do this:

    1- Configure the LAN/WAN/OPT1 Ips

    2- Enabled Load Balance pool (172.30.30.1/172.30.30.1 + 10.59.0.1/10.59.0.1)

    3- Test the download speed, it was around 148 KB/s. I monitored the traffic in WAN and OPT1 and the load balance functioned.

    4- Enabled Captive Portal (LAN Interface / Enable logout popup window / Authentication: Local user manager)

    5- Create a test users in user manager.

    6- I tried to access the internet in this moment but wasnt possible so i access http://192.168.1.1:8000 and enter the user and password test and the internet functioned.

    7- Test the download speed again and it was around 147 KB/s. I monitored the traffic in WAN and OPT1 and the load balance functioned.

    8- Logout

    9- I tried to access the internet again and it wasnt possible.

    So, if i understood your doubt i think it helps you.

    PS: Sorry about my english, my native language is portuguese.

    Thanks
    Rodrigo Quilez
    São Paulo - Brasil



  • Ops I forgot, in 2 i enabled the load balancer and i configured the gateway for LAN rule to Balancer.

    Rodrigo Quilez
    São Paulo - Brasil


Locked