<?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: Preventing ip conflicts in xen</title>
	<atom:link href="http://toic.org/2008/09/22/preventing-ip-conflicts-in-xen/feed/" rel="self" type="application/rss+xml" />
	<link>http://toic.org/2008/09/22/preventing-ip-conflicts-in-xen/</link>
	<description>Think shell</description>
	<lastBuildDate>Fri, 23 Jul 2010 17:58:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: xdaan</title>
		<link>http://toic.org/2008/09/22/preventing-ip-conflicts-in-xen/comment-page-1/#comment-612</link>
		<dc:creator>xdaan</dc:creator>
		<pubDate>Sun, 11 Apr 2010 23:15:46 +0000</pubDate>
		<guid isPermaLink="false">http://toic.org/?p=3#comment-612</guid>
		<description>Hi,

I&#039;ve tried this solution, but unfortunately it seems to me that it doesn&#039;t give the expected results. Problem with IP spoofing is still there.

So if you really want to prevent stealing IP adressess inside of XEN domU, here is my tested an 120% working solution - http://xdaan.envirobyte.sk/rand.php?x=xen-ip-conflict</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;ve tried this solution, but unfortunately it seems to me that it doesn&#8217;t give the expected results. Problem with IP spoofing is still there.</p>
<p>So if you really want to prevent stealing IP adressess inside of XEN domU, here is my tested an 120% working solution &#8211; <a href="http://xdaan.envirobyte.sk/rand.php?x=xen-ip-conflict" rel="nofollow">http://xdaan.envirobyte.sk/rand.php?x=xen-ip-conflict</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avoid IP conflicts in Xen DomU &#124; Planet Admon</title>
		<link>http://toic.org/2008/09/22/preventing-ip-conflicts-in-xen/comment-page-1/#comment-521</link>
		<dc:creator>Avoid IP conflicts in Xen DomU &#124; Planet Admon</dc:creator>
		<pubDate>Thu, 12 Nov 2009 09:28:05 +0000</pubDate>
		<guid isPermaLink="false">http://toic.org/?p=3#comment-521</guid>
		<description>[...] This post is original created by Branko at his blog site.  I copied his content, and updated some settings so that it can work in CentOS-5.4).   Share [...]</description>
		<content:encoded><![CDATA[<p>[...] This post is original created by Branko at his blog site.  I copied his content, and updated some settings so that it can work in CentOS-5.4).   Share [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Branko</title>
		<link>http://toic.org/2008/09/22/preventing-ip-conflicts-in-xen/comment-page-1/#comment-108</link>
		<dc:creator>Branko</dc:creator>
		<pubDate>Fri, 17 Apr 2009 16:55:29 +0000</pubDate>
		<guid isPermaLink="false">http://toic.org/?p=3#comment-108</guid>
		<description>So after a while of chating we figured this is infact the correct diff for centos 5.3
I&#039;m including my whole vif-bridge script for centos 5.3 that eventualy worked: &lt;a href=&quot;http://toic.org/debs/vif-bridge-Centos5.3.tar.gz&quot; rel=&quot;nofollow&quot;&gt;Centos 5.3 vif-bridge script&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>So after a while of chating we figured this is infact the correct diff for centos 5.3<br />
I&#8217;m including my whole vif-bridge script for centos 5.3 that eventualy worked: <a href="http://toic.org/debs/vif-bridge-Centos5.3.tar.gz" rel="nofollow">Centos 5.3 vif-bridge script</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand Gupta</title>
		<link>http://toic.org/2008/09/22/preventing-ip-conflicts-in-xen/comment-page-1/#comment-107</link>
		<dc:creator>Anand Gupta</dc:creator>
		<pubDate>Thu, 16 Apr 2009 23:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://toic.org/?p=3#comment-107</guid>
		<description>Thanks for the reply.

Yes they seem to be working.

ebtables -L
Bridge table: filter

Bridge chain: INPUT, entries: 0, policy: ACCEPT

Bridge chain: FORWARD, entries: 0, policy: ACCEPT

Bridge chain: OUTPUT, entries: 0, policy: ACCEPT

Bridge chain: new, entries: 0, policy: ACCEPT

Here is the diff of the changes i made, if its of any help.

diff -u vif-bridge vif-bridge-custom 
--- vif-bridge	2009-04-14 23:35:08.000000000 -0400
+++ vif-bridge-custom	2009-04-15 01:33:39.000000000 -0400
@@ -57,15 +57,37 @@
     online)
 	setup_bridge_port &quot;$vif&quot;
 	add_to_bridge &quot;$bridge&quot; &quot;$vif&quot;
+	ebtables -N $vif
+	ebtables -P $vif DROP
+	ebtables -A INPUT -i $vif -j $vif
+	ebtables -A FORWARD -i $vif -j $vif
+	ebtables -A $vif -p ARP –arp-opcode 1 -j ACCEPT
+
+	if [ ! -z &quot;$ip&quot; ]
+	then
+	for oneip in $ip
+	do
+	ebtables -A $vif -p IPv4 –ip-src $oneip -j ACCEPT
+	ebtables -A $vif -p IPv4 –ip-dst $oneip -j ACCEPT
+	ebtables -A $vif -p ARP –arp-opcode 2 –arp-ip-src $oneip -j ACCEPT
+	done
+
+	ebtables -A $vif --log-prefix=&quot;arp-drop&quot; --log-arp -j DROP
+
+	fi
         ;;
 
     offline)
         do_without_error brctl delif &quot;$bridge&quot; &quot;$vif&quot;
         do_without_error ifconfig &quot;$vif&quot; down
