summaryrefslogtreecommitdiff
path: root/os/kay/modules/router.nix
diff options
context:
space:
mode:
Diffstat (limited to 'os/kay/modules/router.nix')
-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
'';
};
};