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.


    Pfsense(router WAN LAN  – switch -freeradius(
                                                                                              -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, id=65, length=148
            NAS-IP-Address = (WAN IP OF PFSENSE)
            NAS-Identifier = ""
            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 =
            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 port 38532

    Any help ?


Log in to reply