LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > brave heart
User Name
Password

Notices


Rate this Entry

Modify iptables to access apache on virtual centos5.6.

Posted 07-05-2011 at 03:53 AM by brave heart
Updated 07-29-2011 at 01:42 AM by brave heart

On a virtual box(IP: 192.168.195.130), I can access http://192.168.195.130/, but from any other computer, I can't.

After add following to /etc/sysconfig/iptables as below:
Code:
-I RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
And restart iptables, I can access the virtual apache successfully.

For fedora14, modify iptables as below:
Code:
-I INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
Posted in Uncategorized
Views 1168 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration