Monday, June 27, 2011

Add static route in Smoothwall

Firstly, edit the file /etc/rc.d/rc.netaddress.up

Above the 'echo "setting up firewall ......."', add:

/sbin route add -net destination netmask subnetmask gw gateway dev deviceinterface


Which destination Specified the IP address for the network
subnetmask Subnet mask to be associated with this route entry
gateway Gateway
deviceinterface Device interface with connected to this network

1 comment:

  1. Should read "/sbin/route add -net destination netmask subnetmask gw gateway"

    ReplyDelete