<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Linux Open Port 80 (HTTP Web Server Port)</title> <atom:link href="http://www.cyberciti.biz/faq/linux-iptables-firewall-open-port-80/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-open-port-80/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Amani Musomba</title><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-open-port-80/#comment-67845</link> <dc:creator>Amani Musomba</dc:creator> <pubDate>Wed, 08 Feb 2012 05:48:15 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=2444#comment-67845</guid> <description>I used the below commands to open port 443 via iptables from the command line.
/sbin/iptables -A INPUT -m state --state NEW -p tcp --dport 443 -j ACCEPT
/etc/init.d/iptables save
/etc/init.d/iptables restart
and it worked for me.</description> <content:encoded><![CDATA[<p>I used the below commands to open port 443 via iptables from the command line.</p><p>/sbin/iptables -A INPUT -m state &#8211;state NEW -p tcp &#8211;dport 443 -j ACCEPT<br
/> /etc/init.d/iptables save<br
/> /etc/init.d/iptables restart</p><p>and it worked for me.</p> ]]></content:encoded> </item> <item><title>By: Soj</title><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-open-port-80/#comment-61899</link> <dc:creator>Soj</dc:creator> <pubDate>Fri, 26 Aug 2011 03:23:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=2444#comment-61899</guid> <description>I have used the following to open port 80 via iptables:
iptables -A INPUT -p tcp -m state --state NEW,ESTABLISHED -j ACCEPT --dport 80</description> <content:encoded><![CDATA[<p>I have used the following to open port 80 via iptables:</p><p>iptables -A INPUT -p tcp -m state &#8211;state NEW,ESTABLISHED -j ACCEPT &#8211;dport 80</p> ]]></content:encoded> </item> <item><title>By: PHP Guru</title><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-open-port-80/#comment-58233</link> <dc:creator>PHP Guru</dc:creator> <pubDate>Wed, 27 Apr 2011 06:29:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=2444#comment-58233</guid> <description>This is great and worked perfectly! Thank you for posting this. I was wondering if you know the way to do the same thing from the command line (without vi) so that it can be scripted. I found on some other blog &lt;pre&gt;iptables -A INPUT -p tcp --dport 80 -j ACCEPT
service iptables save&lt;/pre&gt; but when I tried that it didn&#039;t work and when I checked /etc/sysconfig/iptables there&#039;s no rule for port 80 like I expected.</description> <content:encoded><![CDATA[<p>This is great and worked perfectly! Thank you for posting this. I was wondering if you know the way to do the same thing from the command line (without vi) so that it can be scripted. I found on some other blog<pre>iptables -A INPUT -p tcp --dport 80 -j ACCEPT
service iptables save</pre><p> but when I tried that it didn&#8217;t work and when I checked /etc/sysconfig/iptables there&#8217;s no rule for port 80 like I expected.</p> ]]></content:encoded> </item> <item><title>By: sanjay</title><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-open-port-80/#comment-55705</link> <dc:creator>sanjay</dc:creator> <pubDate>Thu, 17 Feb 2011 06:22:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=2444#comment-55705</guid> <description>Firstly Many thank you to you all...
Awesome...and Great community on earth  and heartily thank you again for all your time and expertise.
I have used below and it works...
iptables -I RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT</description> <content:encoded><![CDATA[<p>Firstly Many thank you to you all&#8230;</p><p>Awesome&#8230;and Great community on earth  and heartily thank you again for all your time and expertise.</p><p>I have used below and it works&#8230;</p><p>iptables -I RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT</p> ]]></content:encoded> </item> <item><title>By: milniki za sanitarije</title><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-open-port-80/#comment-50079</link> <dc:creator>milniki za sanitarije</dc:creator> <pubDate>Wed, 13 Oct 2010 12:58:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=2444#comment-50079</guid> <description>Thank you for this one, I really needrf this for my Apache config :)</description> <content:encoded><![CDATA[<p>Thank you for this one, I really needrf this for my Apache config :)</p> ]]></content:encoded> </item> <item><title>By: Lance Olsen</title><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-open-port-80/#comment-49475</link> <dc:creator>Lance Olsen</dc:creator> <pubDate>Fri, 10 Sep 2010 19:01:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=2444#comment-49475</guid> <description>This almost worked for me.  Using -A was a problem however, because the rule needed to be insterted at the top because of other rules I had in place.  If the above doesn&#039;t work for you, use the following at the command line:
iptables -I RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT</description> <content:encoded><![CDATA[<p>This almost worked for me.  Using -A was a problem however, because the rule needed to be insterted at the top because of other rules I had in place.  If the above doesn&#8217;t work for you, use the following at the command line:</p><p>iptables -I RH-Firewall-1-INPUT -m state &#8211;state NEW -m tcp -p tcp &#8211;dport 80 -j ACCEPT</p> ]]></content:encoded> </item> <item><title>By: james stewart</title><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-open-port-80/#comment-42642</link> <dc:creator>james stewart</dc:creator> <pubDate>Mon, 20 Jul 2009 09:10:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=2444#comment-42642</guid> <description>Thanks for this. Being used to debian/ubuntu I&#039;d forgotten where to go when setting up a CentOS box.
@gabriel - you might want to try moving the rule further up in the file. I put it as the last rule but that didn&#039;t work. Moving it further up (in particular before &quot;-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited&quot;) seemed to do the trick.</description> <content:encoded><![CDATA[<p>Thanks for this. Being used to debian/ubuntu I&#8217;d forgotten where to go when setting up a CentOS box.</p><p>@gabriel &#8211; you might want to try moving the rule further up in the file. I put it as the last rule but that didn&#8217;t work. Moving it further up (in particular before &#8220;-A RH-Firewall-1-INPUT -j REJECT &#8211;reject-with icmp-host-prohibited&#8221;) seemed to do the trick.</p> ]]></content:encoded> </item> <item><title>By: gabriel</title><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-open-port-80/#comment-42615</link> <dc:creator>gabriel</dc:creator> <pubDate>Sat, 18 Jul 2009 18:34:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=2444#comment-42615</guid> <description>I tried this and restarted the ipchains with service iptables restart
but it will still not work.
any ideas?</description> <content:encoded><![CDATA[<p>I tried this and restarted the ipchains with service iptables restart</p><p>but it will still not work.</p><p>any ideas?</p> ]]></content:encoded> </item> </channel> </rss>
