- Start – Enable httpd
- sudo systemctl start httpd
- sudo systemctl enable httpd
- sudo systemctl status httpd
- Firewall Add Service
- sudo firewall-cmd –list-all
- sudo firewall-cmd –add-service=http –permanent
- sudo firewall-cmd –add-service=https –permanent
- sudo firewall-cmd –reload
- sudo firewall-cmd –list-all
- Firewall Add Port
- sudo firewall-cmd –zone=public –add-port=80/tcp –permanent
- sudo firewall-cmd –zone=public –permanent –add-port=443/tcp
- sudo firewall-cmd –reload
- IP add port
- sudo iptables -I INPUT 5 -i eth0 -p tcp –dport 80 -m state –state NEW,ESTABLISHED -j ACCEPT
- sudo iptables -I INPUT 5 -i eth0 -p tcp –dport 443 -m state –state NEW,ESTABLISHED -j ACCEPT
- sudo iptables –line -vnL
- Telnet xx.xx.xx.xx(IP ADDRESS) xx(PORT)