Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sysctl net.ipv4.ip_forward
- net.ipv4.ip_forward = 1
- iptables -L
- Chain INPUT (policy DROP)
- target prot opt source destination
- ACCEPT all -- anywhere anywhere
- ACCEPT tcp -- anywhere 192.168.1.2 tcp spts:login:65535 dpt:ssh state NEW,ESTABLISHED
- ACCEPT tcp -- anywhere 192.168.1.2 tcp spts:login:65535 dpt:ndmp state NEW,ESTABLISHED
- ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
- ACCEPT all -- anywhere anywhere
- LOG all -- anywhere anywhere LOG level warning
- DROP all -- anywhere anywhere
- Chain FORWARD (policy ACCEPT)
- target prot opt source destination
- ACCEPT all -- anywhere anywhere
- Chain OUTPUT (policy ACCEPT)
- target prot opt source destination
- ACCEPT all -- anywhere anywhere
- ACCEPT tcp -- 192.168.1.2 anywhere tcp spt:ssh dpts:login:65535 state ESTABLISHED
- ACCEPT tcp -- 192.168.1.2 anywhere tcp spt:ndmp dpts:login:65535 state ESTABLISHED
- ACCEPT all -- anywhere anywhere
- Machine: 192.168.2.10
- ===========================================================================
- Active Routes:
- Network Destination Netmask Gateway Interface Metric
- 0.0.0.0 0.0.0.0 192.168.2.1 192.168.2.10 10
- 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
- 192.168.2.0 255.255.255.0 192.168.2.10 192.168.2.10 10
- 192.168.2.12 255.255.255.255 127.0.0.1 127.0.0.1 10
- 192.168.2.255 255.255.255.255 192.168.2.10 192.168.2.10 10
- 224.0.0.0 240.0.0.0 192.168.2.10 192.168.2.10 10
- 255.255.255.255 255.255.255.255 192.168.2.10 192.168.2.10 1
- Default Gateway: 192.168.2.1
- ===========================================================================
- Persistent Routes:
- None
- Machine: 192.168.3.10
- ===========================================================================
- Active Routes:
- Network Destination Netmask Gateway Interface Metric
- 0.0.0.0 0.0.0.0 192.168.3.1 192.168.3.10 10
- 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
- 192.168.2.0 255.255.255.0 192.168.3.10 192.168.3.10 10
- 192.168.2.12 255.255.255.255 127.0.0.1 127.0.0.1 10
- 192.168.2.255 255.255.255.255 192.168.3.10 192.168.3.10 10
- 224.0.0.0 240.0.0.0 192.168.3.10 192.168.3.10 10
- 255.255.255.255 255.255.255.255 192.168.3.10 192.168.3.10 1
- Default Gateway: 192.168.3.1
- ===========================================================================
- Persistent Routes:
- None
Advertisement
Add Comment
Please, Sign In to add comment