From ba0509379c5ca47e4a78fef920d14a52a46b8e82 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 2 Oct 2020 17:42:29 +0200 Subject: acces-ppp: T2953: drop redundant CLI definitions --- .../include/accel-auth-local-users.xml.i | 56 +++++ .../include/accel-auth-mode.xml.i | 2 + .../include/accel-auth-protocols.xml.i | 30 +++ .../include/accel-client-ipv6-pool.xml.i | 2 + .../include/accel-client-subnet.xml.i | 16 ++ .../include/accel-gateway-address.xml.i | 15 ++ .../include/accel-lcp-echo-interval-failure.xml.i | 20 ++ .../include/accel-lcp-echo-timeout.xml.i | 11 + .../include/accel-name-server.xml.i | 2 + interface-definitions/include/accel-ppp-mppe.xml.i | 25 +++ .../accel-radius-additions-rate-limit.xml.i | 25 +++ interface-definitions/service_pppoe-server.xml.in | 249 ++++----------------- interface-definitions/vpn_l2tp.xml.in | 119 +--------- interface-definitions/vpn_pptp.xml.in | 9 +- interface-definitions/vpn_sstp.xml.in | 240 +++----------------- 15 files changed, 290 insertions(+), 531 deletions(-) create mode 100644 interface-definitions/include/accel-auth-local-users.xml.i create mode 100644 interface-definitions/include/accel-auth-protocols.xml.i create mode 100644 interface-definitions/include/accel-client-subnet.xml.i create mode 100644 interface-definitions/include/accel-gateway-address.xml.i create mode 100644 interface-definitions/include/accel-lcp-echo-interval-failure.xml.i create mode 100644 interface-definitions/include/accel-lcp-echo-timeout.xml.i create mode 100644 interface-definitions/include/accel-ppp-mppe.xml.i create mode 100644 interface-definitions/include/accel-radius-additions-rate-limit.xml.i diff --git a/interface-definitions/include/accel-auth-local-users.xml.i b/interface-definitions/include/accel-auth-local-users.xml.i new file mode 100644 index 000000000..4dc6c6dff --- /dev/null +++ b/interface-definitions/include/accel-auth-local-users.xml.i @@ -0,0 +1,56 @@ + + + + Local user authentication for PPPoE server + + + + + User name for authentication + + + + + Option to disable a PPPoE Server user + + + + + + Password for authentication + + + + + Static client IP address + + * + + + + Upload/Download speed limits + + + + + Upload bandwidth limit in kbits/sec + + + + + + + + Download bandwidth limit in kbits/sec + + + + + + + + + + + + diff --git a/interface-definitions/include/accel-auth-mode.xml.i b/interface-definitions/include/accel-auth-mode.xml.i index 750c3117b..85c3c5e82 100644 --- a/interface-definitions/include/accel-auth-mode.xml.i +++ b/interface-definitions/include/accel-auth-mode.xml.i @@ -1,3 +1,4 @@ + Authentication mode used by this server @@ -18,3 +19,4 @@ local + diff --git a/interface-definitions/include/accel-auth-protocols.xml.i b/interface-definitions/include/accel-auth-protocols.xml.i new file mode 100644 index 000000000..10d89d4de --- /dev/null +++ b/interface-definitions/include/accel-auth-protocols.xml.i @@ -0,0 +1,30 @@ + + + + Authentication protocol for remote access peer SSTP VPN + + pap chap mschap mschap-v2 + + + pap + Authentication via PAP (Password Authentication Protocol) + + + chap + Authentication via CHAP (Challenge Handshake Authentication Protocol) + + + mschap + Authentication via MS-CHAP (Microsoft Challenge Handshake Authentication Protocol) + + + mschap-v2 + Authentication via MS-CHAPv2 (Microsoft Challenge Handshake Authentication Protocol, version 2) + + + (pap|chap|mschap|mschap-v2) + + + + + diff --git a/interface-definitions/include/accel-client-ipv6-pool.xml.i b/interface-definitions/include/accel-client-ipv6-pool.xml.i index 455ada6ef..471ff714c 100644 --- a/interface-definitions/include/accel-client-ipv6-pool.xml.i +++ b/interface-definitions/include/accel-client-ipv6-pool.xml.i @@ -1,3 +1,4 @@ + Pool of client IPv6 addresses @@ -57,3 +58,4 @@ + diff --git a/interface-definitions/include/accel-client-subnet.xml.i b/interface-definitions/include/accel-client-subnet.xml.i new file mode 100644 index 000000000..e6dd5534c --- /dev/null +++ b/interface-definitions/include/accel-client-subnet.xml.i @@ -0,0 +1,16 @@ + + + + Client IP subnet (CIDR notation) + + ipv4net + IPv4 address and prefix length + + + + + Not a valid CIDR formatted prefix + + + + diff --git a/interface-definitions/include/accel-gateway-address.xml.i b/interface-definitions/include/accel-gateway-address.xml.i new file mode 100644 index 000000000..c45c8b532 --- /dev/null +++ b/interface-definitions/include/accel-gateway-address.xml.i @@ -0,0 +1,15 @@ + + + + Gateway IP address + + + + invalid IPv4 address + + ipv4 + Default Gateway send to the client + + + + diff --git a/interface-definitions/include/accel-lcp-echo-interval-failure.xml.i b/interface-definitions/include/accel-lcp-echo-interval-failure.xml.i new file mode 100644 index 000000000..cccf4b4f2 --- /dev/null +++ b/interface-definitions/include/accel-lcp-echo-interval-failure.xml.i @@ -0,0 +1,20 @@ + + + + LCP echo-requests/sec + + + + + 30 + + + + Maximum number of Echo-Requests may be sent without valid reply + + + + + 3 + + diff --git a/interface-definitions/include/accel-lcp-echo-timeout.xml.i b/interface-definitions/include/accel-lcp-echo-timeout.xml.i new file mode 100644 index 000000000..888fa9d41 --- /dev/null +++ b/interface-definitions/include/accel-lcp-echo-timeout.xml.i @@ -0,0 +1,11 @@ + + + + Timeout in seconds to wait for any peer activity. If this option specified it turns on adaptive lcp echo functionality and "lcp-echo-failure" is not used. + + + + + 0 + + diff --git a/interface-definitions/include/accel-name-server.xml.i b/interface-definitions/include/accel-name-server.xml.i index 82ed6771d..e46c75b52 100644 --- a/interface-definitions/include/accel-name-server.xml.i +++ b/interface-definitions/include/accel-name-server.xml.i @@ -1,3 +1,4 @@ + Domain Name Server (DNS) propagated to client @@ -16,3 +17,4 @@ + diff --git a/interface-definitions/include/accel-ppp-mppe.xml.i b/interface-definitions/include/accel-ppp-mppe.xml.i new file mode 100644 index 000000000..089d8e2c1 --- /dev/null +++ b/interface-definitions/include/accel-ppp-mppe.xml.i @@ -0,0 +1,25 @@ + + + + Specifies mppe negotiation preferences + + require prefer deny + + + (^require|prefer|deny) + + + require + send mppe request, if client rejects, drop the connection + + + prefer + send mppe request, if client rejects continue + + + deny + drop all mppe + + + + diff --git a/interface-definitions/include/accel-radius-additions-rate-limit.xml.i b/interface-definitions/include/accel-radius-additions-rate-limit.xml.i new file mode 100644 index 000000000..deab40e03 --- /dev/null +++ b/interface-definitions/include/accel-radius-additions-rate-limit.xml.i @@ -0,0 +1,25 @@ + + + + Upload/Download speed limits + + + + + Specifies which radius attribute contains rate information. (default is Filter-Id) + + + + + Specifies the vendor dictionary. (dictionary needs to be in /usr/share/accel-ppp/radius) + + + + + Enables Bandwidth shaping via RADIUS + + + + + + diff --git a/interface-definitions/service_pppoe-server.xml.in b/interface-definitions/service_pppoe-server.xml.in index b38f692d8..3a9c25496 100644 --- a/interface-definitions/service_pppoe-server.xml.in +++ b/interface-definitions/service_pppoe-server.xml.in @@ -8,19 +8,6 @@ 900 - - - Enable SNMP - - - - - enable SNMP master agent mode - - - - - Access concentrator name @@ -31,118 +18,19 @@ vyos-ac - - - control sessions count - - ^(deny|disable|replace)$ - - Invalid value - - disable - Disables session control - - - deny - Deny second session authorization - - - replace - Terminate first session when second is authorized - - - deny disable replace - - - replace - Authentication for remote access PPPoE Server - - - Local user authentication for PPPoE server - - - - - User name for authentication - - - - - Option to disable a PPPoE Server user - - - - - - Password for authentication - - - - - Static client IP address - - * - - - - Upload/Download speed limits - - - - - Upload bandwidth limit in kbits/sec - - - - - - - - Download bandwidth limit in kbits/sec - - - - - - - - - - - + #include #include + #include #include #include - - - Upload/Download speed limits - - - - - Specifies which radius attribute contains rate information. (default is Filter-Id) - - - - - Specifies the vendor dictionary. (dictionary needs to be in /usr/share/accel-ppp/radius) - - - - - Enables Bandwidth shaping via RADIUS - - - - - + #include Format of Called-Station-Id attribute @@ -165,34 +53,6 @@ - - - Authentication protocol - - pap - Allow PAP authentication [Password Authentication Protocol] - - - chap - Allow CHAP authentication [Challenge Handshake Authentication Protocol] - - - mschap - Allow MS-CHAP authentication [Microsoft Challenge Handshake Authentication Protocol, Version 1] - - - mschap-v2 - Allow MS-CHAPv2 authentication [Microsoft Challenge Handshake Authentication Protocol, Version 2] - - - (pap|chap|mschap|mschap-v2) - - - pap chap mschap mschap-v2 - - - - @@ -216,16 +76,7 @@ - - - Client IP subnet (CIDR notation) - - - - Not a valid CIDR formatted prefix - - - + #include #include @@ -340,57 +191,9 @@ - - - Specifies MPPE negotiation preference. (default prefer mppe) - - deny prefer require - - - deny - Deny MPPE - - - prefer - Ask client for MPPE - do not fail on reject - - - require - Ask client for MPPE - drop connection on reject - - - ^(deny|prefer|require)$ - - - prefer - - - - LCP echo-requests/sec - - - - - 30 - - - - Maximum number of Echo-Requests may be sent without valid reply - - - - - 3 - - - - Timeout in seconds to wait for any peer activity. If this option specified it turns on adaptive lcp echo functionality and "lcp-echo-failure" is not used. - - - - - 0 - + #include + #include + #include IPv4 (IPCP) negotiation algorithm @@ -523,6 +326,44 @@ + + + control sessions count + + ^(deny|disable|replace)$ + + Invalid value + + disable + Disables session control + + + deny + Deny second session authorization + + + replace + Terminate first session when second is authorized + + + deny disable replace + + + replace + + + + Enable SNMP + + + + + enable SNMP master agent mode + + + + + diff --git a/interface-definitions/vpn_l2tp.xml.in b/interface-definitions/vpn_l2tp.xml.in index 4de28d2bd..d7ad9777f 100644 --- a/interface-definitions/vpn_l2tp.xml.in +++ b/interface-definitions/vpn_l2tp.xml.in @@ -28,14 +28,7 @@ - - - Gatway address uses as client tunnel termination point - - - - - + #include #include @@ -187,20 +180,7 @@ - - - Client IP subnet (CIDR notation) - - - - Not a valid CIDR formatted prefix - - ipv4net - IPv4 subnet address - - - - + #include #include @@ -259,83 +239,9 @@ - - - Specifies mppe negotioation preference. (default require mppe 128-bit stateless - - deny - deny mppe - - - prefer - Ask client for mppe, if it rejects do not fail - - - require - ask client for mppe, if it rejects drop connection - - - (deny|prefer|require) - - - deny prefer require - - - + #include #include - - - Local user authentication for remote access L2TP VPN - - - - - User name for authentication - - - - - Option to disable a L2TP Server user - - - - - - Password for authentication - - - - - Static client IP address - - - - - Upload/Download speed limits - - - - - Upload bandwidth limit in kbits/sec - - - - - - - - Download bandwidth limit in kbits/sec - - - - - - - - - - - + #include #include @@ -430,22 +336,7 @@ Advanced protocol options - - - LCP echo-requests/sec - - - - - - - - Maximum number of Echo-Requests may be sent without valid reply - - - - - + #include diff --git a/interface-definitions/vpn_pptp.xml.in b/interface-definitions/vpn_pptp.xml.in index f37c9bd01..83e71347b 100644 --- a/interface-definitions/vpn_pptp.xml.in +++ b/interface-definitions/vpn_pptp.xml.in @@ -65,14 +65,7 @@ - - - Gatway address uses as client tunnel termination point - - - - - + #include Authentication for remote access PPTP VPN diff --git a/interface-definitions/vpn_sstp.xml.in b/interface-definitions/vpn_sstp.xml.in index 5da2f8f24..5433a4ea7 100644 --- a/interface-definitions/vpn_sstp.xml.in +++ b/interface-definitions/vpn_sstp.xml.in @@ -13,117 +13,45 @@ Authentication for remote access SSTP Server - - - Local user authentication for SSTP server - + #include + #include + #include + #include + #include + - - - User name for authentication - - - - - Option to disable a SSTP Server user - - - - - - Password for authentication - - - - - Static client IP address - - - - - Upload/Download speed limits - - - - - Upload bandwidth limit in kbits/sec - - - - - - - - Download bandwidth limit in kbits/sec - - - - - - - - - + #include - #include - + + + + + Network settings + + + - Authentication protocol for remote access peer SSTP VPN - - pap chap mschap mschap-v2 - - - pap - Authentication via PAP (Password Authentication Protocol) - - - chap - Authentication via CHAP (Challenge Handshake Authentication Protocol) - - - mschap - Authentication via MS-CHAP (Microsoft Challenge Handshake Authentication Protocol) - - - mschap-v2 - Authentication via MS-CHAPv2 (Microsoft Challenge Handshake Authentication Protocol, version 2) - - - (pap|chap|mschap|mschap-v2) - - + Client IP pools and gateway setting - - #include - #include - - - - Upload/Download speed limits - - - - - Specifies RADIUS attribute containing rate information (default 'Filter-Id') - - - - - Specifies vendor dictionary (needs to be in /usr/share/accel-ppp/radius) - - - - - Enable RADIUS bandwidth shaping - - - - - + #include + #include + #include + #include + #include + + + + + PPP (Point-to-Point Protocol) settings + + + #include + #include + #include @@ -168,106 +96,8 @@ - - - Network settings - - - - - Client IP pools and gateway setting - - - - - Client IP subnet (CIDR notation) - - ipv4net - IPv4 address and prefix length - - - - - Not a valid CIDR formatted prefix - - - - - - Gateway IP address - - - - invalid IPv4 address - - ipv4 - Default Gateway send to the client - - - - - - #include - #include - #include - - - - - PPP (Point-to-Point Protocol) settings - - - - - Specifies mppe negotiation preferences - - require prefer deny - - - (^require|prefer|deny) - - - require - send mppe request, if client rejects, drop the connection - - - prefer - send mppe request, if client rejects continue - - - deny - drop all mppe - - - - - - LCP echo-requests/sec - - - - - - - - Maximum number of Echo-Requests may be sent without valid reply - - - - - - - - Timeout in seconds to wait for any peer activity. If this option specified it turns on adaptive lcp echo functionality and "lcp-echo-failure" is not used. - - - - - - - - - - - + + + + -- cgit v1.2.3