From f94910b33ea0fcdf653b3dcf99456171f2c98320 Mon Sep 17 00:00:00 2001 From: Preetham Ananthkumar Date: Mon, 17 Jul 2023 22:14:01 +0100 Subject: [PATCH] Rejected NAT for the Management subnet --- Central-router.startup | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Central-router.startup b/Central-router.startup index 8167d4d..9731437 100755 --- a/Central-router.startup +++ b/Central-router.startup @@ -32,5 +32,10 @@ ip link set up dev eth6 # Enable IP forwarding sysctl -w net.ipv4.ip_forward=1 +# NAT rules + +# Reject NAT for Management subnet +iptables -t nat -A POSTROUTING -s 10.0.6.0/24 -o eth0 -j ACCEPT + # Enable NAT forwarding iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE