
Many times we need to open 80 port on linux box. Through command line opening the 80 or any port that is easy. In this tutorial I will how you can open the port 80.
Using following you can check the firewall setting of Linux.
[root@sonyk-pc project]# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT udp -- anywhere anywhere udp dpt:domain ACCEPT tcp -- anywhere anywhere tcp dpt:domain ACCEPT udp -- anywhere anywhere udp dpt:bootps ACCEPT tcp -- anywhere anywhere tcp dpt:bootps ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT icmp -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:domain ACCEPT udp -- anywhere anywhere state NEW udp dpt:domain ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh ACCEPT tcp -- anywhere anywhere tcp dpt:http state NEW ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:vnc-server ACCEPT udp -- anywhere anywhere state NEW udp dpt:vnc-server ACCEPT tcp -- anywhere anywhere tcp dpt:patrol-snmp state NEW ACCEPT tcp -- anywhere anywhere tcp dpt:61613 state NEW REJECT all -- anywhere anywhere reject-with icmp-host-prohibited Chain FORWARD (policy ACCEPT) target prot opt source destination ACCEPT all -- anywhere 192.168.122.0/24 state RELATED,ESTABLISHED ACCEPT all -- 192.168.122.0/24 anywhere ACCEPT all -- anywhere anywhere REJECT all -- anywhere anywhere reject-with icmp-port-unreachable REJECT all -- anywhere anywhere reject-with icmp-port-unreachable REJECT all -- anywhere anywhere reject-with icmp-host-prohibited Chain OUTPUT (policy ACCEPT) target prot opt source destination
Using following command you can open the port 80. using following command use 80 port will be open for 192.168.2.0 to 192.168.2.68 ip addresses.
[root@sonyk-pc project]# iptables -A INPUT -s 192.168.2.0/68 -d 192.168.2.16 -p tcp --dport 80 -j ACCEPT
using following command you can save the setting in iptables.
[root@sonyk-pc project]# restorecon -R /etc/sysconfig/iptables [root@sonyk-pc project]# service iptables save iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
Than restart the firewall using following command
[root@sonyk-pc project]# service iptables restart iptables: Flushing firewall rules: [ OK ] iptables: Setting chains to policy ACCEPT: nat mangle filte[ OK ] iptables: Unloading modules: [ OK ] iptables: Applying firewall rules: Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`). Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`). [ OK ]
Incoming search terms:
- how to open port 80 in linux
- linux open port 80
- how to enable port 80 in linux
- how to enable port 8080 in linux
- open port 8080 linux
- firewall linux
- how to ena ble port 80 on linux
- open port 80 linux
- open 80 port ipfire
- linux port unreachable open port
- enabling port 80 on linux
- linux enable port 80
- linux allow port 80
- iptables: applying firewall rules: using intrapositioned negation (`--option ! this`)
- iptables tcp options centos 6 intrapositioned
- how to open port 80 on linux
- how to open port 80 linux
- how to free port 80 from using linux
- how to enable the port 80 in linux
- how do i open port 80 in linux






Hi, i think that i saw you visited my website thus i came to “return the favor”.I’m trying to find things to improve my site!I suppose its ok to use some of your ideas!!