|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
QUOTE
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. |
|