* [nftables PATCH] files: improve secmark.nft example
@ 2021-05-24 9:47 Dominick Grift
2021-05-24 14:33 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Dominick Grift @ 2021-05-24 9:47 UTC (permalink / raw)
To: netfilter-devel; +Cc: Dominick Grift
use proper priorities to ensure that ct works properly
Signed-off-by: Dominick Grift <dominick.grift@defensec.nl>
---
files/examples/secmark.nft | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/files/examples/secmark.nft b/files/examples/secmark.nft
index 16f9a368..c923cebb 100755
--- a/files/examples/secmark.nft
+++ b/files/examples/secmark.nft
@@ -10,7 +10,7 @@
flush ruleset
-table inet filter {
+table inet x {
secmark ssh_server {
"system_u:object_r:ssh_server_packet_t:s0"
}
@@ -57,8 +57,8 @@ table inet filter {
elements = { 22 : "ssh_client", 53 : "dns_client", 80 : "http_client", 123 : "ntp_client", 443 : "http_client", 9418 : "git_client" }
}
- chain input {
- type filter hook input priority 0;
+ chain y {
+ type filter hook input priority -225;
# label new incoming packets and add to connection
ct state new meta secmark set tcp dport map @secmapping_in
@@ -71,8 +71,8 @@ table inet filter {
ct state established,related meta secmark set ct secmark
}
- chain output {
- type filter hook output priority 0;
+ chain z {
+ type filter hook output priority 225;
# label new outgoing packets and add to connection
ct state new meta secmark set tcp dport map @secmapping_out
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [nftables PATCH] files: improve secmark.nft example
2021-05-24 9:47 [nftables PATCH] files: improve secmark.nft example Dominick Grift
@ 2021-05-24 14:33 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2021-05-24 14:33 UTC (permalink / raw)
To: Dominick Grift; +Cc: netfilter-devel
On Mon, May 24, 2021 at 11:47:51AM +0200, Dominick Grift wrote:
> use proper priorities to ensure that ct works properly
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-24 14:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-24 9:47 [nftables PATCH] files: improve secmark.nft example Dominick Grift
2021-05-24 14:33 ` Pablo Neira Ayuso
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.