On Sun, Nov 29, 2020 at 07:41:57PM -0800, pe...@easthope.ca wrote:
> From: Justin Pryzby <pry...@telsasoft.com>
> Date: Sun, 29 Nov 2020 19:20:04 -0600
> > ... variable called NET_IF but then referred to it without a dollar sign, 
> > ...
> 
> NET_IF appears in the 2nd column of the installed interfaces file and 
> in the 3rd column of the installed snat file.  These came from the 
> Debian package files.  I wouldn't have expected missing "$" there.

What do you mean "the installed snat file" ?  Was it installed in /etc/ ?
What debian package/version ?

> If NET_IF is prefixed with $, shorewall execution ends with this.
> 
> Compiling /etc/shorewall/zones...
> Compiling /etc/shorewall/interfaces...
>    ERROR: Undefined shell variable ($NET_IF) /etc/shorewall/interfaces (line 
> 18)

You'd have to set it in the params file.

> If we're on the right track about NET_IF, shorewall should assign to 
> it the default route via the WiFi interface.  Shorewall would have to 
> respond autmatically when the interface is raised and again when the 
> interface is lowered.  This in /etc/network/interfaces?
> 
> iface wlxa0f3c10a28f7 inet dhcp
>   post-up NET_IF = $IFACE
>   pre-down NET_IF = ''  

Are you proposing to put that there ?
I doubt that's needed or working.  If that's a assignment, it wouldn't allow
spaces.

-- 
Justin


_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to