看不懂的脚本
/system scriptadd 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 貌似是那个网吧电影的映射吧。 一些dsnat而已……
页:
[1]