|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
/system script
add name=nat policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
:for i from=1 to=6 do= {/ip firewall nat set [/ip firewall nat find commen\
t=(\"nat\".\$i)] dst-address=[/ip address get [/ip address find interface=\
(\"pppoe-out\".\$i)] address ]}"
/ip firewall nat
add action=dst-nat chain=dstnat comment=nat1 disabled=no dst-address=\
10.8.0.82 dst-port=26500 protocol=tcp to-addresses=158.158.0.251 \
to-ports=26500
add action=dst-nat chain=dstnat comment=nat2 disabled=no dst-address=\
10.8.0.83 dst-port=26500 protocol=tcp to-addresses=158.158.0.251 \
to-ports=26500
add action=dst-nat chain=dstnat comment=nat3 disabled=no dst-address=\
10.8.0.84 dst-port=26500 protocol=tcp to-addresses=158.158.0.251 \
to-ports=26500
add action=dst-nat chain=dstnat comment=nat4 disabled=no dst-address=\
10.8.0.85 dst-port=26500 protocol=tcp to-addresses=158.158.0.251 \
to-ports=26500
add action=dst-nat chain=dstnat comment=nat5 disabled=no dst-address=\
10.8.0.86 dst-port=26500 protocol=tcp to-addresses=158.158.0.251 \
to-ports=26500
add action=dst-nat chain=dstnat comment=nat6 disabled=no dst-address=\
10.8.0.87 dst-port=26500 protocol=tcp to-addresses=158.158.0.251 \
to-ports=26500 |
|