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
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
本文介绍如何在Smoothwall系统中配置静态路由。主要内容包括编辑网络地址文件以添加静态路由条目,以及在防火墙设置中允许特定的数据包通过。这些步骤对于网络管理员来说至关重要。
852

被折叠的 条评论
为什么被折叠?



