diff options
author | Antonio Quartulli <antonio@mandelbit.com> | 2022-11-01 22:35:48 +0100 |
---|---|---|
committer | Antonio Quartulli <antonio@mandelbit.com> | 2022-11-02 19:32:21 +0100 |
commit | 3072e507eb1cdc18cfe5429fd0c03d223d2576fe (patch) | |
tree | d22bf288486f0fb757e7bbec4d60e73af36079e0 /src/conf_mode/interfaces-openvpn.py | |
parent | f50f7b043a8636a57fc61330d94550734d2826b5 (diff) | |
download | vyos-1x-3072e507eb1cdc18cfe5429fd0c03d223d2576fe.tar.gz vyos-1x-3072e507eb1cdc18cfe5429fd0c03d223d2576fe.zip |
openvpn: T3214: allow configuring server with v6 only
Starting with v2.5.0 OpenVPN allows configuring a server with
an IPv6 only tunnel.
For this reason there is no need to depend on the existence of an IPv4
subnet anymore.
Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
Diffstat (limited to 'src/conf_mode/interfaces-openvpn.py')
-rwxr-xr-x | src/conf_mode/interfaces-openvpn.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/conf_mode/interfaces-openvpn.py b/src/conf_mode/interfaces-openvpn.py index 8155f36c2..548ba4449 100755 --- a/src/conf_mode/interfaces-openvpn.py +++ b/src/conf_mode/interfaces-openvpn.py @@ -329,9 +329,6 @@ def verify(openvpn): if v6_subnets > 1: raise ConfigError('Cannot specify more than 1 IPv6 server subnet') - if v6_subnets > 0 and v4_subnets == 0: - raise ConfigError('IPv6 server requires an IPv4 server subnet') - for subnet in tmp: if is_ipv4(subnet): subnet = IPv4Network(subnet) |