+	do_without_error ebtables -D INPUT -i $vif -j $vif
+	do_without_error ebtables -D FORWARD -i $vif -j $vif
+	do_without_error ebtables -F $vif
+	do_without_error ebtables -X $vif
         ;;
 esac
 
-handle_iptable
+#handle_iptable
 
 log debug &quot;Successful vif-bridge $command for $vif, bridge $bridge.&quot;
 if [ &quot;$command&quot; == &quot;online&quot; ]

Is is possible that we can communicate over email ?</description>
		<content:encoded><![CDATA[<p>Thanks for the reply.</p>
<p>Yes they seem to be working.</p>
<p>ebtables -L<br />
Bridge table: filter</p>
<p>Bridge chain: INPUT, entries: 0, policy: ACCEPT</p>
<p>Bridge chain: FORWARD, entries: 0, policy: ACCEPT</p>
<p>Bridge chain: OUTPUT, entries: 0, policy: ACCEPT</p>
<p>Bridge chain: new, entries: 0, policy: ACCEPT</p>
<p>Here is the diff of the changes i made, if its of any help.</p>
<p>diff -u vif-bridge vif-bridge-custom<br />
&#8212; vif-bridge	2009-04-14 23:35:08.000000000 -0400<br />
+++ vif-bridge-custom	2009-04-15 01:33:39.000000000 -0400<br />
@@ -57,15 +57,37 @@<br />
     online)<br />
 	setup_bridge_port &#8220;$vif&#8221;<br />
 	add_to_bridge &#8220;$bridge&#8221; &#8220;$vif&#8221;<br />
+	ebtables -N $vif<br />
+	ebtables -P $vif DROP<br />
+	ebtables -A INPUT -i $vif -j $vif<br />
+	ebtables -A FORWARD -i $vif -j $vif<br />
+	ebtables -A $vif -p ARP –arp-opcode 1 -j ACCEPT<br />
+<br />
+	if [ ! -z "$ip" ]<br />
+	then<br />
+	for oneip in $ip<br />
+	do<br />
+	ebtables -A $vif -p IPv4 –ip-src $oneip -j ACCEPT<br />
+	ebtables -A $vif -p IPv4 –ip-dst $oneip -j ACCEPT<br />
+	ebtables -A $vif -p ARP –arp-opcode 2 –arp-ip-src $oneip -j ACCEPT<br />
+	done<br />
+<br />
+	ebtables -A $vif &#8211;log-prefix=&#8221;arp-drop&#8221; &#8211;log-arp -j DROP<br />
+<br />
+	fi<br />
         ;;</p>
<p>     offline)<br />
         do_without_error brctl delif &#8220;$bridge&#8221; &#8220;$vif&#8221;<br />
         do_without_error ifconfig &#8220;$vif&#8221; down<br />
+	do_without_error ebtables -D INPUT -i $vif -j $vif<br />
+	do_without_error ebtables -D FORWARD -i $vif -j $vif<br />
+	do_without_error ebtables -F $vif<br />
+	do_without_error ebtables -X $vif<br />
         ;;<br />
 esac</p>
<p>-handle_iptable<br />
+#handle_iptable</p>
<p> log debug &#8220;Successful vif-bridge $command for $vif, bridge $bridge.&#8221;<br />
 if [ "$command" == "online" ]</p>
