我爱肉饼 发表于 2011-5-16 22:40:19

看不懂的脚本

/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

nmwhfx 发表于 2011-5-16 23:39:19

貌似是那个网吧电影的映射吧。

jt00278 发表于 2011-5-17 09:52:57

一些dsnat而已……
页: [1]
查看完整版本: 看不懂的脚本