找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2647|回复: 7

[策略设置] 求助双线映射的问题

[复制链接]
发表于 2007-3-5 20:53:14 | 显示全部楼层 |阅读模式

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

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

×
我设置了2个条规则来影射80端口到网外,电信的正常,可是网通的却访问不到,这个是什么原因呢?网吧用着双线上网呢,线路应该没有问题。
谢谢高手解答~
routeros
发表于 2007-3-5 23:53:35 | 显示全部楼层
贴一下你双线策略是怎么做的。
routeros
回复

使用道具 举报

 楼主| 发表于 2007-3-6 09:03:26 | 显示全部楼层
原帖由 zooyo 于 2007-3-5 23:53 发表
贴一下你双线策略是怎么做的。

这样做的

# dec/27/2006 00:22:51 by RouterOS 2.9.27
# software id = AZZD-T1N
#
/ ip address
add address=内网IP/24 network=x.x.0.0 broadcast=x.x.0.255 \
    interface=lan comment="" disabled=no
add address=电信IP/24 network=x.x.x.0 broadcast=x.x.x.255 \
    interface=telecom comment="" disabled=no
add address=网通IP/24 network=x.x.x.0 broadcast=x.x.x.255 \
    interface=cnc comment="" disabled=no
/ ip route
add dst-address=58.16.0.0/13 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 \
    comment="Jilin\\fujian\\hunan\\hubei\\neimeng\\jiangxi\\chongqing\\guizhou"\
     disabled=no
add dst-address=58.240.0.0/12 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=59.80.0.0/14 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=60.8.0.0/15 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=60.10.0.0/16 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=60.12.0.0/16 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=60.13.0.0/18 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=60.13.128.0/17 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=60.16.0.0/12 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=60.0.0.0/11 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=60.216.0.0/15 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=60.220.0.0/14 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=60.208.0.0/12 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.4.64.0/20 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.48.0.0/16 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.49.0.0/16 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.50.0.0/16 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.51.0.0/16 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.52.0.0/16 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.53.0.0/16 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.54.0.0/16 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.55.0.0/16 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.128.210.0/24 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.129.58.0/24 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.133.0.0/17 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.134.96.0/19 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.134.128.0/17 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.135.0.0/16 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.136.0.0/16 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.138.0.0/16 gateway=网通网关 scope=255 target-scope=10 \
    comment="mudanjiang" disabled=no
add dst-address=61.148.0.0/15 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.156.0.0/16 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.158.128.0/17 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.158.0.0/16 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.159.0.0/18 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.161.0.0/18 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.161.128.0/17 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=61.162.0.0/15 gateway=网通网关 check-gateway=ping distance=0 \
add dst-address=202.96.0.0/18 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.96.64.0/19 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.97.128.0/17 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.98.0.0/19 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.99.0.0/16 gateway=网通网关 check-gateway=ping distance=0 \
    scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.102.128.0/18 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.102.224.0/19 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.106.0.0/16 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.107.0.0/17 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.108.0.0/16 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.110.0.0/17 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.110.192.0/18 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.111.128.0/18 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.112.0.0/15 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.114.0.0/16 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.115.0.0/16 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.116.0.0/16 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.117.0.0/16 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.118.0.0/16 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.119.0.0/16 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.120.0.0/15 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.192.0.0/15 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.194.0.0/15 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.196.0.0/15 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=202.198.0.0/15 gateway=网通网关 check-gateway=ping \
    distance=0 scope=255 target-scope=10 comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=电信网关 check-gateway=ping scope=255 \
    target-scope=10 comment="tel" disabled=no
routeros
回复

使用道具 举报

 楼主| 发表于 2007-3-9 10:43:06 | 显示全部楼层
求助高手
routeros
回复

使用道具 举报

 楼主| 发表于 2007-3-9 12:58:45 | 显示全部楼层
另外再问下以下句子是否有用呢?


add chain=srcnat src-address=192.168.0.0/24 action=masquerade comment="" \
    disabled=no
routeros
回复

使用道具 举报

 楼主| 发表于 2007-3-23 12:18:30 | 显示全部楼层
help
routeros
回复

使用道具 举报

 楼主| 发表于 2007-3-29 13:43:25 | 显示全部楼层
meiren
routeros
回复

使用道具 举报

发表于 2007-3-29 18:37:44 | 显示全部楼层
因为你的默认路由是电信的,所以电信的正常

远程IP在网通路由表内的话,只能通过网通映射访问服务器
其它IP只能通过电信映射访问服务器
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-19 11:08 , Processed in 0.075682 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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