Re: [Shorewall-users] [ENHANCEMENT] A way to support macros in "masq" file?

2016-10-14 Thread Ob Noxious
On Fri, Oct 14, 2016 at 1:14 PM, Simon Hobson wrote: > Ex 1: simple :) > > > > rules: > > NTP(ACCEPT) { source=lan dest=net:$NTP_HOST } > > > > masq: > > $IF_NET { source=$LAN adress=$GW_IP proto=udp port=ntp } > > > > Ok, no big deal really but would look nicer with a

Re: [Shorewall-users] [ENHANCEMENT] A way to support macros in "masq" file?

2016-10-14 Thread Tom Eastep
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 10/14/2016 03:32 AM, Ob Noxious wrote: > Hi, > > The use of macros make the "rules" file really nice, tidy and > clean! It would be nice if there was a way to support macros in the > "masq" file. > > Unfortunately, I have to deal with lots of

Re: [Shorewall-users] [ENHANCEMENT] A way to support macros in "masq" file?

2016-10-14 Thread Simon Hobson
Ob Noxious wrote: > Wherever possible, I create a macro to wrap it up. This makes the "rules" > files look nice but I still have to manually specify all the info on the > "masq" file. > > Ex 1: simple :) > > rules: > NTP(ACCEPT) { source=lan dest=net:$NTP_HOST } > > masq: