Difference between revisions of "Bridge Firewall Linux"
From MS Computech
(New page: Bridge Firewall Linux I'm use this install on debian etch <pre>1. # yum -y install bridge-utils # yum -y install ebtables</pre> <pre>2. # brctl addbr br0 # brctl addif br0 e...) |
|||
Line 1: | Line 1: | ||
− | Bridge Firewall Linux | + | Bridge Firewall Linux |
− | I'm use this install on debian etch | + | I'm use this install on debian etch |
− | | + | |
<pre>1. # yum -y install bridge-utils | <pre>1. # yum -y install bridge-utils | ||
− | # yum -y install ebtables</pre> <pre>2. # brctl addbr br0 | + | # yum -y install ebtables</pre><pre>2. # brctl addbr br0 |
# brctl addif br0 eth0 | # brctl addif br0 eth0 | ||
# brctl addif br0 eth1 | # brctl addif br0 eth1 | ||
Line 12: | Line 12: | ||
# ifconfig br0 1.1.1.1 netmask 255.0.0.0 up | # ifconfig br0 1.1.1.1 netmask 255.0.0.0 up | ||
# route add default gw 1.1.1.1</pre> | # route add default gw 1.1.1.1</pre> | ||
− | 4. | + | 4. Put all above config in /etc/rc.local |
− | 5. install vuurmuur | + | 5. install vuurmuur |
− | 6. | + | 6. Editfiles /etc/sysconfig/network-script/ifcfg-eth0,ifcfg-eth1<br> |
+ | <pre># /etc/sysconfig/network-script/ifcfg-eth0,ifcfg-eth1 | ||
+ | |||
+ | DEVICE=eth0 | ||
+ | ONBOOT=yes | ||
+ | HWADDR=00:00:00:00:00 | ||
+ | TYPE=Ethernet | ||
+ | #BOOTPROTO=dhcp <<<------- unmark this </pre> |
Revision as of 15:02, 3 June 2008
Bridge Firewall Linux
I'm use this install on debian etch
1. # yum -y install bridge-utils # yum -y install ebtables
2. # brctl addbr br0# brctl addif br0 eth0 # brctl addif br0 eth1# brctl stp br0 on
3. # ifconfig eth0 0.0.0.0 up# ifconfig eth1 0.0.0.0 up # ifconfig br0 1.1.1.1 netmask 255.0.0.0 up# route add default gw 1.1.1.1
4. Put all above config in /etc/rc.local
5. install vuurmuur
6. Editfiles /etc/sysconfig/network-script/ifcfg-eth0,ifcfg-eth1
# /etc/sysconfig/network-script/ifcfg-eth0,ifcfg-eth1 DEVICE=eth0 ONBOOT=yes HWADDR=00:00:00:00:00 TYPE=Ethernet #BOOTPROTO=dhcp <<<------- unmark this