找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 5463|回复: 1

Two netwok cards to access the internet

[复制链接]
发表于 2005-3-30 18:39:26 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
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.
routeros
发表于 2005-4-7 18:05:12 | 显示全部楼层
呵呵,楼主还是比较爽吧。好的东西都贴上来。
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-11-24 04:36 , Processed in 0.039819 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表