phucvdb

Iptables

Sep 1st, 2011
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.21 KB | None | 0 0
  1. #Filter Tables;
  2.  
  3. Chain INPUT (policy ACCEPT)
  4. target prot opt source destination
  5. nova-network-INPUT all -- anywhere anywhere
  6. ACCEPT udp -- anywhere anywhere udp dpt:domain
  7. ACCEPT tcp -- anywhere anywhere tcp dpt:domain
  8. ACCEPT udp -- anywhere anywhere udp dpt:bootps
  9. ACCEPT tcp -- anywhere anywhere tcp dpt:bootps
  10.  
  11. Chain FORWARD (policy ACCEPT)
  12. target prot opt source destination
  13. nova-filter-top all -- anywhere anywhere
  14. nova-network-FORWARD all -- anywhere anywhere
  15. ACCEPT all -- anywhere 192.168.122.0/24 state RELATED,ESTABLISHED
  16. ACCEPT all -- 192.168.122.0/24 anywhere
  17. ACCEPT all -- anywhere anywhere
  18. REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
  19. REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
  20.  
  21. Chain OUTPUT (policy ACCEPT)
  22. target prot opt source destination
  23. nova-filter-top all -- anywhere anywhere
  24. nova-network-OUTPUT all -- anywhere anywhere
  25.  
  26. Chain nova-filter-top (2 references)
  27. target prot opt source destination
  28. nova-network-local all -- anywhere anywhere
  29.  
  30. Chain nova-network-FORWARD (1 references)
  31. target prot opt source destination
  32. ACCEPT all -- anywhere anywhere
  33. ACCEPT all -- anywhere anywhere
  34.  
  35. Chain nova-network-INPUT (1 references)
  36. target prot opt source destination
  37.  
  38. Chain nova-network-OUTPUT (1 references)
  39. target prot opt source destination
  40.  
  41. Chain nova-network-local (1 references)
  42. target prot opt source destination
  43.  
  44. # Nat tables;
  45.  
  46. $ sudo iptables -L -t nat;
  47. Chain PREROUTING (policy ACCEPT)
  48. target prot opt source destination
  49. nova-network-PREROUTING all -- anywhere anywhere
  50.  
  51. Chain OUTPUT (policy ACCEPT)
  52. target prot opt source destination
  53. nova-network-OUTPUT all -- anywhere anywhere
  54.  
  55. Chain POSTROUTING (policy ACCEPT)
  56. target prot opt source destination
  57. nova-network-POSTROUTING all -- anywhere anywhere
  58. nova-postrouting-bottom all -- anywhere anywhere
  59. MASQUERADE tcp -- 192.168.122.0/24 !192.168.122.0/24 masq ports: 1024-65535
  60. MASQUERADE udp -- 192.168.122.0/24 !192.168.122.0/24 masq ports: 1024-65535
  61. MASQUERADE all -- 192.168.122.0/24 !192.168.122.0/24
  62.  
  63. Chain nova-network-OUTPUT (1 references)
  64. target prot opt source destination
  65. DNAT all -- anywhere 10.2.48.47 to:10.0.0.2
  66.  
  67. Chain nova-network-POSTROUTING (1 references)
  68. target prot opt source destination
  69. ACCEPT all -- 10.0.0.0/8 10.128.0.0/24
  70. ACCEPT all -- 10.0.0.0/8 10.0.0.0/8
  71.  
  72. Chain nova-network-PREROUTING (1 references)
  73. target prot opt source destination
  74. DNAT all -- anywhere 10.2.48.47 to:10.0.0.2
  75. DNAT tcp -- anywhere 169.254.169.254 tcp dpt:www to:10.2.48.50:8773
  76.  
  77. Chain nova-network-floating-snat (1 references)
  78. target prot opt source destination
  79. SNAT all -- 10.0.0.2 anywhere to:10.2.48.47
  80.  
  81. Chain nova-network-snat (1 references)
  82. target prot opt source destination
  83. nova-network-floating-snat all -- anywhere anywhere
  84. SNAT all -- 10.0.0.0/8 anywhere to:10.2.48.50
  85.  
  86. Chain nova-postrouting-bottom (1 references)
  87. target prot opt source destination
  88. nova-network-snat all -- anywhere anywhere
Advertisement
Add Comment
Please, Sign In to add comment