summaryrefslogtreecommitdiffstats
path: root/debian/examples/workstation.nft
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 13:08:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 13:08:38 +0000
commit9fe063bb3ef278a591e344caa78bee679536b7ee (patch)
treef589ace33354785090116341f7c702b6035b0868 /debian/examples/workstation.nft
parentAdding upstream version 1.0.9. (diff)
downloadnftables-9fe063bb3ef278a591e344caa78bee679536b7ee.tar.xz
nftables-9fe063bb3ef278a591e344caa78bee679536b7ee.zip
Adding debian version 1.0.9-1.debian/1.0.9-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/examples/workstation.nft')
-rwxr-xr-xdebian/examples/workstation.nft25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/examples/workstation.nft b/debian/examples/workstation.nft
new file mode 100755
index 0000000..bc7cd02
--- /dev/null
+++ b/debian/examples/workstation.nft
@@ -0,0 +1,25 @@
+#!/usr/sbin/nft -f
+
+flush ruleset
+
+table inet filter {
+ chain input {
+ type filter hook input priority 0;
+
+ # accept any localhost traffic
+ iif lo accept
+
+ # accept traffic originated from us
+ ct state established,related accept
+
+ # activate the following line to accept common local services
+ #tcp dport { 22, 80, 443 } ct state new accept
+
+ # ICMPv6 packets which must not be dropped, see https://tools.ietf.org/html/rfc4890#section-4.4.1
+ meta nfproto ipv6 icmpv6 type { destination-unreachable, packet-too-big, time-exceeded, parameter-problem, echo-reply, echo-request, nd-router-solicit, nd-router-advert, nd-neighbor-solicit, nd-neighbor-advert, 148, 149 } accept
+ ip6 saddr fe80::/10 icmpv6 type { 130, 131, 132, 143, 151, 152, 153 } accept
+
+ # count and drop any other traffic
+ counter drop
+ }
+}