Next: Graphing, Previous: Configuration, Up: Top
This section will describe how to integrate BWM Tools into your system, be it
you use BWM Tools to entirely manage your firewall, NAT and traffic shaping or
just to do the traffic shaping.
There are two possible scenarios here detailed below...
Usage: bwm_firewall <options>
Options:
-c, --config=<config_file> Specify non-default BWM Tools config file
-f, --file[=<output_file>] Generate iptables-restore file from
BWM Tools firewall
-l, --load Load BWM Tools firewall directly into
kernel
-h, --help Display this page
-r, --reset-counters Reset iptables counters, usable with
"iptables-restore -c"
BWM Firewall takes the BWM Tools XML configuration file and translates the
various sections and tags into a firewall which can be loaded directly with
iptables-restore.
BWM Firewall defualts to writing the iptables-restore configuration
file to /etc/sysconfig/iptables.
Usage: bwmd <options>
Options:
-c, --config=<config_file> Specify non-default BWM Tools config file
-f, --foreground Run in foreground and print debug infomation to the screen
-h, --help Display this page
BWMD defualts to using the configuration file in
/etc/bwm_tools/firewall.xml.
nfmark="..."
parameter defined in the <flow> tag and targetted in iptables to
QUEUE instead of ACCEPT as per above.
iptables -t filter -A FORWARD -m mark ! --mark 0x0 -j QUEUE iptables -t mangle -A FORWARD -s 192.168.1.100 -j MARK --set-mark 100 iptables -t mangle -A FORWARD -d 192.168.1.100 -j MARK --set-mark 101
<firewall>
<global>
<modules>
<load name="ip_queue"/>
</modules>
</global>
# Traffic flows
<traffic>
<flow name="pc_in" max-rate="64000" report-timeout="60"
nfmark="100" />
<flow name="pc_out" max-rate="64000" report-timeout="60"
nfmark="101" />
</traffic>
</firewall>