Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

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

    Scheduled Pinned Locked Moved pfSense Packages
    2 Posts 1 Posters 593 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jacol
      last edited by

      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

      1 Reply Last reply
      Reply Quote 0
      • J
        jacol
        last edited by

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

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy