<?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[Hidden rules and programming alias expansion]]></title><description><![CDATA[<p dir="auto">I remember there used to be (I think) a way to show the hidden rules - yes we can always cat the rules.debug file, but I thought I remembered a way to edit the hidden rules when you had to?</p>
<p dir="auto">Was that phased out or moved?</p>
<p dir="auto">Then there is alias expansion… I want to modify an auto-created rule to use an alias instead of capturing ALL traffic.</p>
<p dir="auto">What I think I see happening is that if I create an alias (hosts) it is placed in the rules.debug, but not expanded to a table unless I add a rule that references it IN THE GUI.</p>
<p dir="auto">This means that I can't simply change a the package to correct the firewall issue.</p>
<p dir="auto">Can anyone give me some guidance?</p>
<p dir="auto">In my specific case I add an alias, which is recorded:<br />
BB_SIPROXD = "{ 192.168.0.32 }"<br />
however the table entry:<br />
table &lt;bb_siproxd&gt;{....<br />
DOES NOT get created unless I add a dummy rule in the firewall.</p>
<p dir="auto">What I wanted to do was simply patch the line in siproxd.inc</p>
<pre><code>-$rules .= "rdr on {$iface} proto udp from any to !($iface) port {$port} -&gt; 127.0.0.1 port {$port}\n";
+$rules .= "rdr on {$iface} proto udp from &lt;bb_siproxd&gt; to !($iface) port {$port} -&gt; 127.0.0.1 port {$port}\n";&lt;/bb_siproxd&gt;
</code></pre>
<p dir="auto">However I would imagine I need to somehow cause the alias to be expanded to the table?</p>
<p dir="auto">Thanks!&lt;/bb_siproxd&gt;</p>
]]></description><link>https://forum.netgate.com/topic/22739/hidden-rules-and-programming-alias-expansion</link><generator>RSS for Node</generator><lastBuildDate>Thu, 15 Oct 2026 14:39:21 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/22739.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Apr 2010 23:21:30 GMT</pubDate><ttl>60</ttl></channel></rss>