<?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: How Do I Block an IP Address on My Linux server?</title> <atom:link href="http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/</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: Alessio</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-67641</link> <dc:creator>Alessio</dc:creator> <pubDate>Sat, 28 Jan 2012 15:16:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-67641</guid> <description>I have a csv file with the ip list, I can block all ip in this file?</description> <content:encoded><![CDATA[<p>I have a csv file with the ip list, I can block all ip in this file?</p> ]]></content:encoded> </item> <item><title>By: lalus</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-64478</link> <dc:creator>lalus</dc:creator> <pubDate>Wed, 16 Nov 2011 02:29:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-64478</guid> <description>i want my client with ip 192.168.1.1 can access www.google.com only not else.
whats is the iptables command?
Thanks</description> <content:encoded><![CDATA[<p>i want my client with ip 192.168.1.1 can access <a
href="http://www.google.com" rel="nofollow">http://www.google.com</a> only not else.<br
/> whats is the iptables command?</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: ronald</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-62853</link> <dc:creator>ronald</dc:creator> <pubDate>Tue, 27 Sep 2011 07:19:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-62853</guid> <description>thanks for the short lesson of the command. very help full.</description> <content:encoded><![CDATA[<p>thanks for the short lesson of the command. very help full.</p> ]]></content:encoded> </item> <item><title>By: barney stinson</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-62454</link> <dc:creator>barney stinson</dc:creator> <pubDate>Thu, 15 Sep 2011 11:40:25 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-62454</guid> <description>Not blocking any of the addresses in the range:
iptables -A INPUT -s 5.5.5.0/22 -p tcp --destination-port 80 -j DROP
iptables 1.4.10 (android)
Thoughts?</description> <content:encoded><![CDATA[<p>Not blocking any of the addresses in the range:</p><p>iptables -A INPUT -s 5.5.5.0/22 -p tcp &#8211;destination-port 80 -j DROP</p><p>iptables 1.4.10 (android)</p><p>Thoughts?</p> ]]></content:encoded> </item> <item><title>By: barney stinson</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-62451</link> <dc:creator>barney stinson</dc:creator> <pubDate>Thu, 15 Sep 2011 09:12:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-62451</guid> <description>How can I block connections ONLY TO port 80 of a range of addresses?
I do not want to create 300 single rules for.port 80.  Port constraint required as must allow traffic to port 443</description> <content:encoded><![CDATA[<p>How can I block connections ONLY TO port 80 of a range of addresses?</p><p>I do not want to create 300 single rules for.port 80.  Port constraint required as must allow traffic to port 443</p> ]]></content:encoded> </item> <item><title>By: Nivetha</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-61598</link> <dc:creator>Nivetha</dc:creator> <pubDate>Tue, 16 Aug 2011 08:28:24 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-61598</guid> <description>how can  i check  whether the iptables is blocked  or not</description> <content:encoded><![CDATA[<p>how can  i check  whether the iptables is blocked  or not</p> ]]></content:encoded> </item> <item><title>By: shadowtrooper</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-59407</link> <dc:creator>shadowtrooper</dc:creator> <pubDate>Sat, 14 May 2011 12:45:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-59407</guid> <description>hi
i am new with IP tables stuff and i have a problem....
i have a pc Contain a fedora OS and i want to make a small network (4 PCs Contain XP OS) and using the pc of fedora OS as a firewall
i want to Prevent the ping (i think it called(ICMP)) in the privat network and prevent one of the PCs from Browsing internet(prevent port 80 and 81 as i think)
and i still don&#039;t know how to make the internet go Through the firewall to the private network...
note: WAN = eth0
LAN = eth1
any one can help plz!!!!</description> <content:encoded><![CDATA[<p>hi<br
/> i am new with IP tables stuff and i have a problem&#8230;.<br
/> i have a pc Contain a fedora OS and i want to make a small network (4 PCs Contain XP OS) and using the pc of fedora OS as a firewall<br
/> i want to Prevent the ping (i think it called(ICMP)) in the privat network and prevent one of the PCs from Browsing internet(prevent port 80 and 81 as i think)<br
/> and i still don&#8217;t know how to make the internet go Through the firewall to the private network&#8230;</p><p>note: WAN = eth0<br
/> LAN = eth1<br
/> any one can help plz!!!!</p> ]]></content:encoded> </item> <item><title>By: Ben</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-57292</link> <dc:creator>Ben</dc:creator> <pubDate>Thu, 14 Apr 2011 22:59:59 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-57292</guid> <description>I tested this and blocked the ip from my phone through ip tables.  It didn&#039;t block anything i could still ssh in i could still browse the website I host on this server and connect via ftp so I went into my iptables file
and typed this
-A PREROUTING -s PhoneIPAddress -j DROP
saved closed
service restart iptables
and then my phone had no access what so ever. Is this just a different way or am I going to run into problems by blocking ip addresses at the PREROUTING level</description> <content:encoded><![CDATA[<p>I tested this and blocked the ip from my phone through ip tables.  It didn&#8217;t block anything i could still ssh in i could still browse the website I host on this server and connect via ftp so I went into my iptables file<br
/> and typed this<br
/> -A PREROUTING -s PhoneIPAddress -j DROP<br
/> saved closed<br
/> service restart iptables<br
/> and then my phone had no access what so ever. Is this just a different way or am I going to run into problems by blocking ip addresses at the PREROUTING level</p> ]]></content:encoded> </item> <item><title>By: Mikey</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-57034</link> <dc:creator>Mikey</dc:creator> <pubDate>Sat, 02 Apr 2011 02:23:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-57034</guid> <description>iptables -I INPUT -s ! {IP ADDRESS} -j DROP
The Bang character (!) basically means NOT, so the line above would say drop ALL packets NOT going to ip address</description> <content:encoded><![CDATA[<p>iptables -I INPUT -s ! {IP ADDRESS} -j DROP</p><p>The Bang character (!) basically means NOT, so the line above would say drop ALL packets NOT going to ip address</p> ]]></content:encoded> </item> <item><title>By: Aditya</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-56613</link> <dc:creator>Aditya</dc:creator> <pubDate>Wed, 23 Mar 2011 21:29:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-56613</guid> <description>Hi Vivek
This site is very useful and provides &quot;to the point&quot; information. Keep up the good work.
Aditya
Unix aficionado</description> <content:encoded><![CDATA[<p>Hi Vivek<br
/> This site is very useful and provides &#8220;to the point&#8221; information. Keep up the good work.</p><p>Aditya<br
/> Unix aficionado</p> ]]></content:encoded> </item> <item><title>By: Mehmet Karabulut</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-55247</link> <dc:creator>Mehmet Karabulut</dc:creator> <pubDate>Sat, 29 Jan 2011 22:05:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-55247</guid> <description>iptables rules explained very clearly. Thank you.</description> <content:encoded><![CDATA[<p>iptables rules explained very clearly. Thank you.</p> ]]></content:encoded> </item> <item><title>By: nacks</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-50446</link> <dc:creator>nacks</dc:creator> <pubDate>Sat, 30 Oct 2010 13:53:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-50446</guid> <description>Try $IPT -I INPUT -s IP_ADDRESS -j DROP</description> <content:encoded><![CDATA[<p>Try $IPT -I INPUT -s IP_ADDRESS -j DROP</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-49013</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Wed, 25 Aug 2010 05:16:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-49013</guid> <description>Do you see any specific error?</description> <content:encoded><![CDATA[<p>Do you see any specific error?</p> ]]></content:encoded> </item> <item><title>By: Zach Browne</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-49003</link> <dc:creator>Zach Browne</dc:creator> <pubDate>Tue, 24 Aug 2010 09:23:52 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-49003</guid> <description>I am having some problems leaving a remark. I&#039;ve attempted refreshing several times as well as closing and opening opera. Is anyone else having a problem on this article?</description> <content:encoded><![CDATA[<p>I am having some problems leaving a remark. I&#8217;ve attempted refreshing several times as well as closing and opening opera. Is anyone else having a problem on this article?</p> ]]></content:encoded> </item> <item><title>By: rohit singh</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-47843</link> <dc:creator>rohit singh</dc:creator> <pubDate>Wed, 16 Jun 2010 05:19:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-47843</guid> <description>i am not able block one particuler ip address plz  suggest me</description> <content:encoded><![CDATA[<p>i am not able block one particuler ip address plz  suggest me</p> ]]></content:encoded> </item> <item><title>By: faisu</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-46114</link> <dc:creator>faisu</dc:creator> <pubDate>Wed, 24 Feb 2010 04:29:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-46114</guid> <description>hello
how to setup youtube access for specific ip through acl ????</description> <content:encoded><![CDATA[<p>hello</p><p>how to setup youtube access for specific ip through acl ????</p> ]]></content:encoded> </item> <item><title>By: Bappy</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-46045</link> <dc:creator>Bappy</dc:creator> <pubDate>Fri, 19 Feb 2010 02:55:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-46045</guid> <description>Do anyone know how to block IP like that &gt;
202.56.***.*** that means under 202.56. all IP will be blocked.
Regards,
Admin
Centriohost.com</description> <content:encoded><![CDATA[<p>Do anyone know how to block IP like that &gt;<br
/> 202.56.***.*** that means under 202.56. all IP will be blocked.</p><p>Regards,<br
/> Admin<br
/> Centriohost.com</p> ]]></content:encoded> </item> <item><title>By: Mouli</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-45799</link> <dc:creator>Mouli</dc:creator> <pubDate>Tue, 02 Feb 2010 15:18:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-45799</guid> <description>Hi !!
I have RHEL5 installed and i have tried the command #iptables -A INPUT -s IP ADDRESS -j DROP. i hv logged into root and opened terminal…..and then typed this… bt it didn’t work!! Plz tell me the actual way to run this command… i really need this very urgently…</description> <content:encoded><![CDATA[<p>Hi !!<br
/> I have RHEL5 installed and i have tried the command #iptables -A INPUT -s IP ADDRESS -j DROP. i hv logged into root and opened terminal…..and then typed this… bt it didn’t work!! Plz tell me the actual way to run this command… i really need this very urgently…</p> ]]></content:encoded> </item> <item><title>By: ecommy</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-45376</link> <dc:creator>ecommy</dc:creator> <pubDate>Thu, 31 Dec 2009 10:46:01 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-45376</guid> <description>why it&#039;s working only if I use it like that? (not iptables -A INPUT -s 86.34.187.86 -j DROP)
iptables -I INPUT -s 86.34.187.86 -j DROP</description> <content:encoded><![CDATA[<p>why it&#8217;s working only if I use it like that? (not iptables -A INPUT -s 86.34.187.86 -j DROP)<br
/> iptables -I INPUT -s 86.34.187.86 -j DROP</p> ]]></content:encoded> </item> <item><title>By: kid</title><link>http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/#comment-43141</link> <dc:creator>kid</dc:creator> <pubDate>Sat, 15 Aug 2009 20:32:14 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/how-do-i-block-an-ip-on-my-linux-server.php#comment-43141</guid> <description>how to block all ip and allow access to only one ip?</description> <content:encoded><![CDATA[<p>how to block all ip and allow access to only one ip?</p> ]]></content:encoded> </item> </channel> </rss>
