Question: Need iptables rules for the following scenario: External Host host: 10.9.0.5 Internal Network HOSTS: 192.168.60.5, 192.168.60.6, 192.168.60.7 ROUTER: (eth0 10.9.0.11, eth1 192.168.60.11) All traffic should
Need iptables rules for the following scenario:
External Host host: 10.9.0.5
Internal Network HOSTS: 192.168.60.5, 192.168.60.6, 192.168.60.7
ROUTER: (eth0 10.9.0.11, eth1 192.168.60.11)
All traffic should be DROP'ed except for the following rules:
1. Any outgoing traffic from the 192.168.60.0/24 network to the 10.9.0.0/24 network is allowed. That is, the connection must be initiated from the 192.168.60.0/24 network (and not the other way around).
2. Any host can ping the router (10.9.0.11 or 192.168.60.11) 3. Host 10.9.0.5 is allowed to telnet to 192.168.60.5
All rules must be stateful
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
