Bug #12497
closedOpenVPN Server assignes random IPv4 addresses to active clients even if FreeRadius has configured Framed-IP for all these remote clients
0%
Description
For Remote Access OpenVPN Server all connected clients still gets IP-addresses from OpenVPN pool instead of getting configured Framed-IPs from FreeRadius.
I run Packet Capture and caught traffic between pfSense and FreeRadius (pcap_with_radius.png) and I saw that FreeRadius sent correct Framed-IP (vpnuser_IPv4_and_IPv6_attributes.png) in its response but still OpenVPN client got random IP-address (ifconfig_Ubuntu.png) from OpenVPN pool.
Viktor found this link: https://serverfault.com/questions/796872/openvpn-radius-plugin-does-not-assign-framed-ip-address-from-freeradius-to-clien
and adding 'client-config-dir clients' option into 'Additional configuration options' (OpenVPN/Client Export Utility) helped to fix it and after redownloading new ovpn file I saw correct (Framed-IP) on remote client with active OpenVPN tunnel.
But only Framed-IPv4 attributes work. Framed-IPv6 attributes don't work: https://redmine.pfsense.org/issues/12496
Files
Related issues