Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Generated by iptables-save v1.4.21 on Tue Feb 18 18:12:43 2020
- *nat
- :PREROUTING ACCEPT [11:644]
- :INPUT ACCEPT [24:1424]
- :OUTPUT ACCEPT [10:647]
- :POSTROUTING ACCEPT [12:767]
- :DOCKER - [0:0]
- -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8081
- -A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER
- -A OUTPUT ! -d 127.0.0.0/8 -m addrtype --dst-type LOCAL -j DOCKER
- -A POSTROUTING -s 172.20.0.0/16 ! -o br-97a506f83b13 -j MASQUERADE
- -A POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE
- -A POSTROUTING -s 172.20.0.2/32 -d 172.20.0.2/32 -p tcp -m tcp --dport 80 -j MASQUERADE
- -A DOCKER -i br-97a506f83b13 -j RETURN
- -A DOCKER -i docker0 -j RETURN
- -A DOCKER ! -i br-97a506f83b13 -p tcp -m tcp --dport 8081 -j DNAT --to-destination 172.20.0.2:80
- COMMIT
- # Completed on Tue Feb 18 18:12:43 2020
- # Generated by iptables-save v1.4.21 on Tue Feb 18 18:12:43 2020
- *filter
- :INPUT ACCEPT [3281:414117]
- :FORWARD DROP [0:0]
- :OUTPUT ACCEPT [3111:2293028]
- :DOCKER - [0:0]
- :DOCKER-ISOLATION-STAGE-1 - [0:0]
- :DOCKER-ISOLATION-STAGE-2 - [0:0]
- :DOCKER-USER - [0:0]
- -A INPUT -i eth0 -p tcp -m tcp --dport 80 -j ACCEPT
- -A INPUT -p tcp -m tcp --dport 8081 -j ACCEPT
- -A FORWARD -j DOCKER-USER
- -A FORWARD -j DOCKER-ISOLATION-STAGE-1
- -A FORWARD -o br-97a506f83b13 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
- -A FORWARD -o br-97a506f83b13 -j DOCKER
- -A FORWARD -i br-97a506f83b13 ! -o br-97a506f83b13 -j ACCEPT
- -A FORWARD -i br-97a506f83b13 -o br-97a506f83b13 -j ACCEPT
- -A FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
- -A FORWARD -o docker0 -j DOCKER
- -A FORWARD -i docker0 ! -o docker0 -j ACCEPT
- -A FORWARD -i docker0 -o docker0 -j ACCEPT
- -A DOCKER -d 172.20.0.2/32 ! -i br-97a506f83b13 -o br-97a506f83b13 -p tcp -m tcp --dport 80 -j ACCEPT
- -A DOCKER-ISOLATION-STAGE-1 -i br-97a506f83b13 ! -o br-97a506f83b13 -j DOCKER-ISOLATION-STAGE-2
- -A DOCKER-ISOLATION-STAGE-1 -i docker0 ! -o docker0 -j DOCKER-ISOLATION-STAGE-2
- -A DOCKER-ISOLATION-STAGE-1 -j RETURN
- -A DOCKER-ISOLATION-STAGE-2 -o br-97a506f83b13 -j DROP
- -A DOCKER-ISOLATION-STAGE-2 -o docker0 -j DROP
- -A DOCKER-ISOLATION-STAGE-2 -j RETURN
- -A DOCKER-USER -j RETURN
- COMMIT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement