summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2025-05-25 12:24:04 +0530
committersinanmohd <sinan@sinanmohd.com>2025-05-25 12:24:04 +0530
commit87f07933dd9c23b4a7b84154b5d34ada8f3844ff (patch)
treeb95c9a29d836e7e7f0974935e0ce23f1fe160f35
parent282e13bafb00488d5c805ec82535bdd35e4f824c (diff)
kay/router: drop inetfilter chain
-rw-r--r--os/kay/modules/router.nix9
1 files changed, 0 insertions, 9 deletions
diff --git a/os/kay/modules/router.nix b/os/kay/modules/router.nix
index 2e01789..bb8cd3b 100644
--- a/os/kay/modules/router.nix
+++ b/os/kay/modules/router.nix
@@ -46,20 +46,11 @@ in {
iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN \
-o ${wanInterface} \
-j TCPMSS --clamp-mss-to-pmtu
-
- iptables -N inetfilter
- iptables -A inetfilter -s 192.168.43.124/32 -m mac --mac-source 08:02:3c:d4:d9:f2 -j ACCEPT
- iptables -A inetfilter -s 192.168.43.119/32 -m mac --mac-source a8:93:4a:50:c8:b3 -j ACCEPT
- iptables -A inetfilter -j DROP
- iptables -I FORWARD -i lan -o ppp0 -j inetfilter
'';
extraStopCommands = ''
iptables -t mangle -D FORWARD -p tcp --tcp-flags SYN,RST SYN \
-o ${wanInterface} \
-j TCPMSS --clamp-mss-to-pmtu
-
- iptables -w -t filter -F inetfilter
- iptables -w -t filter -X inetfilter
'';
};
};