||
应是这样的吧 ip firewall mangle add chain=prerouting protocol=tcp dst-port=80 src-address-list=!src2 \ action=add-src-to-address-list address-list=src1 address-list-timeout=3s comment=TimeOut1 ip firewall mangle add chain=prerouting protocol=tcp dst-port=80 \ action=add-src-to-address-list address-list=src2 address-list-timeout=3h comment=TimeOut2 ip firewall nat add chain=dstnat protocol=tcp dst-port=80 src-address-list=src1 \ action=dst-nat to-addresses=10.24.28.200 to-ports=80 comment=ToAddress { :local ip /ip firewall address-list :foreach i in=[find list=src2] do={ :set ip [get $i address] :if ([:len [/ip address find dynamic=yes network=$ip]]=0) do={remove $i}}} |
|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )
GMT+8, 2024-12-22 18:04 , Processed in 0.034807 second(s), 6 queries , Gzip On, Redis On.
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.