From 52e868e1abfecf00aafc359adefcd3ca7c57b8bd Mon Sep 17 00:00:00 2001 From: aapostoliuk Date: Wed, 24 Jan 2024 15:50:01 +0200 Subject: T5971: Rewritten ppp options in accel-ppp services Rewritten 'ppp-options' to the same view in all accel-ppp services. Adding IPv6 support to PPTP. (cherry picked from commit d9e57fe65dd538c6ea80637f4f6f23cf11dc583d) --- .../accel-ppp/ppp-options-ipv6-interface-id.xml.i | 12 ++-- .../include/accel-ppp/ppp-options.xml.i | 65 ++++++++++++++++++++++ .../include/version/l2tp-version.xml.i | 2 +- .../include/version/pppoe-server-version.xml.i | 2 +- .../include/version/pptp-version.xml.i | 2 +- interface-definitions/service_pppoe-server.xml.in | 58 +------------------ interface-definitions/vpn_l2tp.xml.in | 20 +------ interface-definitions/vpn_pptp.xml.in | 28 +--------- interface-definitions/vpn_sstp.xml.in | 13 +---- 9 files changed, 80 insertions(+), 122 deletions(-) create mode 100644 interface-definitions/include/accel-ppp/ppp-options.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/include/accel-ppp/ppp-options-ipv6-interface-id.xml.i b/interface-definitions/include/accel-ppp/ppp-options-ipv6-interface-id.xml.i index 265f7f97c..c4cf0a458 100644 --- a/interface-definitions/include/accel-ppp/ppp-options-ipv6-interface-id.xml.i +++ b/interface-definitions/include/accel-ppp/ppp-options-ipv6-interface-id.xml.i @@ -1,5 +1,5 @@ - + Fixed or random interface identifier for IPv6 @@ -18,11 +18,11 @@ - + Peer interface identifier for IPv6 - random calling-sid ipv4 + random calling-sid ipv4-addr x:x:x:x @@ -33,7 +33,7 @@ Use a random interface identifier for IPv6 - ipv4 + ipv4-addr Calculate interface identifier from IPv4 address, for example 192:168:0:1 @@ -41,11 +41,11 @@ Calculate interface identifier from calling-station-id - (random|calling-sid|ipv4|((\d+){1,4}:){3}(\d+){1,4}) + (random|calling-sid|ipv4-addr|((\d+){1,4}:){3}(\d+){1,4}) - + Accept peer interface identifier diff --git a/interface-definitions/include/accel-ppp/ppp-options.xml.i b/interface-definitions/include/accel-ppp/ppp-options.xml.i new file mode 100644 index 000000000..9b4f1d0ca --- /dev/null +++ b/interface-definitions/include/accel-ppp/ppp-options.xml.i @@ -0,0 +1,65 @@ + + + + Advanced protocol options + + + + + Minimum acceptable MTU (68-65535) + + + + + + + + Preferred MRU (68-65535) + + + + + + + + Disable Compression Control Protocol (CCP) + + + + #include + #include + #include + #include + + + IPv4 (IPCP) negotiation algorithm + + (deny|allow|prefer|require) + + invalid value + + deny + Do not negotiate IPv4 + + + allow + Negotiate IPv4 only if client requests + + + prefer + Ask client for IPv4 negotiation, do not fail if it rejects + + + require + Require IPv4 negotiation + + + deny allow prefer require + + + + #include + #include + + + diff --git a/interface-definitions/include/version/l2tp-version.xml.i b/interface-definitions/include/version/l2tp-version.xml.i index 793cd5d0c..01004c5a0 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 02f98cc16..c253c58d9 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 4386cedbd..3e1482ecc 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/service_pppoe-server.xml.in b/interface-definitions/service_pppoe-server.xml.in index 6fdc2a65a..477ed115f 100644 --- a/interface-definitions/service_pppoe-server.xml.in +++ b/interface-definitions/service_pppoe-server.xml.in @@ -103,68 +103,12 @@ #include + #include - - Advanced protocol options - - - Minimum acceptable MTU (68-65535) - - - - 1280 - - - Preferred MRU (68-65535) - - - - - - - - CCP negotiation (default disabled) - - - - #include - #include - #include - #include - - - IPv4 (IPCP) negotiation algorithm - - (deny|allow|prefer|require) - - invalid value - - deny - Do not negotiate IPv4 - - - allow - Negotiate IPv4 only if client requests - - - prefer - Ask client for IPv4 negotiation, do not fail if it rejects - - - require - Require IPv4 negotiation - - - deny allow prefer require - - - - #include - #include diff --git a/interface-definitions/vpn_l2tp.xml.in b/interface-definitions/vpn_l2tp.xml.in index d3fb58433..942690bca 100644 --- a/interface-definitions/vpn_l2tp.xml.in +++ b/interface-definitions/vpn_l2tp.xml.in @@ -49,12 +49,6 @@ - - - Disable Compression Control Protocol (CCP) - - - Internet Protocol Security (IPsec) for remote access L2TP VPN @@ -140,19 +134,7 @@ - - - Advanced protocol options - - - #include - #include - #include - #include - #include - #include - - + #include #include #include diff --git a/interface-definitions/vpn_pptp.xml.in b/interface-definitions/vpn_pptp.xml.in index ec622b5d0..d23086c02 100644 --- a/interface-definitions/vpn_pptp.xml.in +++ b/interface-definitions/vpn_pptp.xml.in @@ -27,7 +27,7 @@ #include - #include + #include #include #include @@ -63,30 +63,6 @@ mschap-v2 - - - 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 - - - prefer - #include @@ -134,7 +110,9 @@ #include + #include #include + #include diff --git a/interface-definitions/vpn_sstp.xml.in b/interface-definitions/vpn_sstp.xml.in index 2727540be..0d5d53301 100644 --- a/interface-definitions/vpn_sstp.xml.in +++ b/interface-definitions/vpn_sstp.xml.in @@ -37,18 +37,7 @@ #include #include - - - PPP (Point-to-Point Protocol) settings - - - #include - #include - #include - #include - #include - - + #include SSL Certificate, SSL Key and CA -- cgit v1.2.3