Eric Sawler - 2004-04-02

Logged In: YES
user_id=594915

I did the following :-
Set up the machine with 2 nic cards (management from
console only)
#!/bin/sh
#
# rc.firewall This shell script boots up the bridge and firewall.
#
#
# For use with the Sentry Firewall.

BRCTL=/usr/sbin/brctl
IPTABLES=/sbin/iptables
IFCONFIG=/sbin/ifconfig

${IFCONFIG} br0 down
${BRCTL} delbr br0
${BRCTL} addbr br0
${BRCTL} stp br0 off
${BRCTL} addif br0 eth0
${BRCTL} addif br0 eth1
${IFCONFIG} eth0 down
${IFCONFIG} eth1 down
${IFCONFIG} eth0 0.0.0.0 up
${IFCONFIG} eth1 0.0.0.0 up
${IFCONFIG} br0 up

At this point my bridge works.
I then added iptables firewall rules using Shawn Grimes
document
http://linux.co.uk/Members/oddjob/howtos/additional_docs/Fir
ewalling_for_Free.pdf as a guide.