Add static route in Smoothwall - NETSEC

Latest

Learning, Sharing, Creating

Cybersecurity Memo

Saturday, November 19, 2011

Add static route in Smoothwall

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 devdeviceinterface

--------------------------------------

Edit /etc/rc.d/rc.firewall.up

After the section on "# Allow packets that we know about through ..."

Add:
# Allow packets from green to green
/sbin/iptables -A FORWARD -i $GREEN_DEV -o $GREEN_DEV -j ACCEPT

2 comments:

  1. this works for ver.3.0 but in version 3.1 it is not.

    ReplyDelete
  2. take a look here dude
    https://community.smoothwall.org/forum/viewtopic.php?f=108&t=42102

    ReplyDelete