Difference between revisions of "Bridge Firewall Linux"

From MS Computech
Jump to: navigation, search
Line 4: Line 4:
  
 
   
 
   
<pre>1. # yum -y install bridge-utils
+
<pre># yum -y install bridge-utils
  # yum -y install ebtables</pre><pre>2. # brctl addbr br0
+
# yum -y install ebtables
  # brctl addif br0 eth0
+
# brctl addbr br0
  # brctl addif br0 eth1
+
# brctl addif br0 eth0
  # brctl stp br0 on</pre><pre>3. # ifconfig eth0 0.0.0.0 up
+
# brctl addif br0 eth1
  # ifconfig eth1 0.0.0.0 up
+
# brctl stp br0 on
  # ifconfig br0 1.1.1.1 netmask 255.0.0.0 up
+
# ifconfig eth0 0.0.0.0 up
  # route add default gw 1.1.1.1</pre>
+
# ifconfig eth1 0.0.0.0 up
4.&nbsp;Put all&nbsp;above&nbsp;config in /etc/rc.local
+
# ifconfig br0 1.1.1.1 netmask 255.0.0.0 up
 +
# route add default gw 1.1.1.1</pre>
 +
&nbsp;Put all&nbsp;above&nbsp;config in /etc/rc.local  
  
5. install vuurmuur
+
&nbsp;install vuurmuur
 
 
6.&nbsp;Editfiles /etc/sysconfig/network-script/ifcfg-eth0,ifcfg-eth1<br>
 
<pre># /etc/sysconfig/network-script/ifcfg-eth0,ifcfg-eth1
 
  
 +
Editfiles /etc/sysconfig/network-script/ifcfg-eth0,ifcfg-eth1<br>
 +
<pre># nano /etc/sysconfig/network-script/ifcfg-eth0,ifcfg-eth1
 
DEVICE=eth0
 
DEVICE=eth0
 
ONBOOT=yes
 
ONBOOT=yes

Revision as of 15:05, 3 June 2008

Bridge Firewall Linux

I'm use this install on debian etch

 

# yum -y install bridge-utils
# yum -y install ebtables
# brctl addbr br0
# brctl addif br0 eth0
# brctl addif br0 eth1
# brctl stp br0 on
# 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

 Put all above config in /etc/rc.local

 install vuurmuur

Editfiles /etc/sysconfig/network-script/ifcfg-eth0,ifcfg-eth1

# nano /etc/sysconfig/network-script/ifcfg-eth0,ifcfg-eth1
DEVICE=eth0
ONBOOT=yes
HWADDR=00:00:00:00:00
TYPE=Ethernet
#BOOTPROTO=dhcp <<<------- unmark this