>>> 此貼的回復 >> # echo "200 DIANXIN" > /etc/iproute2/rt_table # ip route replace default via 222.168.1.2 table DIANXIN # iptables -t mangle -A PREROUTING -i eth0 -s 192.168.0.0/24 -d $電信IP -j MARK --set-mark 1 # ip rule add fwmark 1 table DIANXIN # ip route flush cache # iptables -t nat -F # iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -d $電信地址-j SNAT --to $電信網卡的WAN地址 # iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j SNAT --to $網通網卡的WAN地址
[ 關閉窗口 ]