ipfwadm2ipchains 0.5.2 review

Download
by rbytes.net on

ipfwadm2ipchains is a script designed to convert ipfwadm rulesets into ipchains rulesets. This is the ipfwadm2ipchains script, desig

License: GPL (GNU General Public License)
File size: 9K
Developer: William L. Stearns
0 stars award from rbytes.net

ipfwadm2ipchains is a script designed to convert ipfwadm rulesets into ipchains rulesets.
This is the ipfwadm2ipchains script, designed to convert ipfwadm rulesets into ipchains rulesets. Simply feed it your ipfwadm rules via stdin and it will print out the corresponding ipchains rules.

For example, here's our example ipfwadm firewal which is stored in rust.examples:

!/bin/bash
ipfwadm -F -p deny
ipfwadm -F -a m -S 192.168.0.0/24 -D 0.0.0.0/0
ipfwadm -I -a accept -V 10.1.2.1 -S 10.0.0.0/8 -D 0.0.0.0/0

Process it with ipfwadm2ipchains, like so:

cat rust.examples | ipfwadm2ipchains >rust.ipchains

and you get the output file rust.ipchains:

!/bin/bash
ipchains -P forward DENY
ipchains -A forward -j MASQ -s 192.168.0.0/24 -d 0.0.0.0/0
ipchains -A input -j ACCEPT -i eth0 -s 10.0.0.0/8 -d 0.0.0.0/0

ipfwadm2ipchains 0.5.2 search tags