pctine wrote:
不會掛! RouterOS...(恕刪)
我是做目標address PBR, 我把中國IP導入RouterOS, 其他非中國IP全經VPN走, 5分鐘完工. Draytek就.......
mandymak wrote:官網script範本寫的很差,編個您看的懂的:
/ip firewall nat
add action=redirect chain=dstnat src-address=192.168.1.100 dst-port=53 protocol=udp to-ports=53
script:
:foreach i in=[/ip dns cache find name~"youtube"] \
do={:local cachedata [/ip dns cache get $i address]
:if ([:len [/ip firewall address-list find list=redirect && address=$cachedata]]=0) \
do={/ip firewall address-list add list=redirect address=$cachedata timeout=1d}}