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中添加静态路由以优化网络连接,并通过iptables规则允许特定网络间的数据包传输,确保绿色网络间的通信更加流畅。
853

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



