Step 1:
Please, connect to Brazil, you can connect via ssh using putty
Log in and press the key "Q", then press ENTER to entrer in the console.
You must edit the file mod.zz_bridge
- Código: Selecionar todos
edit /etc/rc.d/pkgs/mod.zz_bridge
Erase the simbolo “#” before to the following lines:
- Código: Selecionar todos
ifconfig eth0 up
ifconfig eth0 0.0.0.0
brctl addif br0 eth0
Move down, and change "eth2" for "eth1":
- Código: Selecionar todos
ifconfig eth1 up
ifconfig eth1 0.0.0.0
brctl addif br0 eth1
Save changes (Ctrl+S) and exit (Ctrl+Z)
Step 2:
Make a new file into brazilfw, ie.:
- Código: Selecionar todos
edit /etc/bridge
And put the follow text as content:
- Código: Selecionar todos
iptables -F
iptables -t nat -F
iptables -X
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
ebtables -F
Save changes (Ctrl+S), exit (Ctrl+Z) and add execution permission:
- Código: Selecionar todos
chmod +x /etc/bridge
Step 3:
Add in rc.local
- Código: Selecionar todos
edit /etc/rc.d/rc.local
the path of the file that we create earlier, to execute this in the boot:
/etc/bridge
Save changes (Ctrl+S) and exit (Ctrl+Z).
Step 4:
Open file coyote.config:
- Código: Selecionar todos
edit /etc/coyote/coyote.config
Then add or edit this:
- Código: Selecionar todos
IF_LOCAL='br0'
IF_INET='br0'
To finish, make backup and reboot
Step 5:
In webadmin goto "Internet Configuration" and select "IP static configuration ", and put them there the same IP configured in the "Network configuration " (This ip must be in the same subnetwork of BrazilFW NAT), as the mask too.
In the "gateway" put the IP of BrazilFW NAT.
In "1st DNS Server" and "2nd DNS Server" put the DNS of your ISP or if in your BrazilFW NAT "DNS Cache" is active, put in "1st DNS Server" the ip of our BrazilFW NAT.
Finally goto "Administrative configuration" and disable NAT
backup and reboot.
Note (by Iulian ):
- Código: Selecionar todos
# To enable the bridge remove or comment the next line
BRIDGE=DISABLED
- Código: Selecionar todos
#To Enable the Bridge uncomment these lines
#brctl addbr br0
Now, we have our BrazilFW in bridge mode, ready to add the add-ons that you want...
Thanks to Juancho.