OpenVPN + FreeRadius with specified IP in free radius log incorrect ip inlog file



  • HI Everyone

    Version Info: 2.4.5-RELEASE-p1 (amd64)

    I am using free radius as authentication source for OpenVPN, in free radius I specify the Ip address. I get assign correct to the client. but in the log file OpenVPN does not log the correct IP it always log the 1st IP in the pool 172.16.39.6. Below is a example of what is logged.

    <29>Sep 11 19:15:03 openvpn[23699]: BCXS_Lar/115.247.33.40:1194 MULTI_sva: pool returned IPv4=172.16.38.6, IPv6=(Not enabled)
    <29>Sep 11 16:30:25 openvpn[60829]: AlfieScu/11.113.21.133:43523 MULTI_sva: pool returned IPv4=172.16.38.6, IPv6=(Not enabled)
    <29>Sep 11 13:03:22 openvpn[23699]: IT/112.252.67.92:62144 MULTI_sva: pool returned IPv4=172.16.38.6, IPv6=(Not enabled)
    <29>Sep 11 12:38:09 openvpn[60829]: MRS/11.160.238.138:8531 MULTI_sva: pool returned IPv4=172.16.38.6, IPv6=(Not enabled)
    <29>Sep 11 10:43:22 openvpn[23699]: Johnny1/117.245.46.73:1194 MULTI_sva: pool returned IPv4=172.16.38.6, IPv6=(Not enabled)
    <29>Sep 11 10:40:48 openvpn[60829]: Voxtel1/117.234.144.249:57856 MULTI_sva: pool returned IPv4=172.16.38.6, IPv6=(Not enabled)
    <29>Sep 11 09:10:47 openvpn[60829]: MRS1/11.160.238.138:7210 MULTI_sva: pool returned IPv4=172.16.38.6, IPv6=(Not enabled)

    Here is a screen shot of freeradius
    810166ed-27fa-40bf-8217-535ce38215e3-image.png

    I am exporting this logs with syslog to Elastic search to log and record user logins.
    All works good except the incorrect ip that OpenVPN log.

    Anyone have a idea how to fix this .

    thanks
    Jaco



  • I changed the logging to level 4 and can not see the correct ip, Issue resolved


Log in to reply