<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Strange Firewall rules behaviour with &quot;sticky-connections&quot;]]></title><description><![CDATA[<p dir="auto">Hello together,</p>
<p dir="auto">i am using pfsense for a few years now and everything is running fine. I figured a strange firewall-multiwan error out which i cannot resolve by myself, maybe some could take a look into it?</p>
<p dir="auto">I try to explain: I use a PPPoE connection as the main WAN gateway. I have added 3 OpenVPN connections and configured them as another gateway-goup with tier 1. I use both gateways with policy based routing with nat- and firewallrules. That works well, but, as from netgate described, it could make sometimes trouble with some connections. Thats why i wanted to check the box "use sticky connections". But when i checked it, it gives me error messages about wrong firewall rules.</p>
<pre><code>There were error(s) loading the rules: /tmp/rules.debug:928: sticky-address cannot be redefined - The line in question reads [928]: pass in quick on $VLAN_GUEST $GWVPN_Gateway inet proto icmp from $network_guest_vpn to any icmp-type { echorep,echoreq,paramprob,squench,timex,unreach } tag &amp;quot;vpntraffic&amp;quot; tracker 1568891569 keep state label &amp;quot;USER_RULE: Allow defined ICMP&amp;quot;
    @ 2020-06-26 12:28:12
</code></pre>
<p dir="auto">This is the rule:</p>
<pre><code>                &lt;rule&gt;
		&lt;id&gt;&lt;/id&gt;
		&lt;tracker&gt;1568891569&lt;/tracker&gt;
		&lt;type&gt;pass&lt;/type&gt;
		&lt;interface&gt;opt2&lt;/interface&gt;
		&lt;ipprotocol&gt;inet&lt;/ipprotocol&gt;
		&lt;tag&gt;vpntraffic&lt;/tag&gt;
		&lt;tagged&gt;&lt;/tagged&gt;
		&lt;max&gt;&lt;/max&gt;
		&lt;max-src-nodes&gt;&lt;/max-src-nodes&gt;
		&lt;max-src-conn&gt;&lt;/max-src-conn&gt;
		&lt;max-src-states&gt;&lt;/max-src-states&gt;
		&lt;statetimeout&gt;&lt;/statetimeout&gt;
		&lt;statetype&gt;&lt;![CDATA[keep state&rsqb;&rsqb;&gt;&lt;/statetype&gt;
		&lt;os&gt;&lt;/os&gt;
		&lt;protocol&gt;icmp&lt;/protocol&gt;
		&lt;icmptype&gt;echorep,echoreq,paramprob,squench,timex,unreach&lt;/icmptype&gt;
		&lt;source&gt;
			&lt;address&gt;network_guest_vpn&lt;/address&gt;
		&lt;/source&gt;
		&lt;destination&gt;
			&lt;any&gt;&lt;/any&gt;
		&lt;/destination&gt;
		&lt;descr&gt;&lt;![CDATA[Allow defined ICMP&rsqb;&rsqb;&gt;&lt;/descr&gt;
		&lt;gateway&gt;VPN_Gateway&lt;/gateway&gt;
		&lt;created&gt;
			&lt;time&gt;1568891569&lt;/time&gt;
			&lt;username&gt;&lt;![CDATA[admin@192.168.1.106 (Local Database)&rsqb;&rsqb;&gt;&lt;/username&gt;
		&lt;/created&gt;
		&lt;updated&gt;
			&lt;time&gt;1579638983&lt;/time&gt;
			&lt;username&gt;&lt;![CDATA[admin@192.168.1.102 (Local Database)&rsqb;&rsqb;&gt;&lt;/username&gt;
		&lt;/updated&gt;
</code></pre>
<p dir="auto">The firewall-rule should be okay, it works without sticky connection really good. Then is just tried to delete my rule to see what happens, i have nearly the same rule for another interface too. As soon as i deleted it, the next rule shows an error..</p>
<pre><code>There were error(s) loading the rules: /tmp/rules.debug:1015: sticky-address cannot be redefined - The line in question reads [1015]: pass in quick on $VLAN_PRIVATE $GWVPN_Gateway inet proto icmp from $network_private_vpn to any icmp-type { echorep,echoreq,paramprob,squench,timex,unreach } tag &amp;quot;vpntraffic&amp;quot; tracker 1579638453 keep state label &amp;quot;USER_RULE: Allow defined ICMP&amp;quot;
@ 2020-06-26 12:38:37
</code></pre>
<p dir="auto">This is the rule:</p>
<pre><code>                &lt;rule&gt;
		&lt;id&gt;&lt;/id&gt;
		&lt;tracker&gt;1579017667&lt;/tracker&gt;
		&lt;type&gt;pass&lt;/type&gt;
		&lt;interface&gt;opt3&lt;/interface&gt;
		&lt;ipprotocol&gt;inet&lt;/ipprotocol&gt;
		&lt;tag&gt;nonvpntraffic&lt;/tag&gt;
		&lt;tagged&gt;&lt;/tagged&gt;
		&lt;max&gt;&lt;/max&gt;
		&lt;max-src-nodes&gt;&lt;/max-src-nodes&gt;
		&lt;max-src-conn&gt;&lt;/max-src-conn&gt;
		&lt;max-src-states&gt;&lt;/max-src-states&gt;
		&lt;statetimeout&gt;&lt;/statetimeout&gt;
		&lt;statetype&gt;&lt;![CDATA[keep state&rsqb;&rsqb;&gt;&lt;/statetype&gt;
		&lt;os&gt;&lt;/os&gt;
		&lt;protocol&gt;icmp&lt;/protocol&gt;
		&lt;icmptype&gt;echorep,echoreq,paramprob,squench,timex,unreach&lt;/icmptype&gt;
		&lt;source&gt;
			&lt;address&gt;network_private&lt;/address&gt;
		&lt;/source&gt;
		&lt;destination&gt;
			&lt;any&gt;&lt;/any&gt;
		&lt;/destination&gt;
		&lt;descr&gt;&lt;![CDATA[Allow defined ICMP&rsqb;&rsqb;&gt;&lt;/descr&gt;
		&lt;gateway&gt;WAN_PPPOE&lt;/gateway&gt;
		&lt;created&gt;
			&lt;time&gt;1579017667&lt;/time&gt;
			&lt;username&gt;&lt;![CDATA[admin@192.168.1.102 (Local Database)&rsqb;&rsqb;&gt;&lt;/username&gt;
		&lt;/created&gt;
		&lt;updated&gt;
			&lt;time&gt;1579638306&lt;/time&gt;
			&lt;username&gt;&lt;![CDATA[admin@192.168.1.102 (Local Database)&rsqb;&rsqb;&gt;&lt;/username&gt;
		&lt;/updated&gt;
</code></pre>
<p dir="auto">Also, the internet connection with my vpn-policy-based routing is broken, if sticky connections is enabled and i rebotted the pfsense. Maybe someone has an idea, whats wrong in here?</p>
<p dir="auto">regards from germany<br />
JodelMoe</p>
]]></description><link>https://forum.netgate.com/topic/154821/strange-firewall-rules-behaviour-with-sticky-connections</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 11:04:48 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/154821.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Jun 2020 13:29:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Strange Firewall rules behaviour with &quot;sticky-connections&quot; on Sun, 05 Jul 2020 05:41:32 GMT]]></title><description><![CDATA[<p dir="auto">Thank you, I already reproduced this issue on my pfSense</p>
<p dir="auto">seems pfctl icmp-type + sticky-address issue,<br />
but only if you select icmp message types (<code>icmp any</code> works fine)</p>
<p dir="auto">https://redmine.pfsense.org/issues/10726</p>
]]></description><link>https://forum.netgate.com/post/922541</link><guid isPermaLink="true">https://forum.netgate.com/post/922541</guid><dc:creator><![CDATA[viktor_g]]></dc:creator><pubDate>Sun, 05 Jul 2020 05:41:32 GMT</pubDate></item><item><title><![CDATA[Reply to Strange Firewall rules behaviour with &quot;sticky-connections&quot; on Sat, 04 Jul 2020 20:07:52 GMT]]></title><description><![CDATA[<p dir="auto">Sure, i also opened a bug report. The order is okay and makes sense.<br />
If it would help you, i can upload the whole firewall-rules section.</p>
<p dir="auto"><img src="/assets/uploads/files/1593893205249-bug-1.png" alt="bug#1.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.netgate.com/post/922510</link><guid isPermaLink="true">https://forum.netgate.com/post/922510</guid><dc:creator><![CDATA[JodelMoe]]></dc:creator><pubDate>Sat, 04 Jul 2020 20:07:52 GMT</pubDate></item><item><title><![CDATA[Reply to Strange Firewall rules behaviour with &quot;sticky-connections&quot; on Sat, 04 Jul 2020 14:32:35 GMT]]></title><description><![CDATA[<p dir="auto">Can you attach screenshot of your firewall rules?<br />
Need to check the order</p>
]]></description><link>https://forum.netgate.com/post/922462</link><guid isPermaLink="true">https://forum.netgate.com/post/922462</guid><dc:creator><![CDATA[viktor_g]]></dc:creator><pubDate>Sat, 04 Jul 2020 14:32:35 GMT</pubDate></item></channel></rss>