We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d0a453 commit a3763a2Copy full SHA for a3763a2
src/conf_mode/interfaces_openvpn.py
@@ -260,6 +260,11 @@ def verify(openvpn):
260
# OpenVPN site-to-site - VERIFY
261
#
262
elif openvpn['mode'] == 'site-to-site':
263
+ # XXX: site-to-site is the only mode that still can work without TLS,
264
+ # so we need to make sure that if TLS is used, then TLS role is also specified
265
+ if 'shared_secret_key' not in openvpn['tls'] and 'role' not in openvpn['tls']:
266
+ raise ConfigError('"tls role" is required for site-to-site OpenVPN with TLS')
267
+
268
if 'local_address' not in openvpn and 'is_bridge_member' not in openvpn:
269
raise ConfigError('Must specify "local-address" or add interface to bridge')
270
0 commit comments