Skip to content

Commit

Permalink
Rejected NAT for the Management subnet
Browse files Browse the repository at this point in the history
  • Loading branch information
iArcanic committed Jul 17, 2023
1 parent e3a09d2 commit f94910b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Central-router.startup
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f94910b

Please sign in to comment.