Captive portal + freeradius server on LAN problem



  • Hello,

    I have setup a freeradius server in my LAN to get the captive portal working with, but the pfsense sends the auth request to freeradius with the wrong ip address.

    Network:

    Pfsense(router WAN 84.90.120.xxx LAN 192.168.50.254)  – switch -freeradius(192.168.50.200)
                                                                                              -access points(as bridge)  --- clients

    When Pfsense sends the auth packets do freeradius from LAN the freeradius server get the requeste but with the WAN ip from pfsense.

    The freeradius server is with passtrough ip and macaddress in pfsense.

    I need the pfsense to send the radius request with the LAN ip, not the WAN ip.

    rad_recv: Accounting-Request packet from host 192.168.50.254:38532, id=65, length=148
            NAS-IP-Address = 84.90.120.179 (WAN IP OF PFSENSE)
            NAS-Identifier = "gw.network.wifi"
            User-Name = "timhome"
            Acct-Status-Type = Start
            Acct-Authentic = RADIUS
            Service-Type = Login-User
            NAS-Port-Type = Ethernet
            NAS-Port = 1
            Acct-Session-Id = "819ba3f647bb98d4"
            Framed-IP-Address = 192.168.50.5
            Called-Station-Id = "00:0a:e6:xx:04:xx"
            Calling-Station-Id = "00:02:6f:xx:9a:xx"
    rlm_sql (sql): Reserving sql socket id: 1
    rlm_sql_mysql: MYSQL check_error: 1062 received
    rlm_sql (sql): Couldn't insert SQL accounting START record - Duplicate entry 'd855d6aa34f7658b' for key 2
    rlm_sql (sql): Released sql socket id: 1
    Exec-Program: returned: 0
    Sending Accounting-Response of id 65 to 192.168.50.254 port 38532

    Any help ?

    Thanks


Locked