summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces_openvpn.py
diff options
context:
space:
mode:
authorAntonio Quartulli <antonio@mandelbit.com>2022-11-01 22:35:48 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-01-06 20:00:47 +0000
commitceb1a8d6b6144d7c44a2e1f0b16b5afecc43f904 (patch)
tree4de2f9c433d2909b286294326adc7b12f08424e5 /src/conf_mode/interfaces_openvpn.py
parent0a2430001e2e4e9a75d802428d9a7f9b56fafd41 (diff)
downloadvyos-1x-ceb1a8d6b6144d7c44a2e1f0b16b5afecc43f904.tar.gz
vyos-1x-ceb1a8d6b6144d7c44a2e1f0b16b5afecc43f904.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> (cherry picked from commit 3072e507eb1cdc18cfe5429fd0c03d223d2576fe)
Diffstat (limited to 'src/conf_mode/interfaces_openvpn.py')
-rwxr-xr-xsrc/conf_mode/interfaces_openvpn.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/conf_mode/interfaces_openvpn.py b/src/conf_mode/interfaces_openvpn.py
index 5795ce0bc..28f323691 100755
--- a/src/conf_mode/interfaces_openvpn.py
+++ b/src/conf_mode/interfaces_openvpn.py
@@ -347,9 +347,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)