dev ovpns3verb 4dev-type tundev-node /dev/tun3writepid /var/run/openvpn_server3.pid#user nobody#group nobodyscript-security 3daemonkeepalive 10 60ping-timer-rempersist-tunpersist-keyproto tcp4-servercipher AES-256-CBCauth SHA256up /usr/local/etc/inc/plugins.inc.d/openvpn/ovpn-linkupdown /usr/local/etc/inc/plugins.inc.d/openvpn/ovpn-linkdownengine rdrandclient-disconnect "/usr/local/etc/inc/plugins.inc.d/openvpn/attributes.sh server3"tls-serverserver 10.69.14.0 255.255.254.0client-config-dir /var/etc/openvpn-csc/3verify-client-cert noneusername-as-common-nameauth-user-pass-verify "/usr/local/etc/inc/plugins.inc.d/openvpn/ovpn_auth_verify user 'Active Directory RADIUS,Active Directory Radius DC2,Local Database' 'false' 'server3'" via-envtls-verify "/usr/local/etc/inc/plugins.inc.d/openvpn/ovpn_auth_verify tls 'safety+io+OpenVPN+Server' 1"lport 443management /var/etc/openvpn/server3.sock unixmax-clients 500push "route 10.69.0.0 255.255.240.0"push "dhcp-option DOMAIN mydomain.local"push "dhcp-option DNS 10.69.14.1"push "redirect-gateway def1"client-to-clientduplicate-cnroute 10.69.0.0 255.255.252.0ca /var/etc/openvpn/server3.cacert /var/etc/openvpn/server3.certkey /var/etc/openvpn/server3.keydh /usr/local/etc/dh-parameters.2048.sampletls-auth /var/etc/openvpn/server3.tls-auth 0comp-lzo nopersist-remote-ipfloatreneg-sec 0
You have to disable the CSC's and set the correct backend
AVP: t=Framed-IP-Address(8) l=6 val=10.14.1.222 AVP: t=Framed-Route(22) l=24 val=10.14.0.0/30 0.0.0.0 1
grep -ri framed /usr/local/etc/inc/plugins.inc.d//usr/local/etc/inc/plugins.inc.d/openvpn/auth-user.php: if (!empty($props['Framed-IP-Address']) && !empty($props['Framed-IP-Netmask'])) {/usr/local/etc/inc/plugins.inc.d/openvpn/auth-user.php: $cidrmask = 32-log((ip2long($props['Framed-IP-Netmask']) ^ ip2long('255.255.255.255'))+1, 2);/usr/local/etc/inc/plugins.inc.d/openvpn/auth-user.php: $result['tunnel_network'] = $props['Framed-IP-Address'] . "/" . $cidrmask;/usr/local/etc/inc/plugins.inc.d/openvpn/auth-user.php: if (!empty($props['Framed-Route']) && is_array($props['Framed-Route'])) {/usr/local/etc/inc/plugins.inc.d/openvpn/auth-user.php: $result['local_network'] = implode(",", $props['Framed-Route']);
# diff -s radius-free radius-npsFiles radius-free and radius-nps are identical
Array( [tunnel_network] => 10.69.14.222/30)
function parse_auth_properties($props){ $result = array(); if (!empty($props['Framed-IP-Address']) && !empty($props['Framed-IP-Netmask'])) { $cidrmask = 32-log((ip2long($props['Framed-IP-Netmask']) ^ ip2long('255.255.255.255'))+1, 2); $result['tunnel_network'] = $props['Framed-IP-Address'] . "/" . $cidrmask; } if (!empty($props['Framed-Route']) && is_array($props['Framed-Route'])) { $result['local_network'] = implode(",", $props['Framed-Route']); } file_put_contents('/tmp/radius', print_r($result, true)); return $result;}
Framed-Protocol = PPPFramed-IP-Address = 10.69.14.222Framed-IP-Netmask = 255.255.255.252Authenticator-Field = 0xbfe77857212958100f5edfc83775f335
Framed-Protocol = PPPFramed-IP-Address = 10.69.14.222Framed-IP-Netmask = 255.255.255.252Class = 0x8f4908ef00000137000102000af014140000000028451f2733b4e06501d50a53e29d8d4300000000000066caMS-Link-Utilization-Threshold = 50MS-Link-Drop-Time-Limit = 120Authenticator-Field = 0xca44113b745f5b92f3da7058f3b512c6