Advertisement
kiedtink

Konfigurasi DNS Bersih Mikrotik

May 15th, 2015
573
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /ip firewall nat
  2. add action=dst-nat chain=dstnat comment="DNSB 1" disabled=no dst-port=53 nth=3,1 protocol=udp to-addresses=202.57.23.1 to-ports=123
  3. add action=dst-nat chain=dstnat comment="DNSB 2" disabled=no dst-port=53 nth=2,1 protocol=udp to-addresses=119.2.79.82 to-ports=123
  4. add action=dst-nat chain=dstnat comment="DNSB 3" disabled=no dst-port=53 nth=1,1 protocol=udp to-addresses=45.64.255.234 to-ports=123
  5.  
  6. /tool netwatch
  7. add comment="DNSB 1" disabled=no down-script="/ip fi nat disable [find comment=\"DNSB 1\"] \r \n:log info \"DNSB 1 >> DOWN\"" host=202.57.23.1 interval=10s timeout=5s up-script="/ip fi nat enable [find comment=\"DNSB 1\"] \r \n:log info \"DNSB 1 >> UP\""
  8. add comment="DNSB 2" disabled=no down-script="/ip fi nat disable [find comment=\"DNSB 2\"] \r \n:log info \"DNSB 2 >> DOWN\"" host=119.2.79.82 interval=10s timeout=5s up-script="/ip fi nat enable [find comment=\"DNSB 2\"] \r \n:log info \"DNSB 2 >> UP\""
  9. add comment="DNSB 3" disabled=no down-script="/ip fi nat disable [find comment=\"DNSB 3\"] \r \n:log info \"DNSB 3 >> DOWN\"" host=45.64.255.234 interval=10s timeout=5s up-script="/ip fi nat enable [find comment=\"DNSB 3\"] \r \n:log info \"DNSB 3 >> UP\""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement