summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_cpu.txlate
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libxt_cpu.txlate')
-rw-r--r--extensions/libxt_cpu.txlate5
1 files changed, 5 insertions, 0 deletions
diff --git a/extensions/libxt_cpu.txlate b/extensions/libxt_cpu.txlate
new file mode 100644
index 00000000..c59b0e02
--- /dev/null
+++ b/extensions/libxt_cpu.txlate
@@ -0,0 +1,5 @@
+iptables-translate -A INPUT -p tcp --dport 80 -m cpu --cpu 0 -j ACCEPT
+nft add rule ip filter INPUT tcp dport 80 cpu 0 counter accept
+
+iptables-translate -A INPUT -p tcp --dport 80 -m cpu ! --cpu 1 -j ACCEPT
+nft add rule ip filter INPUT tcp dport 80 cpu != 1 counter accept