找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3065|回复: 1

[其它] [求助]关于双电信光纤的ROS分流上网端口映射问题

[复制链接]
发表于 2009-12-31 12:43:36 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 cempot 于 2009-12-31 13:03 编辑

我网吧有两条光纤,一条10M的,一条50M的,50M的是跟别人公司共享的带宽,他们白天用的比较多,我们晚上用的比较多。
现在是ros 2.9.27上装了三块网卡,两块外网分别是wan1,wan2,内网网卡为LAN,IP192.168.1.1,带了150台左右机器。想利用ROS来做IP分流,192.168.1.1-192.168.1.70走WAN1,其它的走WAN2。
下面是我用的配置脚本,请大家帮忙看下,现在问题是:默认路由设为WAN1的网关,WAN2通过外网就无法用WINBOX访问,换成WAN2的外网网关,WAN1又无法访问,有没办法让这两个能够同时访问?因为有好几个IP要映射端口出去
  1. / ip route
  2. add dst-address=0.0.0.0/0 gateway=WAN2网关 scope=255 target-scope=10 \
  3.     comment="" disabled=no
  4. add dst-address=0.0.0.0/0 gateway=WAN1网关 scope=255 target-scope=10 \
  5.     routing-mark=59 comment="" disabled=no
  6. / ip firewall nat
  7. add chain=srcnat src-address=192.168.1.1-192.168.1.70 action=src-nat \
  8.     to-addresses=WAN1IP to-ports=0-65535 comment="NAT" disabled=no
  9. add chain=srcnat src-address=192.168.1.71-192.168.1.254 action=src-nat \
  10.     to-addresses=WAN2IP to-ports=0-65535 comment="NAT" disabled=no
  11. / ip firewall mangle
  12. add chain=prerouting src-address=192.168.1.1-192.168.1.70 action=mark-routing \
  13.     new-routing-mark=59 passthrough=no comment="59" disabled=no
复制代码
麻烦大家帮忙看下,解决问题,不胜感激!
routeros
 楼主| 发表于 2009-12-31 15:08:39 | 显示全部楼层
有没有高手帮忙看下啊
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-10-1 09:41 , Processed in 0.072210 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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