ip6tables-converter - program to convert ip6tables commands from file to
takes a regular file containing a series of
ip6tables invocations and converts such a sequence to a format compatible with
command. No attempt is made to reorder the
sequence of the commands, especially nothing in the input is interpreted in
any way. All input lines not starting with "ip6tables" or
"/sbin/ip6tables" are ignored. Any input lines starting with
"#" are treated as comments and therefore are ignored.
is run without any arguments, it tries to read a
file named "rules" in workdir. That's the tribute to my way of
Output generally is send to stdout
for your convienience and nowhere
else. So you can inspect it and write to file for later feeding the
Something needs to be mentioned: ip6tables -E
intellectually still is an
unsolved problem and not implemented for now, sorry. Thank you for any
of how to do it, I can't imagine because of some lacks in my
Normally ip6tables-converter returns a value of 0. In accidential case of
exit status 1 is returned. For example, if there are shell
variables or shell functions in the inputfile, these are treated as error,
which is reported. To avoid these, execute your scripts and feed their output
as a file to ip6tables-converter.
be compatibe to any ip6tables implementations
out in the wild. If not, keep me informed, thanks. I'll do my very best.
This option gives you a chance to take another filename
instaed of "rules"
Johannes Hubertz <firstname.lastname@example.org> wrote this in 2013, 2014, 2015. Any
comments welcome anytime.