Advertisement
Guest User

Untitled

a guest
May 24th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. [root@rhel7 docker]# firewall-cmd --zone=public --add-port=80/tcp --permanent
  2. success
  3. [root@rhel7 docker]# firewall-cmd --reload
  4. success
  5. [root@rhel7 docker]# iptables-save | grep 80
  6. -A POSTROUTING_ZONES -o eno16780032 -g POST_public
  7. -A PREROUTING_ZONES -i eno16780032 -g PRE_public
  8. -A PREROUTING_ZONES -i eno16780032 -g PRE_public
  9. -A FORWARD_IN_ZONES -i eno16780032 -g FWDI_public
  10. -A FORWARD_OUT_ZONES -o eno16780032 -g FWDO_public
  11. -A INPUT_ZONES -i eno16780032 -g IN_public
  12. -A IN_public_allow -p tcp -m tcp --dport 80 -m conntrack --ctstate NEW -j ACCEPT
  13.  
  14. [root@rhel7 docker]# telnet localhost 80
  15. Trying ::1...
  16. telnet: connect to address ::1: Connection refused
  17. Trying 127.0.0.1...
  18. telnet: connect to address 127.0.0.1: Connection refused
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement