On 6/6/2017 10:36 AM, Jaryn Znosa wrote:
> Hi guys,
> thanks for a such great piece of software. We are using shorewall lite with
> variable for IP address (like &{myAddress}) and we need the same
> functionality for the destination port column. What is the best way to
> achieve that?
> 

You could define a variable in the params file and then use that
variable in the rules file.

EG:

/etc/shorewall/params

PORT=22,56-99

/etc/shorewall/rules

ACCEPT $FW net tcp $PORT

You could apply that scheme to any columns.

-Matt
-- 
Matt Darfeuille

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to