求助双线映射的问题
我设置了2个条规则来影射80端口到网外,电信的正常,可是网通的却访问不到,这个是什么原因呢?网吧用着双线上网呢,线路应该没有问题。谢谢高手解答~ 贴一下你双线策略是怎么做的。 原帖由 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
求助高手 另外再问下以下句子是否有用呢?
add chain=srcnat src-address=192.168.0.0/24 action=masquerade comment="" \
disabled=no help meiren 因为你的默认路由是电信的,所以电信的正常
远程IP在网通路由表内的话,只能通过网通映射访问服务器
其它IP只能通过电信映射访问服务器
页:
[1]