From 4e8839b6d78c7629cd2c1daee0438472c96365a4 Mon Sep 17 00:00:00 2001 From: Nicolas Fort Date: Tue, 21 Nov 2023 17:36:20 +0000 Subject: T5419: firewall: backport firewall flowtable to Sagitta. --- .../include/firewall/action-forward.xml.i | 45 ++++++++++++++++++++++ .../include/firewall/ipv4-hook-forward.xml.i | 2 + .../include/firewall/ipv6-hook-forward.xml.i | 2 + .../include/firewall/offload-target.xml.i | 10 +++++ 4 files changed, 59 insertions(+) create mode 100644 interface-definitions/include/firewall/action-forward.xml.i create mode 100644 interface-definitions/include/firewall/offload-target.xml.i (limited to 'interface-definitions/include') diff --git a/interface-definitions/include/firewall/action-forward.xml.i b/interface-definitions/include/firewall/action-forward.xml.i new file mode 100644 index 000000000..87da72c97 --- /dev/null +++ b/interface-definitions/include/firewall/action-forward.xml.i @@ -0,0 +1,45 @@ + + + + Rule action + + accept continue jump reject return drop queue offload + + + accept + Accept matching entries + + + continue + Continue parsing next rule + + + jump + Jump to another chain + + + reject + Reject matching entries + + + return + Return from the current chain and continue at the next rule of the last chain + + + drop + Drop matching entries + + + queue + Enqueue packet to userspace + + + offload + Offload packet via flowtable + + + (accept|continue|jump|reject|return|drop|queue|offload) + + + + \ No newline at end of file diff --git a/interface-definitions/include/firewall/ipv4-hook-forward.xml.i b/interface-definitions/include/firewall/ipv4-hook-forward.xml.i index 9831498c9..100f1c3d9 100644 --- a/interface-definitions/include/firewall/ipv4-hook-forward.xml.i +++ b/interface-definitions/include/firewall/ipv4-hook-forward.xml.i @@ -25,8 +25,10 @@ Firewall rule number must be between 1 and 999999 + #include #include #include + #include #include diff --git a/interface-definitions/include/firewall/ipv6-hook-forward.xml.i b/interface-definitions/include/firewall/ipv6-hook-forward.xml.i index 5c86871e5..fb38267eb 100644 --- a/interface-definitions/include/firewall/ipv6-hook-forward.xml.i +++ b/interface-definitions/include/firewall/ipv6-hook-forward.xml.i @@ -25,8 +25,10 @@ Firewall rule number must be between 1 and 999999 + #include #include #include + #include #include diff --git a/interface-definitions/include/firewall/offload-target.xml.i b/interface-definitions/include/firewall/offload-target.xml.i new file mode 100644 index 000000000..b1ae39100 --- /dev/null +++ b/interface-definitions/include/firewall/offload-target.xml.i @@ -0,0 +1,10 @@ + + + + Set flowtable offload target. Action offload must be defined to use this setting + + firewall flowtable + + + + \ No newline at end of file -- cgit v1.2.3