Advertisement
fedorm

Untitled

Feb 18th, 2020
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.11 KB | None | 0 0
  1. # Generated by iptables-save v1.4.21 on Tue Feb 18 18:12:43 2020
  2. *nat
  3. :PREROUTING ACCEPT [11:644]
  4. :INPUT ACCEPT [24:1424]
  5. :OUTPUT ACCEPT [10:647]
  6. :POSTROUTING ACCEPT [12:767]
  7. :DOCKER - [0:0]
  8. -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8081
  9. -A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER
  10. -A OUTPUT ! -d 127.0.0.0/8 -m addrtype --dst-type LOCAL -j DOCKER
  11. -A POSTROUTING -s 172.20.0.0/16 ! -o br-97a506f83b13 -j MASQUERADE
  12. -A POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE
  13. -A POSTROUTING -s 172.20.0.2/32 -d 172.20.0.2/32 -p tcp -m tcp --dport 80 -j MASQUERADE
  14. -A DOCKER -i br-97a506f83b13 -j RETURN
  15. -A DOCKER -i docker0 -j RETURN
  16. -A DOCKER ! -i br-97a506f83b13 -p tcp -m tcp --dport 8081 -j DNAT --to-destination 172.20.0.2:80
  17. COMMIT
  18. # Completed on Tue Feb 18 18:12:43 2020
  19. # Generated by iptables-save v1.4.21 on Tue Feb 18 18:12:43 2020
  20. *filter
  21. :INPUT ACCEPT [3281:414117]
  22. :FORWARD DROP [0:0]
  23. :OUTPUT ACCEPT [3111:2293028]
  24. :DOCKER - [0:0]
  25. :DOCKER-ISOLATION-STAGE-1 - [0:0]
  26. :DOCKER-ISOLATION-STAGE-2 - [0:0]
  27. :DOCKER-USER - [0:0]
  28. -A INPUT -i eth0 -p tcp -m tcp --dport 80 -j ACCEPT
  29. -A INPUT -p tcp -m tcp --dport 8081 -j ACCEPT
  30. -A FORWARD -j DOCKER-USER
  31. -A FORWARD -j DOCKER-ISOLATION-STAGE-1
  32. -A FORWARD -o br-97a506f83b13 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
  33. -A FORWARD -o br-97a506f83b13 -j DOCKER
  34. -A FORWARD -i br-97a506f83b13 ! -o br-97a506f83b13 -j ACCEPT
  35. -A FORWARD -i br-97a506f83b13 -o br-97a506f83b13 -j ACCEPT
  36. -A FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
  37. -A FORWARD -o docker0 -j DOCKER
  38. -A FORWARD -i docker0 ! -o docker0 -j ACCEPT
  39. -A FORWARD -i docker0 -o docker0 -j ACCEPT
  40. -A DOCKER -d 172.20.0.2/32 ! -i br-97a506f83b13 -o br-97a506f83b13 -p tcp -m tcp --dport 80 -j ACCEPT
  41. -A DOCKER-ISOLATION-STAGE-1 -i br-97a506f83b13 ! -o br-97a506f83b13 -j DOCKER-ISOLATION-STAGE-2
  42. -A DOCKER-ISOLATION-STAGE-1 -i docker0 ! -o docker0 -j DOCKER-ISOLATION-STAGE-2
  43. -A DOCKER-ISOLATION-STAGE-1 -j RETURN
  44. -A DOCKER-ISOLATION-STAGE-2 -o br-97a506f83b13 -j DROP
  45. -A DOCKER-ISOLATION-STAGE-2 -o docker0 -j DROP
  46. -A DOCKER-ISOLATION-STAGE-2 -j RETURN
  47. -A DOCKER-USER -j RETURN
  48. COMMIT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement