diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-02-17 20:58:02 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-02-17 20:58:02 +0100 |
commit | 1cbcbf40b7721849f9696c05fac65db010a66b7c (patch) | |
tree | 76656a80d4b16074bac7a2340ddd4d5371a582df /src/conf_mode/interfaces-openvpn.py | |
parent | 1d141f9927f60d9faa5037ee3fd1ee9fd56d2ed6 (diff) | |
download | vyos-1x-1cbcbf40b7721849f9696c05fac65db010a66b7c.tar.gz vyos-1x-1cbcbf40b7721849f9696c05fac65db010a66b7c.zip |
openvpn: T4230: globally enable ip_nonlocal_bind
Diffstat (limited to 'src/conf_mode/interfaces-openvpn.py')
-rwxr-xr-x | src/conf_mode/interfaces-openvpn.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/conf_mode/interfaces-openvpn.py b/src/conf_mode/interfaces-openvpn.py index 329399274..29a25eedc 100755 --- a/src/conf_mode/interfaces-openvpn.py +++ b/src/conf_mode/interfaces-openvpn.py @@ -649,13 +649,6 @@ def apply(openvpn): return None - # verify specified IP address is present on any interface on this system - # Allow to bind service to nonlocal address, if it virtaual-vrrp address - # or if address will be assign later - if 'local_host' in openvpn: - if not is_addr_assigned(openvpn['local_host']): - cmd('sysctl -w net.ipv4.ip_nonlocal_bind=1') - # No matching OpenVPN process running - maybe it got killed or none # existed - nevertheless, spawn new OpenVPN process call(f'systemctl reload-or-restart openvpn@{interface}.service') |