<?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: Whoops	</title>
	<atom:link href="https://www.dragonflydigest.com/2012/10/30/whoops/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dragonflydigest.com/2012/10/30/whoops/</link>
	<description>A running description of activity related to DragonFly BSD.</description>
	<lastBuildDate>Mon, 05 Nov 2012 04:04:30 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Justin Sherrill		</title>
		<link>https://www.dragonflydigest.com/2012/10/30/whoops/comment-page-1/#comment-45807</link>

		<dc:creator><![CDATA[Justin Sherrill]]></dc:creator>
		<pubDate>Mon, 05 Nov 2012 04:04:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiningsilence.com/dbsdlog/?p=10647#comment-45807</guid>

					<description><![CDATA[kezkankrayon - I don&#039;t recall exactly what relative version pf is at in DragonFly, but it&#039;s older than what&#039;s in OpenBSD 4.6.  The &#039;match out...&#039; syntax causes an error on DragonFly.  The syntax you specify (the &#039;nat on...&#039;) is pretty close to what I have now.  Maybe specifying the interface rather than the address range will make a difference?  I&#039;ll change next chance I get, though it&#039;ll take another network event to find out if it works better.]]></description>
			<content:encoded><![CDATA[<p>kezkankrayon &#8211; I don&#8217;t recall exactly what relative version pf is at in DragonFly, but it&#8217;s older than what&#8217;s in OpenBSD 4.6.  The &#8216;match out&#8230;&#8217; syntax causes an error on DragonFly.  The syntax you specify (the &#8216;nat on&#8230;&#8217;) is pretty close to what I have now.  Maybe specifying the interface rather than the address range will make a difference?  I&#8217;ll change next chance I get, though it&#8217;ll take another network event to find out if it works better.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: kezkankrayon		</title>
		<link>https://www.dragonflydigest.com/2012/10/30/whoops/comment-page-1/#comment-45806</link>

		<dc:creator><![CDATA[kezkankrayon]]></dc:creator>
		<pubDate>Mon, 05 Nov 2012 03:26:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiningsilence.com/dbsdlog/?p=10647#comment-45806</guid>

					<description><![CDATA[Apologies, I may have mislead some people. The rules that I had provided on 2012/10/31 at 03:45 were for a post-OpenBSD 4.6 pf version. 

I wasn&#039;t able to determine what DragonflyBSD&#039;s latest pf version is based on. It might be worth noting that DragonflyBSD 2.1 pf was a version based upon OpenBSD 4.4 and that the &quot;match&quot; rule was introduced in OpenBSD 4.6.

Systems running a pre-OpenBSD 4.7 pf version might have the following in its rule set,

# Perform NAT on entire internal network:
nat on $extif from $intif:network to any -&#062; ($extif)

# Connections to firewall:
pass in on $extif proto tcp from any to ($extif) $tcp_services 
rdr on $extif proto tcp to ($extif) port http -&#062; $webserver
pass proto tcp to $webserver port http]]></description>
			<content:encoded><![CDATA[<p>Apologies, I may have mislead some people. The rules that I had provided on 2012/10/31 at 03:45 were for a post-OpenBSD 4.6 pf version. </p>
<p>I wasn&#8217;t able to determine what DragonflyBSD&#8217;s latest pf version is based on. It might be worth noting that DragonflyBSD 2.1 pf was a version based upon OpenBSD 4.4 and that the &#8220;match&#8221; rule was introduced in OpenBSD 4.6.</p>
<p>Systems running a pre-OpenBSD 4.7 pf version might have the following in its rule set,</p>
<p># Perform NAT on entire internal network:<br />
nat on $extif from $intif:network to any -&gt; ($extif)</p>
<p># Connections to firewall:<br />
pass in on $extif proto tcp from any to ($extif) $tcp_services<br />
rdr on $extif proto tcp to ($extif) port http -&gt; $webserver<br />
pass proto tcp to $webserver port http</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Justin Sherrill		</title>
		<link>https://www.dragonflydigest.com/2012/10/30/whoops/comment-page-1/#comment-45790</link>

		<dc:creator><![CDATA[Justin Sherrill]]></dc:creator>
		<pubDate>Thu, 01 Nov 2012 12:31:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiningsilence.com/dbsdlog/?p=10647#comment-45790</guid>

					<description><![CDATA[extif=&quot;em0&quot;
intif=&quot;nfe0&quot;
nat on $extif from 192.168.0.0/24 to any -&gt; ($extif)

It&#039;s not a very complex config.  These events are far enough apart that I can&#039;t remember for sure the sequence of events, but I have ended up in states where the machine itself was online, but NAT was not working.  

I was going to try kezkankrayon&#039;s config on my next opportunity to reset my connection.]]></description>
			<content:encoded><![CDATA[<p>extif=&#8221;em0&#8243;<br />
intif=&#8221;nfe0&#8243;<br />
nat on $extif from 192.168.0.0/24 to any -> ($extif)</p>
<p>It&#8217;s not a very complex config.  These events are far enough apart that I can&#8217;t remember for sure the sequence of events, but I have ended up in states where the machine itself was online, but NAT was not working.  </p>
<p>I was going to try kezkankrayon&#8217;s config on my next opportunity to reset my connection.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: samt		</title>
		<link>https://www.dragonflydigest.com/2012/10/30/whoops/comment-page-1/#comment-45789</link>

		<dc:creator><![CDATA[samt]]></dc:creator>
		<pubDate>Thu, 01 Nov 2012 11:22:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiningsilence.com/dbsdlog/?p=10647#comment-45789</guid>

					<description><![CDATA[More likely a problem with the default routing not updating correctly.

As mentioned earlier, PF and dynamic ip addresses work just fine (using parantheses does tell PF to look up the current ip address before using it.)

If we accept that PF should be working correctly, then the next thing to verify or resolve is why your default gateway (which ends up in the kernel routing table) isn&#039;t updated correctly.

Are you using any fancy routing that could be effecting how things are being interpreted going out of PF?]]></description>
			<content:encoded><![CDATA[<p>More likely a problem with the default routing not updating correctly.</p>
<p>As mentioned earlier, PF and dynamic ip addresses work just fine (using parantheses does tell PF to look up the current ip address before using it.)</p>
<p>If we accept that PF should be working correctly, then the next thing to verify or resolve is why your default gateway (which ends up in the kernel routing table) isn&#8217;t updated correctly.</p>
<p>Are you using any fancy routing that could be effecting how things are being interpreted going out of PF?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: coreyography		</title>
		<link>https://www.dragonflydigest.com/2012/10/30/whoops/comment-page-1/#comment-45785</link>

		<dc:creator><![CDATA[coreyography]]></dc:creator>
		<pubDate>Thu, 01 Nov 2012 01:48:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiningsilence.com/dbsdlog/?p=10647#comment-45785</guid>

					<description><![CDATA[pf on OpenBSD has always handled dynamic address assignment on interface names in parentheses just fine for me. I&#039;ve had a few issues with dhclient not updating routes when it gets a new address, and my own dhclient.script hacks to do things on address change not working for one reason or another. It&#039;s so rare an occurrence though I never bothered to track it all down.]]></description>
			<content:encoded><![CDATA[<p>pf on OpenBSD has always handled dynamic address assignment on interface names in parentheses just fine for me. I&#8217;ve had a few issues with dhclient not updating routes when it gets a new address, and my own dhclient.script hacks to do things on address change not working for one reason or another. It&#8217;s so rare an occurrence though I never bothered to track it all down.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: kezkankrayon		</title>
		<link>https://www.dragonflydigest.com/2012/10/30/whoops/comment-page-1/#comment-45777</link>

		<dc:creator><![CDATA[kezkankrayon]]></dc:creator>
		<pubDate>Wed, 31 Oct 2012 08:45:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiningsilence.com/dbsdlog/?p=10647#comment-45777</guid>

					<description><![CDATA[Putting parenthesis around the interface sounds correct for a dynamic addresses. If you&#039;re getting a &quot;Timeout waiting for PADO packet&quot; then it&#039;s something else.

#To perform NAT on entire internal network:
match out on egress inet from !(egress:network) to any nat-to (egress:0)

#Connections to firewall:
pass in on egress inet proto tcp from any to (egress) port $tcp_services
pass in on egress inet proto tcp to (egress) port http rdr-to $webserver]]></description>
			<content:encoded><![CDATA[<p>Putting parenthesis around the interface sounds correct for a dynamic addresses. If you&#8217;re getting a &#8220;Timeout waiting for PADO packet&#8221; then it&#8217;s something else.</p>
<p>#To perform NAT on entire internal network:<br />
match out on egress inet from !(egress:network) to any nat-to (egress:0)</p>
<p>#Connections to firewall:<br />
pass in on egress inet proto tcp from any to (egress) port $tcp_services<br />
pass in on egress inet proto tcp to (egress) port http rdr-to $webserver</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nunya Bidness		</title>
		<link>https://www.dragonflydigest.com/2012/10/30/whoops/comment-page-1/#comment-45775</link>

		<dc:creator><![CDATA[Nunya Bidness]]></dc:creator>
		<pubDate>Wed, 31 Oct 2012 03:37:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiningsilence.com/dbsdlog/?p=10647#comment-45775</guid>

					<description><![CDATA[You have to reload. Pf only reads interface ip when the rules are loaded.]]></description>
			<content:encoded><![CDATA[<p>You have to reload. Pf only reads interface ip when the rules are loaded.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
