From 8eec0b5b062b5f98a865949ac0f2a49d61b81199 Mon Sep 17 00:00:00 2001 From: aapostoliuk Date: Tue, 13 Feb 2024 18:55:13 +0200 Subject: T6029: Rewritten Accel-PPP services to an identical feature set Removed dhcp-interface option (l2tp) Added wins-server (sstp) Added description (ipoe, pppoe, sstp, pptp) Added exteded-script (l2tp, sstp, pptp) Added shaper (ipoe, pptp, sstp, l2tp) Added limits (ipoe, pptp, sstp, l2tp) Added snmp ( ipoe, pptp,sstp, l2tp) Refactoring and reformated code. (cherry picked from commit ac6a16f6c5ad7700789759e1ec093236c2e182a2) --- .../include/accel-ppp/extended-scripts.xml.i | 41 ++++++++ .../include/accel-ppp/limits.xml.i | 28 ++++++ interface-definitions/include/accel-ppp/snmp.xml.i | 15 +++ .../include/version/l2tp-version.xml.i | 2 +- interface-definitions/service_ipoe-server.xml.in | 11 ++- interface-definitions/service_pppoe-server.xml.in | 110 ++++----------------- interface-definitions/vpn_l2tp.xml.in | 83 ++++++++-------- interface-definitions/vpn_pptp.xml.in | 23 +++-- interface-definitions/vpn_sstp.xml.in | 32 +++--- 9 files changed, 187 insertions(+), 158 deletions(-) create mode 100644 interface-definitions/include/accel-ppp/extended-scripts.xml.i create mode 100644 interface-definitions/include/accel-ppp/limits.xml.i create mode 100644 interface-definitions/include/accel-ppp/snmp.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/include/accel-ppp/extended-scripts.xml.i b/interface-definitions/include/accel-ppp/extended-scripts.xml.i new file mode 100644 index 000000000..4bba76e32 --- /dev/null +++ b/interface-definitions/include/accel-ppp/extended-scripts.xml.i @@ -0,0 +1,41 @@ + + + + Extended script execution + + + + + Script to run before PPPoE session interface comes up + + + + + + + + Script to run when PPPoE session interface is completely configured and started + + + + + + + + Script to run when PPPoE session interface going to terminate + + + + + + + + Script to run when PPPoE session interface changed by RADIUS CoA handling + + + + + + + + diff --git a/interface-definitions/include/accel-ppp/limits.xml.i b/interface-definitions/include/accel-ppp/limits.xml.i new file mode 100644 index 000000000..df72b79d4 --- /dev/null +++ b/interface-definitions/include/accel-ppp/limits.xml.i @@ -0,0 +1,28 @@ + + + + Limits the connection rate from a single source + + + + + Acceptable rate of connections (e.g. 1/min, 60/sec) + + [0-9]+\/(min|sec) + + illegal value + + + + + Burst count + + + + + Timeout in seconds + + + + + diff --git a/interface-definitions/include/accel-ppp/snmp.xml.i b/interface-definitions/include/accel-ppp/snmp.xml.i new file mode 100644 index 000000000..373ced16f --- /dev/null +++ b/interface-definitions/include/accel-ppp/snmp.xml.i @@ -0,0 +1,15 @@ + + + + Enable SNMP + + + + + Enable SNMP master agent mode + + + + + + diff --git a/interface-definitions/include/version/l2tp-version.xml.i b/interface-definitions/include/version/l2tp-version.xml.i index 01004c5a0..5397407fb 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/service_ipoe-server.xml.in b/interface-definitions/service_ipoe-server.xml.in index 23d6e54d1..414c9a731 100644 --- a/interface-definitions/service_ipoe-server.xml.in +++ b/interface-definitions/service_ipoe-server.xml.in @@ -177,13 +177,18 @@ #include - #include - #include #include - #include #include #include #include + #include + #include + #include + #include + #include + #include + #include + #include diff --git a/interface-definitions/service_pppoe-server.xml.in b/interface-definitions/service_pppoe-server.xml.in index 477ed115f..9b5e4d3fb 100644 --- a/interface-definitions/service_pppoe-server.xml.in +++ b/interface-definitions/service_pppoe-server.xml.in @@ -49,9 +49,6 @@ - #include - #include - #include interface(s) to listen on @@ -63,35 +60,6 @@ #include - #include - #include - #include - - - Limits the connection rate from a single source - - - - - Acceptable rate of connections (e.g. 1/min, 60/sec) - - [0-9]+\/(min|sec) - - illegal value - - - - - Burst count - - - - - Timeout in seconds - - - - Service name @@ -102,15 +70,6 @@ - #include - #include - - - - 1280 - - - PADO delays @@ -164,61 +123,28 @@ replace - #include - - - Enable SNMP - - - - - enable SNMP master agent mode - - - - - - - - Extended script execution - + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + - - - Script to run before PPPoE session interface comes up - - - - - - - - Script to run when PPPoE session interface is completely configured and started - - - - - - - - Script to run when PPPoE session interface going to terminate - - - - - - - - Script to run when PPPoE session interface changed by RADIUS CoA handling - - - - + + 1280 - #include - #include + #include + #include + #include + #include + #include diff --git a/interface-definitions/vpn_l2tp.xml.in b/interface-definitions/vpn_l2tp.xml.in index 6148e3269..85a375db4 100644 --- a/interface-definitions/vpn_l2tp.xml.in +++ b/interface-definitions/vpn_l2tp.xml.in @@ -30,42 +30,6 @@ - #include - #include - - 1436 - - - - External IP address to which VPN clients will connect - - - - - - #include - #include - - - L2TP Network Server (LNS) - - - - - Tunnel password used to authenticate the client (LAC) - - - - - Sent to the client (LAC) in the Host-Name attribute - - #include - - Host-name must be alphanumeric and can contain hyphens - - - - Internet Protocol Security (IPsec) for remote access L2TP VPN @@ -129,14 +93,53 @@ #include - #include + + + L2TP Network Server (LNS) + + + + + Tunnel password used to authenticate the client (LAC) + + + + + Sent to the client (LAC) in the Host-Name attribute + + #include + + Host-name must be alphanumeric and can contain hyphens + + + + + + + External IP address to which VPN clients will connect + + + + + #include #include - #include - #include - #include #include #include + #include + #include + #include + #include + #include + + 1436 + + #include + #include + #include + #include + #include + #include diff --git a/interface-definitions/vpn_pptp.xml.in b/interface-definitions/vpn_pptp.xml.in index 2e2a3bec4..a63633f57 100644 --- a/interface-definitions/vpn_pptp.xml.in +++ b/interface-definitions/vpn_pptp.xml.in @@ -30,11 +30,6 @@ - #include - #include - - 1436 - External IP address to which VPN clients will connect @@ -43,14 +38,24 @@ - #include - #include - #include #include - #include #include + #include #include + #include + #include + #include + #include + #include + + 1436 + #include + #include + #include + #include + #include + #include diff --git a/interface-definitions/vpn_sstp.xml.in b/interface-definitions/vpn_sstp.xml.in index 0d5d53301..d23a001d5 100644 --- a/interface-definitions/vpn_sstp.xml.in +++ b/interface-definitions/vpn_sstp.xml.in @@ -25,19 +25,6 @@ - #include - #include - #include - #include - #include - #include - #include - - 443 - - #include - #include - #include SSL Certificate, SSL Key and CA @@ -47,6 +34,25 @@ #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + + 443 + + #include + #include + #include + #include + #include + #include -- cgit v1.2.3