Advertisement
huyhung94

Internal Firewall

Jun 5th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.89 KB | None | 0 0
  1. ===== Internal Firewall ======
  2.  
  3. -A INPUT -i lo -j ACCEPT
  4. -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
  5. -A INPUT -p icmp -j icmp_packets
  6. -A INPUT -i eth2 -p tcp -m multiport --dports 80,443,110,25,22 -j ACCEPT
  7. -A FORWARD -i eth2 -o eth1 -j ACCEPT
  8. -A FORWARD -i eth1 -o eth2 -m state --state RELATED,ESTABLISHED -j ACCEPT
  9.  
  10. ======== Route ======
  11. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  12. 192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
  13. 172.16.0.0      192.168.1.2     255.255.0.0     UG    0      0        0 eth1
  14. 172.16.0.0      *               255.255.0.0     U     0      0        0 eth2
  15. link-local      *               255.255.0.0     U     1002   0        0 eth1
  16. link-local      *               255.255.0.0     U     1003   0        0 eth2
  17. default         192.168.1.1     0.0.0.0         UG    0      0        0 eth1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement