<?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: Virtualizing the OpenBSD Routing Table</title>
	<atom:link href="http://www.packetmischief.ca/2011/09/20/virtualizing-the-openbsd-routing-table/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.packetmischief.ca/2011/09/20/virtualizing-the-openbsd-routing-table/</link>
	<description>IP Networks. Datacenter. Security. Open Source. My Blog.</description>
	<lastBuildDate>Tue, 08 May 2012 16:40:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Danie</title>
		<link>http://www.packetmischief.ca/2011/09/20/virtualizing-the-openbsd-routing-table/#comment-170</link>
		<dc:creator>Danie</dc:creator>
		<pubDate>Tue, 03 Apr 2012 13:04:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.packetmischief.ca/?p=749#comment-170</guid>
		<description>Hi Joel, 
thanks for the reply.

The push traffic to rdomain and local loopback for each rdomain did the trick.

I&#039;m still getting used to the idea of rdomains and pf.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Joel,<br />
thanks for the reply.</p>
<p>The push traffic to rdomain and local loopback for each rdomain did the trick.</p>
<p>I&#8217;m still getting used to the idea of rdomains and pf.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Knight</title>
		<link>http://www.packetmischief.ca/2011/09/20/virtualizing-the-openbsd-routing-table/#comment-163</link>
		<dc:creator>Joel Knight</dc:creator>
		<pubDate>Mon, 02 Apr 2012 23:42:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.packetmischief.ca/?p=749#comment-163</guid>
		<description>Hi Danie,

That&#039;s a good scenario. I haven&#039;t tested this, but here&#039;s what I&#039;ve got off the top of my head. 

# push tcp/80 traffic into rdomain 10 and do dest addr translation
pass in on em0 proto tcp to 172.29.43.20 port 80 rtable 10 rdr-to 10.0.0.2

# get traffic from rdomain 10 destined to 172-net back into rdomain 0
pass in on vlan10 to 172.29.0.0/16 rtable 0

# setup reverse route in rdomain 10
ifconfig lo10 rdomain 10 127.0.0.1
route -T 10 add 172.29.0.0/16 127.0.0.1

# (no route needed in rdomain 0)


Let me know what you think. I&#039;m interested to know if this works or not. Sounds like you might have all this already except for the first pf rule.</description>
		<content:encoded><![CDATA[<p>Hi Danie,</p>
<p>That&#8217;s a good scenario. I haven&#8217;t tested this, but here&#8217;s what I&#8217;ve got off the top of my head. </p>
<p># push tcp/80 traffic into rdomain 10 and do dest addr translation<br />
pass in on em0 proto tcp to 172.29.43.20 port 80 rtable 10 rdr-to 10.0.0.2</p>
<p># get traffic from rdomain 10 destined to 172-net back into rdomain 0<br />
pass in on vlan10 to 172.29.0.0/16 rtable 0</p>
<p># setup reverse route in rdomain 10<br />
ifconfig lo10 rdomain 10 127.0.0.1<br />
route -T 10 add 172.29.0.0/16 127.0.0.1</p>
<p># (no route needed in rdomain 0)</p>
<p>Let me know what you think. I&#8217;m interested to know if this works or not. Sounds like you might have all this already except for the first pf rule.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danie</title>
		<link>http://www.packetmischief.ca/2011/09/20/virtualizing-the-openbsd-routing-table/#comment-152</link>
		<dc:creator>Danie</dc:creator>
		<pubDate>Thu, 29 Mar 2012 09:54:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.packetmischief.ca/?p=749#comment-152</guid>
		<description>Do you perhaps have a example of overlapping subnets for rdomain 1 and 2?

in my case, I&#039;ve setup vlan10 in rdomain 10 and vlan11 in rdomain 11 both have the same network 10.0.0.0/18 and same gateway ip of 10.0.0.1. I can ping both using the ping -V10/11 10.0.0.1 and also the hosts located on the 2 subnets. (vlan10/host = 10.0.0.4 and vlan11/host = 10.0.0.2)

in pf.conf - I&#039;ve added the following, 

pass in on vlan10 to 172.29.0.0/16 rtable 0
pass in on vlan11 to 172.29.0.0/16 rtable 0

This allows ping from both 10.0.0.2 and .4 hosts to my external interface em0 (172.29.43.239)

But now I would like to access the host 10.0.0.2 from a host 172.29.43.20 by accessing a natted IP of say 172.29.43.240-&gt;10.0.0.2 (rdomain 10).</description>
		<content:encoded><![CDATA[<p>Do you perhaps have a example of overlapping subnets for rdomain 1 and 2?</p>
<p>in my case, I&#8217;ve setup vlan10 in rdomain 10 and vlan11 in rdomain 11 both have the same network 10.0.0.0/18 and same gateway ip of 10.0.0.1. I can ping both using the ping -V10/11 10.0.0.1 and also the hosts located on the 2 subnets. (vlan10/host = 10.0.0.4 and vlan11/host = 10.0.0.2)</p>
<p>in pf.conf &#8211; I&#8217;ve added the following, </p>
<p>pass in on vlan10 to 172.29.0.0/16 rtable 0<br />
pass in on vlan11 to 172.29.0.0/16 rtable 0</p>
<p>This allows ping from both 10.0.0.2 and .4 hosts to my external interface em0 (172.29.43.239)</p>
<p>But now I would like to access the host 10.0.0.2 from a host 172.29.43.20 by accessing a natted IP of say 172.29.43.240-&gt;10.0.0.2 (rdomain 10).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Knight</title>
		<link>http://www.packetmischief.ca/2011/09/20/virtualizing-the-openbsd-routing-table/#comment-151</link>
		<dc:creator>Joel Knight</dc:creator>
		<pubDate>Thu, 29 Mar 2012 03:01:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.packetmischief.ca/?p=749#comment-151</guid>
		<description>Ah, I can see why that would be misleading. I meant more in the sense that the pf ruleset is a bit cleaner and that you can do the dual-ISP setup using dynamically assigned Internet IPs with rdomains whereas with route-to, you&#039;re pretty well stuck needing static IPs (because you have to specify the gateway IPs in the ruleset).</description>
		<content:encoded><![CDATA[<p>Ah, I can see why that would be misleading. I meant more in the sense that the pf ruleset is a bit cleaner and that you can do the dual-ISP setup using dynamically assigned Internet IPs with rdomains whereas with route-to, you&#8217;re pretty well stuck needing static IPs (because you have to specify the gateway IPs in the ruleset).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jofcho</title>
		<link>http://www.packetmischief.ca/2011/09/20/virtualizing-the-openbsd-routing-table/#comment-150</link>
		<dc:creator>jofcho</dc:creator>
		<pubDate>Wed, 28 Mar 2012 10:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.packetmischief.ca/?p=749#comment-150</guid>
		<description>Actually I try to make load balancing of outbound connections and use two ISPs.
Maybe this citation misleaded me:
&quot;This provides a much more elegant solution than the outbound load balancing example I wrote about in the PF User’s Guide.&quot;</description>
		<content:encoded><![CDATA[<p>Actually I try to make load balancing of outbound connections and use two ISPs.<br />
Maybe this citation misleaded me:<br />
&#8220;This provides a much more elegant solution than the outbound load balancing example I wrote about in the PF User’s Guide.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Knight</title>
		<link>http://www.packetmischief.ca/2011/09/20/virtualizing-the-openbsd-routing-table/#comment-148</link>
		<dc:creator>Joel Knight</dc:creator>
		<pubDate>Tue, 27 Mar 2012 20:24:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.packetmischief.ca/?p=749#comment-148</guid>
		<description>I can&#039;t think of a straightforward way of doing that.

Keep in mind that rdomains aren&#039;t designed to do what you&#039;re doing. They&#039;re meant to provide isolation at Layer 3 (and below). You&#039;re trying to do round robin routing to balance Internet use. Stick with the &#039;route-to&#039; method.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t think of a straightforward way of doing that.</p>
<p>Keep in mind that rdomains aren&#8217;t designed to do what you&#8217;re doing. They&#8217;re meant to provide isolation at Layer 3 (and below). You&#8217;re trying to do round robin routing to balance Internet use. Stick with the &#8216;route-to&#8217; method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jofcho</title>
		<link>http://www.packetmischief.ca/2011/09/20/virtualizing-the-openbsd-routing-table/#comment-145</link>
		<dc:creator>jofcho</dc:creator>
		<pubDate>Tue, 27 Mar 2012 08:18:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.packetmischief.ca/?p=749#comment-145</guid>
		<description>Well, I make all settings, and I&#039;m able to transmit and receive data between domains. But how to make something like:
&quot;pass in on $int_if from $lan_net \
    route-to { ($ext_if1 $ext_gw1), ($ext_if2 $ext_gw2) } \
    round-robin&quot;

with rtables?

pass in on vic1 to 0.0.0.0/0 rtable 0
pass out on vic0 nat-to vic0
pass in on vic1 to 0.0.0.0/0 rtable 1
pass out on vic2 nat-to vic2
How to combine theese two rules?</description>
		<content:encoded><![CDATA[<p>Well, I make all settings, and I&#8217;m able to transmit and receive data between domains. But how to make something like:<br />
&#8220;pass in on $int_if from $lan_net \<br />
    route-to { ($ext_if1 $ext_gw1), ($ext_if2 $ext_gw2) } \<br />
    round-robin&#8221;</p>
<p>with rtables?</p>
<p>pass in on vic1 to 0.0.0.0/0 rtable 0<br />
pass out on vic0 nat-to vic0<br />
pass in on vic1 to 0.0.0.0/0 rtable 1<br />
pass out on vic2 nat-to vic2<br />
How to combine theese two rules?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Knight</title>
		<link>http://www.packetmischief.ca/2011/09/20/virtualizing-the-openbsd-routing-table/#comment-143</link>
		<dc:creator>Joel Knight</dc:creator>
		<pubDate>Mon, 26 Mar 2012 18:14:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.packetmischief.ca/?p=749#comment-143</guid>
		<description>Hi jofcho,

All of the components you need to make a dual ISP setup work are talked about in the article. What does your config look like so far? What works and what doesn&#039;t?</description>
		<content:encoded><![CDATA[<p>Hi jofcho,</p>
<p>All of the components you need to make a dual ISP setup work are talked about in the article. What does your config look like so far? What works and what doesn&#8217;t?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jofcho</title>
		<link>http://www.packetmischief.ca/2011/09/20/virtualizing-the-openbsd-routing-table/#comment-139</link>
		<dc:creator>jofcho</dc:creator>
		<pubDate>Mon, 26 Mar 2012 05:38:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.packetmischief.ca/?p=749#comment-139</guid>
		<description>Hi, nice article, thanks.
I try to set-up a dual ISP connections with rdomains, but failed to make the correct pf lines.
In http://www.openbsd.org/faq/pf/pools.html#outgoing example is used route-to and round-robin to achieve load balansing. What about rtables? Some working example?</description>
		<content:encoded><![CDATA[<p>Hi, nice article, thanks.<br />
I try to set-up a dual ISP connections with rdomains, but failed to make the correct pf lines.<br />
In <a href="http://www.openbsd.org/faq/pf/pools.html#outgoing" rel="nofollow">http://www.openbsd.org/faq/pf/pools.html#outgoing</a> example is used route-to and round-robin to achieve load balansing. What about rtables? Some working example?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonio Feitosa (@antonio_cfc)</title>
		<link>http://www.packetmischief.ca/2011/09/20/virtualizing-the-openbsd-routing-table/#comment-104</link>
		<dc:creator>Antonio Feitosa (@antonio_cfc)</dc:creator>
		<pubDate>Wed, 08 Feb 2012 01:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.packetmischief.ca/?p=749#comment-104</guid>
		<description>RT @knight_joel: @phessler You bet! Virtualizing the #OpenBSD Routing Table http://t.co/M00Db6ei</description>
		<content:encoded><![CDATA[<p>RT @knight_joel: @phessler You bet! Virtualizing the #OpenBSD Routing Table <a href="http://t.co/M00Db6ei" rel="nofollow">http://t.co/M00Db6ei</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

