Linux Open Port 80 (HTTP Web Server Port)

Linux Open Port 80 (HTTP Web Server Port) - Hallo NewsOfTech Maniac !!! News of Technology, In this article you can read by title Linux Open Port 80 (HTTP Web Server Port), We are prepared this article very well to you, so you can read and retrieve information on it. Hopefully the contents of the post Article Centos/Redhat, What we write can you understand. Okay, happy reading NewsOfTech Maniac.


Title : Linux Open Port 80 (HTTP Web Server Port)
link : Linux Open Port 80 (HTTP Web Server Port)

am new CentOS/RHEL 5.x/6.x user. How do I open port 80 (Apache Web Server) under Red Hat / CentOS / Fedora Linux?

Tutorial details
DifficultyEasy (rss)
Root privilegesYes
RequirementsNone
Estimated completion time2m
The default configuration file for iptables based firewall on RHEL / CentOS / Fedora Linux is /etc/sysconfig/iptables for IPv4 based firewall. For IPv6 based firewall you need to edit /etc/sysconfig/ip6tablesfile.
Open this file using a text editor such as vi/vim or emacs:

Linux Open Port 80 (http)

# vi /etc/sysconfig/iptables
Append rule as follows rules on RHEL/CentOS version 5.x or older:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
## Open 443 port i.e. HTTPS
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT

IF you are using RHEL/Centoa version 6.x or above, try:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
## Open 443 port i.e. HTTPS
-A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT

Save and close the file. Restart iptables service, enter:
# /etc/init.d/iptables restart


That's an article Linux Open Port 80 (HTTP Web Server Port)

Fine for NewsOfTech Article Linux Open Port 80 (HTTP Web Server Port) This time, hopefully can benefit for you and any people all. Well, see you in other article from NewsOfTech postings.

Subscribe to receive free email updates:

AdBlock Detected!

Suka dengan blog ini? Silahkan matikan ad blocker browser anda.

Like this blog? Keep us running by whitelisting this blog in your ad blocker.

Thank you!

×