it seems that source-address parameter does not work in openconnect configuration, despite that source address is set explicitly, system use it own address according to routing table.
zotov@zip70# sudo tcpdump -i any port 1812 -np
tcpdump: data link type LINUX_SLL2
tcpdump: verbose output suppressed, use -v[v]… for full protocol decode
listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes
11:32:27.032621 tun002 Out IP 10.40.85.255.44654 > 10.40.0.224.1812: RADIUS, Access-Request (1), id: 0x03 length: 119
11:32:42.033767 tun002 Out IP 10.40.85.255.44654 > 10.40.0.224.1812: RADIUS, Access-Request (1), id: 0x03 length: 119
and this is generated configuration file /run/ocserv/radiusclient.conf:
Same problem in latest rolling release. Still not fixed. If I manually edit /run/ocserv/radiusclient.conf and change “bindaddr *” to “bindaddr x.x.x.x” (with address that I need) and then restart ocserv, then it works as expected.
# run show version
Version: VyOS 1.5-rolling-202409250007
Release train: current
Release flavor: generic
Built by: [email protected]
Built on: Wed 25 Sep 2024 00:07 UTC
Build UUID: 9b8b01ce-f96f-4af7-8116-68c8cd296cb7
Build commit ID: fa50a5073b6d3f
Architecture: x86_64
Boot via: installed image
System type: KVM guest
Secure Boot: n/a (BIOS)
[edit vpn openconnect]
set authentication mode radius
set authentication radius groupconfig 'PPP'
set authentication radius server 192.168.0.58 key '**************'
set authentication radius source-address '10.150.1.16'
set authentication radius timeout '5'
set network-settings client-ip-settings subnet '192.168.89.0/25'
set network-settings name-server '192.168.0.7'
set network-settings name-server '192.168.0.10'
set network-settings name-server '192.168.0.169'
set network-settings push-route '192.168.0.0/16'
set ssl ca-certificate 'R11'
set ssl certificate 'ocvpn'
I have configured two GRE tunnels with load balancing. And requests to RADIUS server are sent with corresponding source addresses of tunX interfaces instead of 10.150.1.16 which is set in “authentication radius source-address” option.
10.150.1.16/32 is configured on loopback interface.