From bb36bdec1506c7fbf57b786c907b0c7cd5efc117 Mon Sep 17 00:00:00 2001 From: jjakob Date: Sat, 11 Apr 2020 11:45:14 +0200 Subject: openvpn: T2235: add custom server pool handling - add config options and logic for server client-ip-pool - add function for determining default IPs for the server in different configurations - verify for pool IPs and maximum subnet prefix length - move remote netmask logic for client ifconfig-push to use new function - add topology 'net30' , set it as default (as it already was) - replace generic ip_* with IPv4* where necessary - print warning to console when server client IP is in server pool - fix server subnet help field --- interface-definitions/interfaces-openvpn.xml.in | 54 ++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 2 deletions(-) (limited to 'interface-definitions/interfaces-openvpn.xml.in') diff --git a/interface-definitions/interfaces-openvpn.xml.in b/interface-definitions/interfaces-openvpn.xml.in index 92bac3fab..d926876f7 100644 --- a/interface-definitions/interfaces-openvpn.xml.in +++ b/interface-definitions/interfaces-openvpn.xml.in @@ -444,6 +444,52 @@ + + + Pool of client IP addresses + + + + + First IP address in the pool + + + + + ipv4 + IPv4 address + + + + + + Last IP address in the pool + + + + + ipv4 + IPv4 address + + + + + + Subnet mask pushed to dynamic clients. + If not set the server subnet mask will be used. + Only used with topology subnet or device type tap. + Not used with bridged interfaces. + + + + + ipv4 + IPv4 subnet mask + + + + + DNS suffix to be pushed to all clients @@ -501,7 +547,7 @@ Server-mode subnet (from which client IPs are allocated) ipv4net - IPv4 address and prefix length + IPv4 network and prefix length @@ -512,8 +558,12 @@ Topology for clients - point-to-point subnet + net30 point-to-point subnet + + net30 + net30 topology + point-to-point Point-to-point topology -- cgit v1.2.3