hudony

iptablesServer

Oct 4th, 2011
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. iptables -L && iptables -L -t nat
  2. Chain INPUT (policy DROP)
  3. target prot opt source destination
  4. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  5. ACCEPT all -- anywhere 172.16.0.0/24
  6. ACCEPT icmp -- anywhere anywhere
  7. ACCEPT all -- localhost.localdomain anywhere
  8. DROP all -- bruichladdich.netcraft.com anywhere
  9. ACCEPT tcp -- anywhere anywhere state NEW,RELATED,ESTABLISHED tcp dpt:3link
  10. ACCEPT udp -- anywhere anywhere state NEW,RELATED,ESTABLISHED udp dpt:3link
  11. ACCEPT tcp -- anywhere anywhere state NEW,RELATED,ESTABLISHED tcp dpt:ssh
  12. ACCEPT udp -- anywhere anywhere state NEW,RELATED,ESTABLISHED udp dpt:openvpn
  13. ACCEPT all -- anywhere anywhere
  14. ACCEPT all -- anywhere anywhere
  15. ACCEPT tcp -- anywhere anywhere state NEW,RELATED,ESTABLISHED tcp dpt:ftp multiport sports 1024:65535
  16. ACCEPT tcp -- anywhere anywhere state NEW,RELATED,ESTABLISHED tcp dpts:commplex-main:zenginkyo-1 multiport sports 1024:65535
  17. LOG all -- anywhere anywhere LOG level warning
  18.  
  19. Chain FORWARD (policy DROP)
  20. target prot opt source destination
  21. ACCEPT all -- anywhere anywhere state NEW,RELATED,ESTABLISHED
  22. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  23. ACCEPT all -- anywhere 172.16.0.252
  24. ACCEPT all -- anywhere anywhere
  25. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  26. LOG all -- anywhere anywhere LOG level warning
  27.  
  28. Chain OUTPUT (policy ACCEPT)
  29. target prot opt source destination
  30. Chain PREROUTING (policy ACCEPT)
  31. target prot opt source destination
  32. DNAT tcp -- anywhere anywhere tcp dpt:3link to:172.16.0.252:15363
  33. DNAT udp -- anywhere anywhere udp dpt:3link to:172.16.0.252:15363
  34.  
  35. Chain POSTROUTING (policy ACCEPT)
  36. target prot opt source destination
  37. MASQUERADE all -- anywhere anywhere
  38.  
  39. Chain OUTPUT (policy ACCEPT)
  40. target prot opt source destination
  41.  
Advertisement
Add Comment
Please, Sign In to add comment