Advertisement
Guest User

Untitled

a guest
May 3rd, 2022
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. bash-5.1# iptables -A FORWARD -i nm-OG -j ACCEPT; iptables -A FORWARD -o nm-OG -j ACCEPT; iptables -t nat -A POSTROUTING -o ens160 -j MASQUERADE
  2. bash-5.1# iptables -L -t nat
  3. Chain PREROUTING (policy ACCEPT)
  4. target prot opt source destination
  5.  
  6. Chain INPUT (policy ACCEPT)
  7. target prot opt source destination
  8.  
  9. Chain OUTPUT (policy ACCEPT)
  10. target prot opt source destination
  11. DOCKER_OUTPUT all -- anywhere localhost
  12.  
  13. Chain POSTROUTING (policy ACCEPT)
  14. target prot opt source destination
  15. DOCKER_POSTROUTING all -- anywhere localhost
  16. MASQUERADE all -- anywhere anywhere
  17. MASQUERADE all -- anywhere anywhere
  18. MASQUERADE all -- anywhere anywhere
  19. MASQUERADE all -- anywhere anywhere
  20. MASQUERADE all -- anywhere anywhere
  21. MASQUERADE all -- anywhere anywhere
  22.  
  23. Chain DOCKER_OUTPUT (1 references)
  24. target prot opt source destination
  25. DNAT tcp -- anywhere localhost tcp dpt:domain to:127.0.0.11:41689
  26. DNAT udp -- anywhere localhost udp dpt:domain to:127.0.0.11:50629
  27.  
  28. Chain DOCKER_POSTROUTING (1 references)
  29. target prot opt source destination
  30. SNAT tcp -- localhost anywhere tcp spt:41689 to::53
  31. SNAT udp -- localhost anywhere udp spt:50629 to::53
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement