3
什麼我在我的Ubuntu是:iptables的轉發特定端口到特定的網卡
eth0(local) = 192.168.1.1/24 attemp to be gateway for local network
eth1(net1) = 192.168.2.2/24 gateway is 192.168.2.1 is a DSL 1
eth2(net2) = 192.168.3.2/24 gateway is 192.168.3.1 is a DSL 2
我要的是:
port 22,53,80,443 force to use only through eth1
port 6881 to 6889 and other ports force to use only through eth2
如何使規則iptables的?
謝謝。
應通過eth1
去
沒有在這裏工作是我的ip route命令
192.168.3.0/24 dev eth2 proto kernel scope鏈接src 192.168.3.2 192.168.2.0/24 dev eth1 proto kernel scope鏈接src 192.168.2.2 192.168.1.0/24 dev eth0 proto kernel scope鏈接src 192.168.1.1 default通過192.168.3.1 dev eth2 默認通過192.168.3.1 dev eth2 metric 100 默認通過192.168.2.1 dev eth1 metric 100 – njai 2011-03-08 12:15:11
嘗試刪除192.168.0.2/24路由和192.168.0.3/24之一(其中有兩個,與默認度量和度量100) – 2011-03-08 13:06:39
如何將/ proc/sys/net/ipv4/ip_forward設置爲0或1 – njai 2011-03-08 15:54:20