Subject: Re: Two netwok cards to access the internet.On Tue, 22 Mar 2005 18:54:26 -0300, Sebasti茫o Ant么nio Campos wrote:Well, that's easy. When you know the ports you want to map through theinterfaces, just doiptables -t nat -A POSTROUTING -m multiport -p tcp -s 172.17.1.8 --dports25,110,1723,1701,47 -o eth0 -j MASQUERADEiptables -t nat -A POSTROUTING -s 172.17.0.0/16 -o eth2 -j MASQUERADEor even betteriptables -t nat -A POSTROUTING -s 172.17.0.0/16 -o eth2 -j SNAT--to-source $ETH2_IPThose are simple states, you might add --syn or -m state, it's a choice ofyours anyway. 呵呵,楼主还是比较爽吧。好的东西都贴上来。
页:
[1]