<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>CaZaTech &#187; IPTables</title>
	<atom:link href="http://cazatech.wordpress.com/category/iptables/feed/" rel="self" type="application/rss+xml" />
	<link>http://cazatech.wordpress.com</link>
	<description>My favourite hacks, about OS, gadgets and other tech stuff</description>
	<lastBuildDate>Fri, 01 May 2009 18:10:58 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='cazatech.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/e5c4fac45681188a3133f18419838c7c?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>CaZaTech &#187; IPTables</title>
		<link>http://cazatech.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://cazatech.wordpress.com/osd.xml" title="CaZaTech" />
		<item>
		<title>Redirecting a port to a local machine inside our network</title>
		<link>http://cazatech.wordpress.com/2007/11/22/redirecting-a-port-to-a-local-machine-inside-our-network/</link>
		<comments>http://cazatech.wordpress.com/2007/11/22/redirecting-a-port-to-a-local-machine-inside-our-network/#comments</comments>
		<pubDate>Thu, 22 Nov 2007 22:12:10 +0000</pubDate>
		<dc:creator>cazatech</dc:creator>
				<category><![CDATA[IPTables]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://cazatech.wordpress.com/2007/11/22/redirecting-a-port-to-a-local-machine-inside-our-network/</guid>
		<description><![CDATA[If we want to redirect a port (Like the http port) to one of our network machine we should use this IPTables rule:
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 80 -j DNAT  --to-destination 192.168.0.x
iptables -t nat -A POSTROUTING -p tcp -d 192.168.0.x --dport 80 -j SNAT  --to-source 192.168.0.y
   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cazatech.wordpress.com&blog=1258290&post=41&subd=cazatech&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If we want to redirect a port (Like the http port) to one of our network machine we should use this IPTables rule:</p>
<p><code>iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 80 -j DNAT  --to-destination 192.168.0.x</code></p>
<p><code>iptables -t nat -A POSTROUTING -p tcp -d 192.168.0.x --dport 80 -j SNAT  --to-source 192.168.0.y</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cazatech.wordpress.com/41/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cazatech.wordpress.com/41/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cazatech.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cazatech.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cazatech.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cazatech.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cazatech.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cazatech.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cazatech.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cazatech.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cazatech.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cazatech.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cazatech.wordpress.com&blog=1258290&post=41&subd=cazatech&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cazatech.wordpress.com/2007/11/22/redirecting-a-port-to-a-local-machine-inside-our-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e23d67b729a4d4ed2566eba58606ac05?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cazatech</media:title>
		</media:content>
	</item>
		<item>
		<title>IPTables: Deny Messenger access</title>
		<link>http://cazatech.wordpress.com/2007/07/03/iptables-deny-messenger-access/</link>
		<comments>http://cazatech.wordpress.com/2007/07/03/iptables-deny-messenger-access/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 21:47:37 +0000</pubDate>
		<dc:creator>cazatech</dc:creator>
				<category><![CDATA[IPTables]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://cazatech.wordpress.com/2007/07/03/iptables-deny-messenger-access/</guid>
		<description><![CDATA[We can use the next rule to deny MSN Messenger access in our LAN. You must have Kernel 2.6.14 with the IPTables STRING module:
iptables -I FORWARD -p tcp -m string --string "VER " --from 51 --to 56 --algo bm -j REJECT
The STRING module search into the packet a text string. The &#8220;from&#8221; &#8220;to&#8221; parameters means [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cazatech.wordpress.com&blog=1258290&post=20&subd=cazatech&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>We can use the next rule to deny MSN Messenger access in our LAN. You must have Kernel 2.6.14 with the IPTables <em>STRING </em>module:</p>
<p><code>iptables -I FORWARD -p tcp -m string --string "VER " --from 51 --to 56 --algo bm -j REJECT</code></p>
<p>The STRING module search into the packet a text string. The &#8220;from&#8221; &#8220;to&#8221; parameters means the TCP header end and end of data.</p>
<p>Source: <a href="http://www.vivalinux.com.ar/ayuda/iptables-para-bloquear-msn.html" target="_blank">VivaLinux! </a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cazatech.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cazatech.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cazatech.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cazatech.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cazatech.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cazatech.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cazatech.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cazatech.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cazatech.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cazatech.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cazatech.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cazatech.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cazatech.wordpress.com&blog=1258290&post=20&subd=cazatech&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cazatech.wordpress.com/2007/07/03/iptables-deny-messenger-access/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e23d67b729a4d4ed2566eba58606ac05?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cazatech</media:title>
		</media:content>
	</item>
		<item>
		<title>IPTables: Filtering by MAC Address</title>
		<link>http://cazatech.wordpress.com/2007/06/29/iptables-filtering-by-mac-address/</link>
		<comments>http://cazatech.wordpress.com/2007/06/29/iptables-filtering-by-mac-address/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 15:52:05 +0000</pubDate>
		<dc:creator>cazatech</dc:creator>
				<category><![CDATA[IPTables]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://cazatech.wordpress.com/2007/06/29/iptables-filtering-by-mac-address/</guid>
		<description><![CDATA[If we want filter a MAC in our firewall, we can use IPTables to this. For example, if we want to filter a MAC like 00:12:8D:EE:6E:AB (Must type the MAC with this format -&#62; HH:HH:HH:HH:HH:HH) and deny their access to our Firewall we can put type this:
iptables -A INPUT -m -mac --mac-source 00:12:8D:EE:6E:AB -j DROP
Also, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cazatech.wordpress.com&blog=1258290&post=19&subd=cazatech&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If we want filter a MAC in our firewall, we can use IPTables to this. For example, if we want to filter a MAC like 00:12:8D:EE:6E:AB (Must type the MAC with this format -&gt; HH:HH:HH:HH:HH:HH) and deny their access to our Firewall we can put type this:</p>
<p><code>iptables -A INPUT -m -mac --mac-source 00:12:8D:EE:6E:AB -j DROP</code></p>
<p>Also, we can use the ! operator, wich inverts the operation, for example, if we type:</p>
<p><code>iptables -A INPUT -m -mac --mac-source <strong>!</strong> 00:12:8D:EE:6E:AB -j DROP</code></p>
<p>All the packets will be dropped, except the packets from 00:12:8D:EE:6E:AB MAC.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cazatech.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cazatech.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cazatech.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cazatech.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cazatech.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cazatech.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cazatech.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cazatech.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cazatech.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cazatech.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cazatech.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cazatech.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cazatech.wordpress.com&blog=1258290&post=19&subd=cazatech&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cazatech.wordpress.com/2007/06/29/iptables-filtering-by-mac-address/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e23d67b729a4d4ed2566eba58606ac05?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cazatech</media:title>
		</media:content>
	</item>
	</channel>
</rss>