noeldkendall

CS VR SNAT Problem

Sep 14th, 2013
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.38 KB | None | 0 0
  1. root@r-12-VM:~/bin# iptables -L -t filter
  2. Chain INPUT (policy DROP)
  3. target prot opt source destination
  4. ACCEPT tcp -- anywhere anywhere tcp dpt:domain
  5. ACCEPT udp -- anywhere anywhere udp dpt:domain
  6. ACCEPT esp -- anywhere anywhere
  7. ACCEPT ah -- anywhere anywhere
  8. ACCEPT udp -- anywhere 67.xxx.xxx.56 udp dpt:l2f
  9. ACCEPT udp -- anywhere 67.xxx.xxx.56 udp dpt:4500
  10. ACCEPT udp -- anywhere 67.xxx.xxx.56 udp dpt:isakmp
  11. ACCEPT all -- anywhere vrrp.mcast.net
  12. ACCEPT all -- anywhere 225.0.0.50
  13. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  14. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  15. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  16. ACCEPT icmp -- anywhere anywhere
  17. ACCEPT all -- anywhere anywhere
  18. ACCEPT udp -- anywhere anywhere udp dpt:bootps
  19. ACCEPT udp -- anywhere anywhere udp dpt:domain
  20. ACCEPT tcp -- anywhere anywhere tcp dpt:domain
  21. ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:3922
  22. ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:www
  23. ACCEPT tcp -- 10.11.0.0/16 anywhere state NEW tcp dpt:http-alt
  24. LOG all -- anywhere anywhere LOG level debug prefix `[FW INPUT]: '
  25.  
  26. Chain FORWARD (policy DROP)
  27. target prot opt source destination
  28. ACCEPT all -- anywhere anywhere
  29. ACCEPT all -- anywhere anywhere
  30. ACCEPT all -- anywhere anywhere
  31. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  32. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  33. ACCEPT all -- anywhere anywhere state NEW
  34. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  35. FW_OUTBOUND all -- anywhere anywhere
  36. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  37. FW_OUTBOUND all -- anywhere anywhere
  38. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  39. FW_OUTBOUND all -- anywhere anywhere
  40. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  41. FW_OUTBOUND all -- anywhere anywhere
  42. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  43. FW_OUTBOUND all -- anywhere anywhere
  44. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  45. FW_OUTBOUND all -- anywhere anywhere
  46. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  47. FW_OUTBOUND all -- anywhere anywhere
  48. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  49. FW_OUTBOUND all -- anywhere anywhere
  50. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  51. FW_OUTBOUND all -- anywhere anywhere
  52. ACCEPT tcp -- anywhere magento state RELATED,ESTABLISHED /* 67.xxx.xxx.56:80:80 */
  53. ACCEPT tcp -- anywhere magento tcp dpt:www state NEW /* 67.xxx.xxx.56:80:80 */
  54. ACCEPT tcp -- anywhere magento state RELATED,ESTABLISHED /* 67.xxx.xxx.56:443:443 */
  55. ACCEPT tcp -- anywhere magento tcp dpt:https state NEW /* 67.xxx.xxx.56:443:443 */
  56. ACCEPT tcp -- anywhere magento state RELATED,ESTABLISHED /* 67.xxx.xxx.56:22:22 */
  57. ACCEPT tcp -- anywhere magento tcp dpt:ssh state NEW /* 67.xxx.xxx.56:22:22 */
  58. ACCEPT tcp -- anywhere magento state RELATED,ESTABLISHED /* 67.xxx.xxx.56:21:21 */
  59. ACCEPT tcp -- anywhere magento tcp dpt:ftp state NEW /* 67.xxx.xxx.56:21:21 */
  60. ACCEPT tcp -- anywhere magento state RELATED,ESTABLISHED /* 67.xxx.xxx.56:5901:5901 */
  61. ACCEPT tcp -- anywhere magento tcp dpt:5901 state NEW /* 67.xxx.xxx.56:5901:5901 */
  62. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  63. FW_OUTBOUND all -- anywhere anywhere
  64. LOG all -- anywhere anywhere LOG level debug prefix `[FW FORWARD ]: '
  65.  
  66. Chain OUTPUT (policy ACCEPT)
  67. target prot opt source destination
  68. LOG all -- anywhere anywhere LOG level debug prefix `[FW OUTPUT]: '
  69.  
  70. Chain FW_EGRESS_RULES (1 references)
  71. target prot opt source destination
  72. ACCEPT all -- anywhere anywhere
  73.  
  74. Chain FW_OUTBOUND (10 references)
  75. target prot opt source destination
  76. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  77. FW_EGRESS_RULES all -- anywhere anywhere
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85. root@r-12-VM:~/bin# iptables -L -t nat
  86. Chain PREROUTING (policy ACCEPT)
  87. target prot opt source destination
  88. DNAT tcp -- anywhere anywhere tcp dpt:domain to:10.11.0.1
  89. DNAT tcp -- anywhere 67.xxx.xxx.56 tcp dpt:www to:10.11.79.178:80
  90. DNAT tcp -- anywhere 67.xxx.xxx.56 tcp dpt:www to:10.11.79.178:80
  91. DNAT tcp -- anywhere 67.xxx.xxx.56 tcp dpt:https to:10.11.79.178:443
  92. DNAT tcp -- anywhere 67.xxx.xxx.56 tcp dpt:https to:10.11.79.178:443
  93. DNAT tcp -- anywhere 67.xxx.xxx.56 tcp dpt:ssh to:10.11.79.178:22
  94. DNAT tcp -- anywhere 67.xxx.xxx.56 tcp dpt:ssh to:10.11.79.178:22
  95. DNAT tcp -- anywhere 67.xxx.xxx.56 tcp dpt:ftp to:10.11.79.178:21
  96. DNAT tcp -- anywhere 67.xxx.xxx.56 tcp dpt:ftp to:10.11.79.178:21
  97. DNAT tcp -- anywhere 67.xxx.xxx.56 tcp dpt:5901 to:10.11.79.178:5901
  98. DNAT tcp -- anywhere 67.xxx.xxx.56 tcp dpt:5901 to:10.11.79.178:5901
  99.  
  100. Chain POSTROUTING (policy ACCEPT)
  101. target prot opt source destination
  102. SNAT all -- anywhere anywhere to:67.xxx.xxx.56
  103. SNAT all -- anywhere anywhere to:67.xxx.xxx.56
  104. SNAT all -- anywhere anywhere to:67.xxx.xxx.56
  105. SNAT all -- anywhere anywhere to:67.xxx.xxx.56
  106. SNAT all -- anywhere anywhere to:67.xxx.xxx.56
  107. SNAT all -- anywhere anywhere to:67.xxx.xxx.56
  108. SNAT all -- anywhere anywhere to:67.xxx.xxx.56
  109. SNAT all -- anywhere anywhere to:67.xxx.xxx.56
  110. SNAT tcp -- 10.11.0.0/16 magento tcp dpt:www to:10.11.0.1
  111. SNAT tcp -- 10.11.0.0/16 magento tcp dpt:https to:10.11.0.1
  112. SNAT tcp -- 10.11.0.0/16 magento tcp dpt:ssh to:10.11.0.1
  113. SNAT tcp -- 10.11.0.0/16 magento tcp dpt:ftp to:10.11.0.1
  114. SNAT tcp -- 10.11.0.0/16 magento tcp dpt:5901 to:10.11.0.1
  115. SNAT all -- anywhere anywhere to:67.xxx.xxx.56
  116.  
  117. Chain OUTPUT (policy ACCEPT)
  118. target prot opt source destination
  119. DNAT tcp -- anywhere 67.xxx.xxx.56 tcp dpt:www to:10.11.79.178:80
  120. DNAT tcp -- anywhere 67.xxx.xxx.56 tcp dpt:https to:10.11.79.178:443
  121. DNAT tcp -- anywhere 67.xxx.xxx.56 tcp dpt:ssh to:10.11.79.178:22
  122. DNAT tcp -- anywhere 67.xxx.xxx.56 tcp dpt:ftp to:10.11.79.178:21
  123. DNAT tcp -- anywhere 67.xxx.xxx.56 tcp dpt:5901 to:10.11.79.178:5901
  124.  
  125.  
  126.  
  127. root@r-12-VM:~/bin# iptables -L -t mangle
  128. Chain PREROUTING (policy ACCEPT)
  129. target prot opt source destination
  130. VPN_67.xxx.xxx.56 all -- anywhere 67.xxx.xxx.56
  131. FIREWALL_67.xxx.xxx.56 all -- anywhere 67.xxx.xxx.56
  132. CONNMARK all -- anywhere anywhere state RELATED,ESTABLISHED CONNMARK restore
  133. MARK tcp -- anywhere 67.xxx.xxx.56 tcp dpt:www MARK set 0x2
  134. CONNMARK tcp -- anywhere 67.xxx.xxx.56 tcp dpt:www state NEW CONNMARK save
  135. MARK tcp -- anywhere 67.xxx.xxx.56 tcp dpt:https MARK set 0x2
  136. CONNMARK tcp -- anywhere 67.xxx.xxx.56 tcp dpt:https state NEW CONNMARK save
  137. MARK tcp -- anywhere 67.xxx.xxx.56 tcp dpt:ssh MARK set 0x2
  138. CONNMARK tcp -- anywhere 67.xxx.xxx.56 tcp dpt:ssh state NEW CONNMARK save
  139. MARK tcp -- anywhere 67.xxx.xxx.56 tcp dpt:ftp MARK set 0x2
  140. CONNMARK tcp -- anywhere 67.xxx.xxx.56 tcp dpt:ftp state NEW CONNMARK save
  141. MARK tcp -- anywhere 67.xxx.xxx.56 tcp dpt:5901 MARK set 0x2
  142. CONNMARK tcp -- anywhere 67.xxx.xxx.56 tcp dpt:5901 state NEW CONNMARK save
  143.  
  144. Chain INPUT (policy ACCEPT)
  145. target prot opt source destination
  146.  
  147. Chain FORWARD (policy ACCEPT)
  148. target prot opt source destination
  149.  
  150. Chain OUTPUT (policy ACCEPT)
  151. target prot opt source destination
  152.  
  153. Chain POSTROUTING (policy ACCEPT)
  154. target prot opt source destination
  155. CHECKSUM udp -- anywhere anywhere udp dpt:bootpc CHECKSUM fill
  156.  
  157. Chain FIREWALL_67.xxx.xxx.56 (1 references)
  158. target prot opt source destination
  159. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  160. RETURN tcp -- anywhere anywhere tcp dpt:www
  161. RETURN udp -- anywhere anywhere udp dpt:4500
  162. RETURN icmp -- anywhere anywhere icmp type 0 code 8
  163. RETURN tcp -- anywhere anywhere tcp dpts:ftp:ssh
  164. RETURN udp -- anywhere anywhere udp dpt:isakmp
  165. RETURN udp -- anywhere anywhere udp dpt:l2f
  166. DROP all -- anywhere anywhere
  167.  
  168. Chain VPN_67.xxx.xxx.56 (1 references)
  169. target prot opt source destination
  170. ACCEPT esp -- anywhere anywhere
  171. ACCEPT ah -- anywhere anywhere
  172. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  173. RETURN all -- anywhere anywhere
Advertisement
Add Comment
Please, Sign In to add comment