<?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: Install Firewall</title>
	<atom:link href="http://www.securecentos.com/basic-security/install-firewall/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.securecentos.com</link>
	<description>Howto secure your centos</description>
	<lastBuildDate>Tue, 31 Jan 2012 18:52:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: minos</title>
		<link>http://www.securecentos.com/basic-security/install-firewall/comment-page-1/#comment-1100</link>
		<dc:creator>minos</dc:creator>
		<pubDate>Wed, 31 Aug 2011 13:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.securecentos.com/wp/?page_id=129#comment-1100</guid>
		<description>For the life of me for the last two hours i could not find or figure out why (copied from the example above)
G_TCP_CPORTS=”21,22,25,53,80,110,111,143,443,587,953,2222,3306″

Didn&#039;t work for opening 3306, but all the other ports worked fine, then I finally noticed that from your example that I copied it used the damn MS quote (″)

Please change your examples above to rid them of this headache causing quote. I am sure I am not the only person that had this happen.

Really enjoyed your tutorials and have recommended them to everyone else that is setting up centos boxes.</description>
		<content:encoded><![CDATA[<p>For the life of me for the last two hours i could not find or figure out why (copied from the example above)<br />
G_TCP_CPORTS=”21,22,25,53,80,110,111,143,443,587,953,2222,3306″</p>
<p>Didn&#8217;t work for opening 3306, but all the other ports worked fine, then I finally noticed that from your example that I copied it used the damn MS quote (″)</p>
<p>Please change your examples above to rid them of this headache causing quote. I am sure I am not the only person that had this happen.</p>
<p>Really enjoyed your tutorials and have recommended them to everyone else that is setting up centos boxes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.securecentos.com/basic-security/install-firewall/comment-page-1/#comment-1043</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 28 Dec 2010 02:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.securecentos.com/wp/?page_id=129#comment-1043</guid>
		<description>When I start APF for the first time it frezes at the line below:
apf(1632): {php} parsing php_list into /etc/apf/php_hosts.rules

Then the server crashes or goes into total lock-down because ssh or apache wont respond.

Any ideas guys?
 </description>
		<content:encoded><![CDATA[<p>When I start APF for the first time it frezes at the line below:<br />
apf(1632): {php} parsing php_list into /etc/apf/php_hosts.rules</p>
<p>Then the server crashes or goes into total lock-down because ssh or apache wont respond.</p>
<p>Any ideas guys?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: geelee</title>
		<link>http://www.securecentos.com/basic-security/install-firewall/comment-page-1/#comment-1042</link>
		<dc:creator>geelee</dc:creator>
		<pubDate>Fri, 24 Dec 2010 19:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.securecentos.com/wp/?page_id=129#comment-1042</guid>
		<description>--------------
conf.apf :
IFACE_IN=&quot;eth0&quot;
IFACE_OUT=&quot;eth0&quot;

Then  ,THIS HAPPEND IF reboot. or unplug network cable.

&quot;&quot;&quot;
apf -r
apf(32093): {glob} flushing &amp; zeroing chain policies
apf(32093): {glob} firewall offline
apf(32127): {glob} activating firewall
apf(32167): {glob} could not verify that interface eth0 is routed to a network, aborting.
apf(32127): {glob} firewall initalized

iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination  
&quot;&quot;&quot;

why this happend?
what can i do?

------------------
IF i set this values in conf.apf : 
IFACE_IN=&quot;&quot;
IFACE_OUT=&quot;&quot;

then this happend: 

apf -r
apf(32245): {glob} flushing &amp; zeroing chain policies
apf(32245): {glob} firewall offline
apf(32278): {glob} activating firewall
apf(32318): {glob} determined (IFACE_IN)  has address 127.0.0.1
apf(32318): {glob} determined (IFACE_OUT)  has address 127.0.0.1


iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            
DROP       all  --  default/8            anywhere            
DROP       all  --  39.0.0.0/8           anywhere            
DROP       all  --  102.0.0.0/8          anywhere            
DROP       all  --  103.0.0.0/8          anywhere            
DROP       all  --  106.0.0.0/8          anywhere            
DROP       all  --  loopback/8           anywhere            
^C

This is OK?</description>
		<content:encoded><![CDATA[<p>&#8212;&#8212;&#8212;&#8212;&#8211;<br />
conf.apf :<br />
IFACE_IN=&#8221;eth0&#8243;<br />
IFACE_OUT=&#8221;eth0&#8243;</p>
<p>Then  ,THIS HAPPEND IF reboot. or unplug network cable.</p>
<p>&#8220;&#8221;"<br />
apf -r<br />
apf(32093): {glob} flushing &amp; zeroing chain policies<br />
apf(32093): {glob} firewall offline<br />
apf(32127): {glob} activating firewall<br />
apf(32167): {glob} could not verify that interface eth0 is routed to a network, aborting.<br />
apf(32127): {glob} firewall initalized</p>
<p>iptables -L<br />
Chain INPUT (policy ACCEPT)<br />
target     prot opt source               destination         </p>
<p>Chain FORWARD (policy ACCEPT)<br />
target     prot opt source               destination         </p>
<p>Chain OUTPUT (policy ACCEPT)<br />
target     prot opt source               destination<br />
&#8220;&#8221;"</p>
<p>why this happend?<br />
what can i do?</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
IF i set this values in conf.apf :<br />
IFACE_IN=&#8221;"<br />
IFACE_OUT=&#8221;"</p>
<p>then this happend: </p>
<p>apf -r<br />
apf(32245): {glob} flushing &amp; zeroing chain policies<br />
apf(32245): {glob} firewall offline<br />
apf(32278): {glob} activating firewall<br />
apf(32318): {glob} determined (IFACE_IN)  has address 127.0.0.1<br />
apf(32318): {glob} determined (IFACE_OUT)  has address 127.0.0.1</p>
<p>iptables -L<br />
Chain INPUT (policy ACCEPT)<br />
target     prot opt source               destination<br />
ACCEPT     all  &#8212;  anywhere             anywhere<br />
DROP       all  &#8212;  default/8            anywhere<br />
DROP       all  &#8212;  39.0.0.0/8           anywhere<br />
DROP       all  &#8212;  102.0.0.0/8          anywhere<br />
DROP       all  &#8212;  103.0.0.0/8          anywhere<br />
DROP       all  &#8212;  106.0.0.0/8          anywhere<br />
DROP       all  &#8212;  loopback/8           anywhere<br />
^C</p>
<p>This is OK?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 1234homie</title>
		<link>http://www.securecentos.com/basic-security/install-firewall/comment-page-1/#comment-1041</link>
		<dc:creator>1234homie</dc:creator>
		<pubDate>Sat, 18 Dec 2010 21:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.securecentos.com/wp/?page_id=129#comment-1041</guid>
		<description>how can I scan centos to find viruses?</description>
		<content:encoded><![CDATA[<p>how can I scan centos to find viruses?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 1234homie</title>
		<link>http://www.securecentos.com/basic-security/install-firewall/comment-page-1/#comment-957</link>
		<dc:creator>1234homie</dc:creator>
		<pubDate>Sun, 12 Sep 2010 13:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.securecentos.com/wp/?page_id=129#comment-957</guid>
		<description>great site, thanks for apf! working very well ;]</description>
		<content:encoded><![CDATA[<p>great site, thanks for apf! working very well ;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WebAlfa</title>
		<link>http://www.securecentos.com/basic-security/install-firewall/comment-page-1/#comment-801</link>
		<dc:creator>WebAlfa</dc:creator>
		<pubDate>Fri, 13 Aug 2010 20:25:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.securecentos.com/wp/?page_id=129#comment-801</guid>
		<description>Plesk
IG_TCP_CPORTS=&quot; 20,21,22,25,26,53,80,110,143,443,465,993,995,3389,8443,8880,30000,61001,65535&quot;
EG_TCP_CPORTS=&quot; 21,22,25,26,27,37,43,53,80,110,113,443,465,873,3389,8443,8880,30000&quot;</description>
		<content:encoded><![CDATA[<p>Plesk<br />
IG_TCP_CPORTS=&#8221; 20,21,22,25,26,53,80,110,143,443,465,993,995,3389,8443,8880,30000,61001,65535&#8243;<br />
EG_TCP_CPORTS=&#8221; 21,22,25,26,27,37,43,53,80,110,113,443,465,873,3389,8443,8880,30000&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Firewall installation &#124; HostGator Coupon Code</title>
		<link>http://www.securecentos.com/basic-security/install-firewall/comment-page-1/#comment-626</link>
		<dc:creator>Firewall installation &#124; HostGator Coupon Code</dc:creator>
		<pubDate>Tue, 22 Jun 2010 14:52:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.securecentos.com/wp/?page_id=129#comment-626</guid>
		<description>[...] i just attempt to install firewall APF [...]</description>
		<content:encoded><![CDATA[<p>[...] i just attempt to install firewall APF [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Firewall installation &#124; Cheap WebHosting Directory</title>
		<link>http://www.securecentos.com/basic-security/install-firewall/comment-page-1/#comment-625</link>
		<dc:creator>Firewall installation &#124; Cheap WebHosting Directory</dc:creator>
		<pubDate>Tue, 22 Jun 2010 14:22:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.securecentos.com/wp/?page_id=129#comment-625</guid>
		<description>[...] i just attempt to install firewall APF [...]</description>
		<content:encoded><![CDATA[<p>[...] i just attempt to install firewall APF [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeffatrackaid</title>
		<link>http://www.securecentos.com/basic-security/install-firewall/comment-page-1/#comment-601</link>
		<dc:creator>jeffatrackaid</dc:creator>
		<pubDate>Mon, 14 Jun 2010 14:00:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.securecentos.com/wp/?page_id=129#comment-601</guid>
		<description>While APF, CSF and similar firewalls are nice and provide a lot of features.  I&#039;ve found a very simple strategy of block everything and open only what is needed works very well.  Combine this with some rate-limiting via IPtables (http://www.rackaid.com/resources/how-to-block-ssh-brute-force-attacks/) works very well.  I&#039;ve found some of these advanced firewall scripts to cause performance issues as the rules chains grow overly long if not checked.  This is mostly an issue on high traffic servers, but I&#039;ve often replaced APF/CSF with a simple IPTables script.

Also, you have to be careful of some of these programs as they are vulnerable against log injection attacks.  I&#039;ve not checked APF but BFD from the same author was (is?) vulnerable to a log injection attack. Since the processing of log data is not sanitized, you can spoof IPs and get BFD to block IPs.  See: http://www.ossec.net/main/attacking-log-analysis-tools for a good discussion of this issue.</description>
		<content:encoded><![CDATA[<p>While APF, CSF and similar firewalls are nice and provide a lot of features.  I&#8217;ve found a very simple strategy of block everything and open only what is needed works very well.  Combine this with some rate-limiting via IPtables (<a href="http://www.rackaid.com/resources/how-to-block-ssh-brute-force-attacks/" rel="nofollow">http://www.rackaid.com/resources/how-to-block-ssh-brute-force-attacks/</a>) works very well.  I&#8217;ve found some of these advanced firewall scripts to cause performance issues as the rules chains grow overly long if not checked.  This is mostly an issue on high traffic servers, but I&#8217;ve often replaced APF/CSF with a simple IPTables script.</p>
<p>Also, you have to be careful of some of these programs as they are vulnerable against log injection attacks.  I&#8217;ve not checked APF but BFD from the same author was (is?) vulnerable to a log injection attack. Since the processing of log data is not sanitized, you can spoof IPs and get BFD to block IPs.  See: <a href="http://www.ossec.net/main/attacking-log-analysis-tools" rel="nofollow">http://www.ossec.net/main/attacking-log-analysis-tools</a> for a good discussion of this issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: art</title>
		<link>http://www.securecentos.com/basic-security/install-firewall/comment-page-1/#comment-576</link>
		<dc:creator>art</dc:creator>
		<pubDate>Thu, 03 Jun 2010 20:24:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.securecentos.com/wp/?page_id=129#comment-576</guid>
		<description>I&#039;ve got

&gt;&gt; iptables: Unknown error 18446744073709551615

The same error for afp and firehol. My VPS using openvz@parallels.
Can you help with some advice?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve got</p>
<p>&gt;&gt; iptables: Unknown error 18446744073709551615</p>
<p>The same error for afp and firehol. My VPS using openvz@parallels.<br />
Can you help with some advice?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

