From ceb1a8d6b6144d7c44a2e1f0b16b5afecc43f904 Mon Sep 17 00:00:00 2001 From: Antonio Quartulli Date: Tue, 1 Nov 2022 22:35:48 +0100 Subject: 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 (cherry picked from commit 3072e507eb1cdc18cfe5429fd0c03d223d2576fe) --- src/conf_mode/interfaces_openvpn.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/conf_mode') 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) -- cgit v1.2.3