Correct Debian bridge config advice

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6690 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-06-27 20:10:25 +00:00
parent f1fa573d47
commit a8f8d0c659
2 changed files with 14 additions and 4 deletions

View File

@ -483,8 +483,10 @@ iface br0 inet static
pre-up /usr/sbin/brctl addbr br0
pre-up /usr/sbin/brctl addif br0 eth3
pre-up /usr/sbin/brctl addif br0 tap0
post-down /usr/sbin/brctl delif br0 eth3
post-down /usr/sbin/brctl delif br0 tap0
pre-down /usr/sbin/brctl delif br0 eth1
pre-down /sbin/ip link set eth1 down
pre-down /usr/sbin/brctl delif br0 tap0
pre-down /sbin/ip link set tap0 down
post-down /usr/sbin/brctl delbr br0
post-down /usr/sbin/openvpn --rmtun --dev tap0</programlisting>
@ -718,4 +720,4 @@ all all REJECT info
</section>
</section>
</section>
</article>
</article>

View File

@ -204,11 +204,19 @@ iface br0 inet static
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
pre-up /sbin/ip link set eth0 up
pre-up /sbin/ip link set eth1 up
pre-up /usr/sbin/brctl addbr br0
pre-up /usr/sbin/brctl addif br0 eth0
pre-up /usr/sbin/brctl addif br0 eth1</programlisting>
pre-up /usr/sbin/brctl addif br0 eth1
pre-down /usr/sbin/brctl delif br0 eth0
pre-down /sbin/ip link set eth0 down
pre-down /usr/sbin/brctl delif br0 eth1
pre-down /sbin/ip link set eth1 down
post-down /usr/sbin/brctl delbr br0</programlisting>
</blockquote>
<para>While it is not a requirement to give the bridge an IP address,