Nowadays, inside /etc/shorewall/rules, I already use this format: --------------------------------------- SECTION NEW INCLUDE DNAT.rules INCLUDE ALL.rules INCLUDE REDIRECT.rules INCLUDE FW.rules INCLUDE NET.rules INCLUDE VPN.rules --------------------------------------- To have more flexibility, I don''t want to have to insert a new line inside rules on every new group of rules. Is it dificult to change the syntax to: --------------------------------------- SECTION NEW INCLUDE rules.d/*.rules --------------------------------------- ? -Gilson Soares PS: If the order is important, I can enumerate the files 00-DNAT.rules, 10-ALL.rules, 99-VPN.rules, etc. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Gilson Soares wrote:> Nowadays, inside /etc/shorewall/rules, I already use this format: > > --------------------------------------- > SECTION NEW > INCLUDE DNAT.rules > INCLUDE ALL.rules > INCLUDE REDIRECT.rules > INCLUDE FW.rules > INCLUDE NET.rules > INCLUDE VPN.rules > --------------------------------------- > > To have more flexibility, I don''t want to have to insert a new line > inside rules on every new group of rules. > > Is it dificult to change the syntax to: > > --------------------------------------- > SECTION NEW > INCLUDE rules.d/*.rules > ---------------------------------------In Shorewall-perl 4.0.6 or later, just write: SHELL cat rules.d/*.rules -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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
On Fri, Feb 29, 2008 at 12:35 PM, Tom Eastep <teastep@shorewall.net> wrote:> Gilson Soares wrote: > > Nowadays, inside /etc/shorewall/rules, I already use this format: > > > > --------------------------------------- > > SECTION NEW > > INCLUDE DNAT.rules > > INCLUDE ALL.rules > > INCLUDE REDIRECT.rules > > INCLUDE FW.rules > > INCLUDE NET.rules > > INCLUDE VPN.rules > > --------------------------------------- > > > > To have more flexibility, I don''t want to have to insert a new line > > inside rules on every new group of rules. > > > > Is it dificult to change the syntax to: > > > > --------------------------------------- > > SECTION NEW > > INCLUDE rules.d/*.rules > > --------------------------------------- > > In Shorewall-perl 4.0.6 or later, just write: > > SHELL cat rules.d/*.rules > > -Tom >Worked :) Thanks ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/