From 26960607983a7010b414d560a182f81a1829f91d Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 24 Nov 2024 09:11:34 +0530 Subject: kay/router: avoid using nat on gpon subnet --- os/kay/modules/router.nix | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'os/kay/modules') diff --git a/os/kay/modules/router.nix b/os/kay/modules/router.nix index 8bf7cde..daf4f63 100644 --- a/os/kay/modules/router.nix +++ b/os/kay/modules/router.nix @@ -2,8 +2,7 @@ wanInterface = "ppp0"; gponInterface = "enp3s0"; - gponHost = "192.168.38.2"; - gponSubnet = "192.168.38.0"; + gponHost = "192.168.38.1"; gponPrefix = 24; lanInterface = "enp8s0f3u1"; @@ -48,13 +47,6 @@ in { iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN \ -o ${wanInterface} \ -j TCPMSS --clamp-mss-to-pmtu - - iptables -t nat -I POSTROUTING 1 \ - -d ${gponSubnet}/${toString gponPrefix} \ - -j MASQUERADE - iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN \ - -d ${gponSubnet}/${toString gponPrefix} \ - -j TCPMSS --clamp-mss-to-pmtu ''; }; }; -- cgit v1.2.3