irwan94

DNS

May 15th, 2015
768
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. /ip firewall nat
  2. add action=dst-nat chain=dstnat comment=DNS2 disabled=no dst-port=53 nth=3,1 \
  3. protocol=udp to-addresses=202.57.23.1 to-ports=53
  4. add action=dst-nat chain=dstnat comment=DNS3 disabled=no dst-port=53 nth=2,1 \
  5. protocol=udp to-addresses=119.2.79.82 to-ports=53
  6. add action=dst-nat chain=dstnat comment=DNS4 disabled=no dst-port=53 nth=1,1 \
  7. protocol=udp to-addresses=117.74.119.252 to-ports=53
  8. /tool netwatch
  9. add disabled=no down-script="/ip firewall nat set [find comment=\"DNS2\"] disabl\
  10. ed=yes\r\
  11. \n:log error \"DNS DOWN\"" host=202.57.23.1 interval=1m timeout=1s \
  12. up-script="/ip firewall nat set [find comment=\"DNS2\"] disabled=no\r\
  13. \n:log error \"DNS UP\""
  14. add disabled=no down-script="/ip firewall nat set [find comment=\"DNS3\"] disabl\
  15. ed=yes\r\
  16. \n:log error \"DNS DOWN\"" host=119.2.79.82 interval=1m timeout=1s \
  17. up-script="/ip firewall nat set [find comment=\"DNS3\"] disabled=no\r\
  18. \n:log error \"DNS UP\""
  19. add disabled=no down-script="/ip firewall nat set [find comment=\"DNS4\"] disabl\
  20. ed=yes\r\
  21. \n:log error \"DNS DOWN\"" host=117.74.119.252 interval=1m timeout=1s \
  22. up-script="/ip firewall nat set [find comment=\"DNS4\"] disabled=no\r\
  23. \n:log error \"DNS UP\""
Advertisement
Add Comment
Please, Sign In to add comment