<p>Is is possible that we can communicate over email ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Branko</title>
		<link>http://toic.org/2008/09/22/preventing-ip-conflicts-in-xen/comment-page-1/#comment-106</link>
		<dc:creator>Branko</dc:creator>
		<pubDate>Thu, 16 Apr 2009 15:41:05 +0000</pubDate>
		<guid isPermaLink="false">http://toic.org/?p=3#comment-106</guid>
		<description>I will look into it, thanks for pointing this out. Can you tell me if ebtables are working properly on your system? Try ebtables -L</description>
		<content:encoded><![CDATA[<p>I will look into it, thanks for pointing this out. Can you tell me if ebtables are working properly on your system? Try ebtables -L</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand Gupta</title>
		<link>http://toic.org/2008/09/22/preventing-ip-conflicts-in-xen/comment-page-1/#comment-105</link>
		<dc:creator>Anand Gupta</dc:creator>
		<pubDate>Wed, 15 Apr 2009 18:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://toic.org/?p=3#comment-105</guid>
		<description>The diff doesn&#039;t with the vif-script coming with centos 5.3, xen 3.0.3-80. So i made the changes by hand. Now domU won&#039;t boot.

Error: Device 0 (vif) could not be connected. /etc/xen/scripts/vif-bridge-custom failed; error detected.

Is there a way to find out what the error is exactly ? I tried to look at the xend log files, however can&#039;t seem to find anything there.

Thanks</description>
		<content:encoded><![CDATA[<p>The diff doesn&#8217;t with the vif-script coming with centos 5.3, xen 3.0.3-80. So i made the changes by hand. Now domU won&#8217;t boot.</p>
<p>Error: Device 0 (vif) could not be connected. /etc/xen/scripts/vif-bridge-custom failed; error detected.</p>
<p>Is there a way to find out what the error is exactly ? I tried to look at the xend log files, however can&#8217;t seem to find anything there.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://toic.org/2008/09/22/preventing-ip-conflicts-in-xen/comment-page-1/#comment-104</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 07 Apr 2009 23:01:40 +0000</pubDate>
		<guid isPermaLink="false">http://toic.org/?p=3#comment-104</guid>
		<description>Can you amend this to stop MAC spoofing also?</description>
		<content:encoded><![CDATA[<p>Can you amend this to stop MAC spoofing also?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Branko</title>
		<link>http://toic.org/2008/09/22/preventing-ip-conflicts-in-xen/comment-page-1/#comment-10</link>
		<dc:creator>Branko</dc:creator>
		<pubDate>Tue, 04 Nov 2008 09:58:32 +0000</pubDate>
		<guid isPermaLink="false">http://toic.org/?p=3#comment-10</guid>
		<description>Please notice that as of today 
ebtables -A $vif --log-prefix=&quot;arp-drop&quot; --log-arp -j DROP
in script above is moved outside of while loop for adding ip addresses. Thing is if it stays inside of the loop drop statement will be added after first added ip address thus rendering all ip addresses added afterwards inaccessible.</description>
		<content:encoded><![CDATA[<p>Please notice that as of today<br />
ebtables -A $vif &#8211;log-prefix=&#8221;arp-drop&#8221; &#8211;log-arp -j DROP<br />
in script above is moved outside of while loop for adding ip addresses. Thing is if it stays inside of the loop drop statement will be added after first added ip address thus rendering all ip addresses added afterwards inaccessible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Multiple xen network interfaces &#124; - [ t o i c . o r g ] -</title>
		<link>http://toic.org/2008/09/22/preventing-ip-conflicts-in-xen/comment-page-1/#comment-8</link>
		<dc:creator>Multiple xen network interfaces &#124; - [ t o i c . o r g ] -</dc:creator>
		<pubDate>Mon, 06 Oct 2008 21:32:49 +0000</pubDate>
		<guid isPermaLink="false">http://toic.org/?p=3#comment-8</guid>
		<description>[...] if you wish to use ip conflict prevention you must add additional mac section in vif [...]</description>
		<content:encoded><![CDATA[<p>[...] if you wish to use ip conflict prevention you must add additional mac section in vif [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alesandro</title>
		<link>http://toic.org/2008/09/22/preventing-ip-conflicts-in-xen/comment-page-1/#comment-2</link>
		<dc:creator>Alesandro</dc:creator>
		<pubDate>Thu, 25 Sep 2008 13:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://toic.org/?p=3#comment-2</guid>
		<description>imas supač blogač:) ..sorry..al sam morao spamat malo :) ..idem hakirat joomle ..LOL</description>
		<content:encoded><![CDATA[<p>imas supač blogač:) ..sorry..al sam morao spamat malo <img src='http://toic.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ..idem hakirat joomle ..LOL</p>
]]></content:encoded>
	</item>
</channel>
</rss>
