On 1/18/19 7:14 PM, ObNox wrote: > Hi, > > If possible, when upgrading Shorewall, could it detect the file format > of the "masq" file an use the same format on the converted "snat" file ? > > I mean : If "masq" is using the column-based format then convert to a > column-based "snat" file, etc. > > I exclusively use the bracket-based format which I find way more > readable when there are a lot of lines in any file. > > Currently, "masq" to "snat" conversion only produces column-based files > which I find a bit hard to manually convert without errors to the > bracket-format :-) > > Thank you. > > PS: I also exclusively use ${...} for variables format but I can leave > with the $... (without brackets) and convert them all later with a > single regex search/replace without errors :-) >
I've taken a look at this and it would involve an almost complete rewrite of the five conversion routines (tos -> mangle, tcrules -> mangle, masq -> snat, routestopped -> stoppedrules, and blacklist -> blrules). A complicating factor is that people most often use both formats; they specify the leading contiguous columns, then use the bracket-based format for the remaining options. I certainly don't want to attempt to implement any changes to the conversion routines until after the next major Debian release. -Tom -- Tom Eastep \ Q: What do you get when you cross a mobster with Shoreline, \ an international standard? Washington, USA \ A: Someone who makes you an offer you can't http://shorewall.org \ understand \_______________________________________________
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Shorewall-users mailing list Shorewall-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-users