From 99155150df9ceed0be4df46351844451b0683b3b Mon Sep 17 00:00:00 2001 From: Nicolas Fort Date: Fri, 16 Sep 2022 16:35:11 +0000 Subject: T4699: Firewall: Add jump action in firewall rulest --- interface-definitions/firewall.xml.in | 32 ++++++++++++++++++++++ .../include/firewall/action.xml.i | 8 ++++-- .../include/firewall/default-action.xml.i | 8 ++++-- 3 files changed, 44 insertions(+), 4 deletions(-) (limited to 'interface-definitions') diff --git a/interface-definitions/firewall.xml.in b/interface-definitions/firewall.xml.in index d39dddc77..d6fa76892 100644 --- a/interface-definitions/firewall.xml.in +++ b/interface-definitions/firewall.xml.in @@ -379,6 +379,14 @@ #include #include #include + + + Set jump target. Action jump must be defined in default-action to use this setting + + firewall ipv6-name + + + Firewall rule number (IPv6) @@ -452,6 +460,14 @@ #include + + + Set jump target. Action jump must be defined to use this setting + + firewall ipv6-name + + + @@ -527,6 +543,14 @@ #include #include #include + + + Set jump target. Action jump must be defined in default-action to use this setting + + firewall name + + + Firewall rule number (IPv4) @@ -599,6 +623,14 @@ #include + + + Set jump target. Action jump must be defined to use this setting + + firewall name + + + #include diff --git a/interface-definitions/include/firewall/action.xml.i b/interface-definitions/include/firewall/action.xml.i index 512cc23bd..0738fa503 100644 --- a/interface-definitions/include/firewall/action.xml.i +++ b/interface-definitions/include/firewall/action.xml.i @@ -3,12 +3,16 @@ Rule action - accept reject drop + accept jump reject drop accept Accept matching entries + + jump + Jump to another chain + reject Reject matching entries @@ -18,7 +22,7 @@ Drop matching entries - (accept|reject|drop) + (accept|jump|reject|drop) diff --git a/interface-definitions/include/firewall/default-action.xml.i b/interface-definitions/include/firewall/default-action.xml.i index 92a2fcaaf..5107768d3 100644 --- a/interface-definitions/include/firewall/default-action.xml.i +++ b/interface-definitions/include/firewall/default-action.xml.i @@ -3,12 +3,16 @@ Default-action for rule-set - drop reject accept + drop jump reject accept drop Drop if no prior rules are hit + + jump + Jump to another chain if no prior rules are hit + reject Drop and notify source if no prior rules are hit @@ -18,7 +22,7 @@ Accept if no prior rules are hit - (drop|reject|accept) + (drop|jump|reject|accept) drop -- cgit v1.2.3