[Shorewall-users] Dynamic var usage in /snat? var fails functionally, without error; static data works OK in same rule

2021-07-05 Thread PGNet Dev
In a shorewall6-lite 5.2.8 config, I want to get externally defined data (an IP6 addr), cat /etc/shorewall/MYIP6.current [2600:::xxx0::56] and assign its content to a dynamic variable for use in SW Selecting from Extension Scripts (User Exits) h

Re: [Shorewall-users] Dynamic var usage in /snat? var fails functionally, without error; static data works OK in same rule

2021-07-05 Thread Justin Pryzby
On Mon, Jul 05, 2021 at 06:53:08PM -0400, PGNet Dev wrote: > In my shorewall6-lite config, I've > /init > MYIP6=$( cat /etc/shorewall/MYIP6.current ) Can you try setting it to a static value without $() ? > I use it in SNAT as > /snat > ?FORMAT 2 >

Re: [Shorewall-users] Dynamic var usage in /snat? var fails functionally, without error; static data works OK in same rule

2021-07-05 Thread PGNet Dev
Justin, On 7/5/21 7:13 PM, Justin Pryzby wrote: Could you try &{MYIPV6} ? ... The docs say this, so if it's empty, that would make sense. https://shorewall.org/configuration_file_basics.htm#AddressVariables |A second form is also available beginning with Shorewall 4.5.11 |%{variable} |Unlike