From 2ec023752bdd400835eb69a8f1f9d2873cef61fa Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Fri, 19 Jan 2024 21:01:52 +0100 Subject: firewall: T5729: T5681: T5217: backport subsystem from current branch This is a combined backport for all accumulated changes done to the firewall subsystem on the current branch. --- .../include/firewall/action-forward.xml.i | 10 ++++-- .../include/firewall/action-l2.xml.i | 4 +-- .../include/firewall/action.xml.i | 8 +++-- .../include/firewall/common-rule-bridge.xml.i | 7 +++- .../include/firewall/common-rule-inet.xml.i | 11 ++++-- .../include/firewall/common-rule-ipv4-raw.xml.i | 1 + .../include/firewall/default-action-bridge.xml.i | 6 ++-- .../include/firewall/default-action.xml.i | 2 +- .../include/firewall/firewall-mark.xml.i | 2 +- interface-definitions/include/firewall/log.xml.i | 3 +- .../include/firewall/match-interface.xml.i | 2 +- .../include/firewall/match-vlan.xml.i | 12 +++---- .../include/firewall/offload-target.xml.i | 2 +- interface-definitions/include/firewall/state.xml.i | 2 +- .../include/firewall/synproxy.xml.i | 40 ++++++++++++++++++++++ .../include/firewall/tcp-flags.xml.i | 18 +--------- .../include/firewall/tcp-mss.xml.i | 25 ++++++++++++++ 17 files changed, 113 insertions(+), 42 deletions(-) create mode 100644 interface-definitions/include/firewall/synproxy.xml.i create mode 100644 interface-definitions/include/firewall/tcp-mss.xml.i (limited to 'interface-definitions/include/firewall') diff --git a/interface-definitions/include/firewall/action-forward.xml.i b/interface-definitions/include/firewall/action-forward.xml.i index 87da72c97..4e59f3c6f 100644 --- a/interface-definitions/include/firewall/action-forward.xml.i +++ b/interface-definitions/include/firewall/action-forward.xml.i @@ -3,7 +3,7 @@ Rule action - accept continue jump reject return drop queue offload + accept continue jump reject return drop queue offload synproxy accept @@ -37,9 +37,13 @@ offload Offload packet via flowtable + + synproxy + Synproxy connections + - (accept|continue|jump|reject|return|drop|queue|offload) + (accept|continue|jump|reject|return|drop|queue|offload|synproxy) - \ No newline at end of file + diff --git a/interface-definitions/include/firewall/action-l2.xml.i b/interface-definitions/include/firewall/action-l2.xml.i index 43fd211b4..84af576c8 100644 --- a/interface-definitions/include/firewall/action-l2.xml.i +++ b/interface-definitions/include/firewall/action-l2.xml.i @@ -1,4 +1,4 @@ - + Rule action @@ -34,4 +34,4 @@ - \ No newline at end of file + diff --git a/interface-definitions/include/firewall/action.xml.i b/interface-definitions/include/firewall/action.xml.i index 5dd1bfaff..e1f0c6cb6 100644 --- a/interface-definitions/include/firewall/action.xml.i +++ b/interface-definitions/include/firewall/action.xml.i @@ -3,7 +3,7 @@ Rule action - accept continue jump reject return drop queue offload + accept continue jump reject return drop queue offload synproxy accept @@ -37,8 +37,12 @@ offload Offload packet via flowtable + + synproxy + Synproxy connections + - (accept|continue|jump|reject|return|drop|queue|offload) + (accept|continue|jump|reject|return|drop|queue|offload|synproxy) diff --git a/interface-definitions/include/firewall/common-rule-bridge.xml.i b/interface-definitions/include/firewall/common-rule-bridge.xml.i index dcdd970ac..6de770c79 100644 --- a/interface-definitions/include/firewall/common-rule-bridge.xml.i +++ b/interface-definitions/include/firewall/common-rule-bridge.xml.i @@ -9,7 +9,12 @@ #include -#include + + + Option to disable firewall rule + + + Set jump target. Action jump must be defined to use this setting diff --git a/interface-definitions/include/firewall/common-rule-inet.xml.i b/interface-definitions/include/firewall/common-rule-inet.xml.i index 3b5cb724d..6f56ecc85 100644 --- a/interface-definitions/include/firewall/common-rule-inet.xml.i +++ b/interface-definitions/include/firewall/common-rule-inet.xml.i @@ -7,7 +7,12 @@ #include #include #include -#include + + + Option to disable firewall rule + + + IP fragment match @@ -179,8 +184,10 @@ +#include #include #include +#include Time to match rule @@ -249,4 +256,4 @@ - \ No newline at end of file + diff --git a/interface-definitions/include/firewall/common-rule-ipv4-raw.xml.i b/interface-definitions/include/firewall/common-rule-ipv4-raw.xml.i index b253ee048..0d749aa27 100644 --- a/interface-definitions/include/firewall/common-rule-ipv4-raw.xml.i +++ b/interface-definitions/include/firewall/common-rule-ipv4-raw.xml.i @@ -260,6 +260,7 @@ #include +#include Time to match rule diff --git a/interface-definitions/include/firewall/default-action-bridge.xml.i b/interface-definitions/include/firewall/default-action-bridge.xml.i index 577165976..858c7aeeb 100644 --- a/interface-definitions/include/firewall/default-action-bridge.xml.i +++ b/interface-definitions/include/firewall/default-action-bridge.xml.i @@ -1,7 +1,7 @@ - + - Default action for rule-set + Default-action for rule-set drop jump return accept continue @@ -31,4 +31,4 @@ drop - \ No newline at end of file + diff --git a/interface-definitions/include/firewall/default-action.xml.i b/interface-definitions/include/firewall/default-action.xml.i index 6a49d800e..53a161495 100644 --- a/interface-definitions/include/firewall/default-action.xml.i +++ b/interface-definitions/include/firewall/default-action.xml.i @@ -1,7 +1,7 @@ - Default action for rule-set + Default-action for rule-set drop jump reject return accept continue diff --git a/interface-definitions/include/firewall/firewall-mark.xml.i b/interface-definitions/include/firewall/firewall-mark.xml.i index a4cee12d8..36a939ba3 100644 --- a/interface-definitions/include/firewall/firewall-mark.xml.i +++ b/interface-definitions/include/firewall/firewall-mark.xml.i @@ -23,4 +23,4 @@ - + \ No newline at end of file diff --git a/interface-definitions/include/firewall/log.xml.i b/interface-definitions/include/firewall/log.xml.i index 795ed77be..21548f3fb 100644 --- a/interface-definitions/include/firewall/log.xml.i +++ b/interface-definitions/include/firewall/log.xml.i @@ -4,4 +4,5 @@ Log packets hitting this rule - \ No newline at end of file + + diff --git a/interface-definitions/include/firewall/match-interface.xml.i b/interface-definitions/include/firewall/match-interface.xml.i index 9f720ab37..5da6f51fb 100644 --- a/interface-definitions/include/firewall/match-interface.xml.i +++ b/interface-definitions/include/firewall/match-interface.xml.i @@ -40,4 +40,4 @@ - + \ No newline at end of file diff --git a/interface-definitions/include/firewall/match-vlan.xml.i b/interface-definitions/include/firewall/match-vlan.xml.i index d0820f7d8..44ad02c99 100644 --- a/interface-definitions/include/firewall/match-vlan.xml.i +++ b/interface-definitions/include/firewall/match-vlan.xml.i @@ -6,14 +6,14 @@ - VLAN id + Vlan id u32:0-4096 - VLAN id + Vlan id <start-end> - VLAN id range to match + Vlan id range to match @@ -22,14 +22,14 @@ - VLAN priority(pcp) + Vlan priority(pcp) u32:0-7 - VLAN priority + Vlan priority <start-end> - VLAN priority range to match + Vlan priority range to match diff --git a/interface-definitions/include/firewall/offload-target.xml.i b/interface-definitions/include/firewall/offload-target.xml.i index b1ae39100..940ed8091 100644 --- a/interface-definitions/include/firewall/offload-target.xml.i +++ b/interface-definitions/include/firewall/offload-target.xml.i @@ -7,4 +7,4 @@ - \ No newline at end of file + diff --git a/interface-definitions/include/firewall/state.xml.i b/interface-definitions/include/firewall/state.xml.i index 47ce3c91d..dee9722e5 100644 --- a/interface-definitions/include/firewall/state.xml.i +++ b/interface-definitions/include/firewall/state.xml.i @@ -27,4 +27,4 @@ - \ No newline at end of file + diff --git a/interface-definitions/include/firewall/synproxy.xml.i b/interface-definitions/include/firewall/synproxy.xml.i new file mode 100644 index 000000000..a65126ea9 --- /dev/null +++ b/interface-definitions/include/firewall/synproxy.xml.i @@ -0,0 +1,40 @@ + + + + Synproxy options + + + + + TCP synproxy options + + + + + TCP Maximum segment size + + u32:501-65535 + Maximum segment size for synproxy connections + + + + + + + + + TCP window scale for synproxy connections + + u32:1-14 + TCP window scale + + + + + + + + + + + diff --git a/interface-definitions/include/firewall/tcp-flags.xml.i b/interface-definitions/include/firewall/tcp-flags.xml.i index e2ce7b9fd..36546c2e4 100644 --- a/interface-definitions/include/firewall/tcp-flags.xml.i +++ b/interface-definitions/include/firewall/tcp-flags.xml.i @@ -1,7 +1,7 @@ - TCP flags to match + TCP options to match @@ -114,22 +114,6 @@ - - - Maximum segment size (MSS) - - u32:1-16384 - Maximum segment size - - - <min>-<max> - TCP MSS range (use '-' as delimiter) - - - - - - diff --git a/interface-definitions/include/firewall/tcp-mss.xml.i b/interface-definitions/include/firewall/tcp-mss.xml.i new file mode 100644 index 000000000..dc49b4272 --- /dev/null +++ b/interface-definitions/include/firewall/tcp-mss.xml.i @@ -0,0 +1,25 @@ + + + + TCP options to match + + + + + Maximum segment size (MSS) + + u32:1-16384 + Maximum segment size + + + <min>-<max> + TCP MSS range (use '-' as delimiter) + + + + + + + + + -- cgit v1.2.3