Is there anyway to redirect a list of addresses to a text file for cleaning up the rules file? It was manageable until now where I need to allow a very long list of hosts access to a port and it makes it difficult to navigate or edit now. Thanks! jlc ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Joseph L. Casale wrote:> Is there anyway to redirect a list of addresses to a text file for cleaning up > the rules file? It was manageable until now where I need to allow a very > long list of hosts access to a port and it makes it difficult to navigate or > edit now.Hi Joseph, Use the "params" file. Put a row like this in /etc/shorewall/params: somehosts=192.0.2.1,192.0.2.3,192.0.2.56,192.0.2.239 ... then refer to the list as "$somehosts" in /etc/shorewall/rules. /Martin Leben ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Martin Leben wrote:> Joseph L. Casale wrote: >> Is there anyway to redirect a list of addresses to a text file for cleaning up >> the rules file? It was manageable until now where I need to allow a very >> long list of hosts access to a port and it makes it difficult to navigate or >> edit now. > > > Hi Joseph, > > Use the "params" file. Put a row like this in /etc/shorewall/params: > somehosts=192.0.2.1,192.0.2.3,192.0.2.56,192.0.2.239 > > ... then refer to the list as "$somehosts" in /etc/shorewall/rules.Or create an action that accepts traffic from all of the hosts. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08
>Use the "params" file. Put a row like this in /etc/shorewall/params: >somehosts=192.0.2.1,192.0.2.3,192.0.2.56,192.0.2.239 > >... then refer to the list as "$somehosts" in /etc/shorewall/rules. > >/Martin LebenThat''s what I needed! Thanks, jlc ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08