i just want to kno if the default gw part is correct should it be with or without the brackets ?
#!/bin/bash
ifconfig eth0 146.192.188.106 netmask 255.255.255.0 broadcast 146.192.188.255 up
sudo route add default [gw] 146.192.188.254 dev eth0
ifconfig eth1 10.10.160.188 netmask 255.255.255.0 broadcast 10.10.160.255 up
sudo route add default [gw] 10.10.160.188 dev eth1
ifconfig eth2 192.168.1.188 netmask 255.255.255.0 broadcast 192.168.1.255 up
sudo route add default [gw] 192.168.1.188 dev eth2
iptables -A FORWARD -p tcp -m state --state New --source 146.192.188.254 --dport 3882 -j ACCEPT
iptables -A FORWARD -p tcp -m state --state New --source 146.192.188.254 -j DROP