From d5062cb045fae8b0b5d68b3b1198c3b86de4d558 Mon Sep 17 00:00:00 2001 From: aapostoliuk Date: Mon, 13 Nov 2023 11:17:23 +0200 Subject: accel-ppp: T5688: Standardized pool configuration in accel-ppp Standardized pool configuration for all accel-ppp services. 1. Only named pools are used now. 2. Allows all services to use range in x.x.x.x/mask and x.x.x.x-x.x.x.y format 3. next-pool can be used in all services 2. Allows to use in ipoe gw-ip-address without pool configuration which allows to use Fraimed-IP-Address attribute by radius. 3. Default pool name should be explicidly configured with default-pool. 4. In ipoe netmask and range subnet can be different. (cherry picked from commit 422eb463d413da812eabc28706e507a9910d7b53) --- .../include/accel-ppp/client-ip-pool-name.xml.i | 30 -------------- .../accel-ppp/client-ip-pool-start-stop.xml.i | 18 --------- .../accel-ppp/client-ip-pool-subnet-single.xml.i | 16 -------- .../include/accel-ppp/client-ip-pool-subnet.xml.i | 16 -------- .../include/accel-ppp/client-ip-pool.xml.i | 46 ++++++++++++++++++++++ .../include/accel-ppp/default-pool.xml.i | 14 +++++++ .../include/accel-ppp/gateway-address-multi.xml.i | 17 ++++++++ .../include/version/ipoe-server-version.xml.i | 2 +- .../include/version/l2tp-version.xml.i | 2 +- .../include/version/pppoe-server-version.xml.i | 2 +- .../include/version/pptp-version.xml.i | 2 +- .../include/version/sstp-version.xml.i | 2 +- interface-definitions/service-ipoe-server.xml.in | 11 ++---- interface-definitions/service-pppoe-server.xml.in | 12 +----- interface-definitions/vpn-l2tp.xml.in | 11 +----- interface-definitions/vpn-pptp.xml.in | 12 ++---- interface-definitions/vpn-sstp.xml.in | 10 +---- 17 files changed, 94 insertions(+), 129 deletions(-) delete mode 100644 interface-definitions/include/accel-ppp/client-ip-pool-name.xml.i delete mode 100644 interface-definitions/include/accel-ppp/client-ip-pool-start-stop.xml.i delete mode 100644 interface-definitions/include/accel-ppp/client-ip-pool-subnet-single.xml.i delete mode 100644 interface-definitions/include/accel-ppp/client-ip-pool-subnet.xml.i create mode 100644 interface-definitions/include/accel-ppp/client-ip-pool.xml.i create mode 100644 interface-definitions/include/accel-ppp/default-pool.xml.i create mode 100644 interface-definitions/include/accel-ppp/gateway-address-multi.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/include/accel-ppp/client-ip-pool-name.xml.i b/interface-definitions/include/accel-ppp/client-ip-pool-name.xml.i deleted file mode 100644 index b442a15b9..000000000 --- a/interface-definitions/include/accel-ppp/client-ip-pool-name.xml.i +++ /dev/null @@ -1,30 +0,0 @@ - - - - Pool name - - txt - Name of IP pool - - - [-_a-zA-Z0-9.]+ - - - - #include - #include - - - Next pool name - - txt - Name of IP pool - - - [-_a-zA-Z0-9.]+ - - - - - - diff --git a/interface-definitions/include/accel-ppp/client-ip-pool-start-stop.xml.i b/interface-definitions/include/accel-ppp/client-ip-pool-start-stop.xml.i deleted file mode 100644 index 5f4132d13..000000000 --- a/interface-definitions/include/accel-ppp/client-ip-pool-start-stop.xml.i +++ /dev/null @@ -1,18 +0,0 @@ - - - - First IP address in the pool - - - - - - - - Last IP address in the pool - - - - - - diff --git a/interface-definitions/include/accel-ppp/client-ip-pool-subnet-single.xml.i b/interface-definitions/include/accel-ppp/client-ip-pool-subnet-single.xml.i deleted file mode 100644 index b93ba67d8..000000000 --- a/interface-definitions/include/accel-ppp/client-ip-pool-subnet-single.xml.i +++ /dev/null @@ -1,16 +0,0 @@ - - - - Client IP subnet (CIDR notation) - - ipv4net - IPv4 address and prefix length - - - - - - Not a valid IP address or prefix - - - diff --git a/interface-definitions/include/accel-ppp/client-ip-pool-subnet.xml.i b/interface-definitions/include/accel-ppp/client-ip-pool-subnet.xml.i deleted file mode 100644 index 2dc71d3f9..000000000 --- a/interface-definitions/include/accel-ppp/client-ip-pool-subnet.xml.i +++ /dev/null @@ -1,16 +0,0 @@ - - - - Client IP subnet (CIDR notation) - - ipv4net - IPv4 address and prefix length - - - - - Not a valid CIDR formatted prefix - - - - diff --git a/interface-definitions/include/accel-ppp/client-ip-pool.xml.i b/interface-definitions/include/accel-ppp/client-ip-pool.xml.i new file mode 100644 index 000000000..dff574e6c --- /dev/null +++ b/interface-definitions/include/accel-ppp/client-ip-pool.xml.i @@ -0,0 +1,46 @@ + + + + Client IP pool + + txt + Name of IP pool + + + [-_a-zA-Z0-9.]+ + + + + + + Range of IP addresses + + ipv4net + IPv4 prefix + + + ipv4range + IPv4 address range inside /24 network + + + + + + + + + + + Next pool name + + txt + Name of IP pool + + + [-_a-zA-Z0-9.]+ + + + + + + diff --git a/interface-definitions/include/accel-ppp/default-pool.xml.i b/interface-definitions/include/accel-ppp/default-pool.xml.i new file mode 100644 index 000000000..832594c12 --- /dev/null +++ b/interface-definitions/include/accel-ppp/default-pool.xml.i @@ -0,0 +1,14 @@ + + + + Default client IP pool name + + txt + Default IP pool + + + [-_a-zA-Z0-9.]+ + + + + diff --git a/interface-definitions/include/accel-ppp/gateway-address-multi.xml.i b/interface-definitions/include/accel-ppp/gateway-address-multi.xml.i new file mode 100644 index 000000000..dcc58b97a --- /dev/null +++ b/interface-definitions/include/accel-ppp/gateway-address-multi.xml.i @@ -0,0 +1,17 @@ + + + + Gateway IP address + invalid IPv4 address + + ipv4net + Default Gateway, mask send to the client + + + + + + + + + diff --git a/interface-definitions/include/version/ipoe-server-version.xml.i b/interface-definitions/include/version/ipoe-server-version.xml.i index 00d2544e6..e5983ab39 100644 --- a/interface-definitions/include/version/ipoe-server-version.xml.i +++ b/interface-definitions/include/version/ipoe-server-version.xml.i @@ -1,3 +1,3 @@ - + diff --git a/interface-definitions/include/version/l2tp-version.xml.i b/interface-definitions/include/version/l2tp-version.xml.i index 86114d676..89edb160c 100644 --- a/interface-definitions/include/version/l2tp-version.xml.i +++ b/interface-definitions/include/version/l2tp-version.xml.i @@ -1,3 +1,3 @@ - + diff --git a/interface-definitions/include/version/pppoe-server-version.xml.i b/interface-definitions/include/version/pppoe-server-version.xml.i index 6bdd8d75c..deed702f0 100644 --- a/interface-definitions/include/version/pppoe-server-version.xml.i +++ b/interface-definitions/include/version/pppoe-server-version.xml.i @@ -1,3 +1,3 @@ - + diff --git a/interface-definitions/include/version/pptp-version.xml.i b/interface-definitions/include/version/pptp-version.xml.i index 0296c44e9..4386cedbd 100644 --- a/interface-definitions/include/version/pptp-version.xml.i +++ b/interface-definitions/include/version/pptp-version.xml.i @@ -1,3 +1,3 @@ - + diff --git a/interface-definitions/include/version/sstp-version.xml.i b/interface-definitions/include/version/sstp-version.xml.i index 79b43a3e7..3ac54a3de 100644 --- a/interface-definitions/include/version/sstp-version.xml.i +++ b/interface-definitions/include/version/sstp-version.xml.i @@ -1,3 +1,3 @@ - + diff --git a/interface-definitions/service-ipoe-server.xml.in b/interface-definitions/service-ipoe-server.xml.in index 9ac0c8fdf..edfe6a34c 100644 --- a/interface-definitions/service-ipoe-server.xml.in +++ b/interface-definitions/service-ipoe-server.xml.in @@ -104,14 +104,8 @@ #include #include - - - Client IP pools and gateway setting - - - #include - - + #include + #include #include @@ -188,6 +182,7 @@ #include + #include diff --git a/interface-definitions/service-pppoe-server.xml.in b/interface-definitions/service-pppoe-server.xml.in index 44b689fe1..f1b369936 100644 --- a/interface-definitions/service-pppoe-server.xml.in +++ b/interface-definitions/service-pppoe-server.xml.in @@ -49,16 +49,7 @@ - - - Pool of client IP addresses (must be within a /24) - - - #include - #include - #include - - + #include #include #include @@ -282,6 +273,7 @@ + #include diff --git a/interface-definitions/vpn-l2tp.xml.in b/interface-definitions/vpn-l2tp.xml.in index 60a1d323b..7980cfdf5 100644 --- a/interface-definitions/vpn-l2tp.xml.in +++ b/interface-definitions/vpn-l2tp.xml.in @@ -116,15 +116,7 @@ #include - - - Pool of client IP addresses (must be within a /24) - - - #include - #include - - + #include #include #include #include @@ -253,6 +245,7 @@ #include + #include diff --git a/interface-definitions/vpn-pptp.xml.in b/interface-definitions/vpn-pptp.xml.in index 964c4d21e..96f87f3e2 100644 --- a/interface-definitions/vpn-pptp.xml.in +++ b/interface-definitions/vpn-pptp.xml.in @@ -23,17 +23,10 @@ + #include #include #include - - - Pool of client IP addresses (must be within a /24) - - - #include - - - #include + #include Authentication for remote access PPTP VPN @@ -118,6 +111,7 @@ #include + #include diff --git a/interface-definitions/vpn-sstp.xml.in b/interface-definitions/vpn-sstp.xml.in index 9c818ba60..a1b69f990 100644 --- a/interface-definitions/vpn-sstp.xml.in +++ b/interface-definitions/vpn-sstp.xml.in @@ -29,19 +29,13 @@ #include #include #include - - - Client IP pools and gateway setting - - - #include - - + #include #include #include 443 + #include PPP (Point-to-Point Protocol) settings -- cgit v1.2.3