Advertisement
orocknet

pptp-dns

Aug 16th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. # test dns
  2.  
  3. /interface pptp-client
  4. add connect-to=orocknet.ddns.info disabled=no mrru=1600 name=pptp-dns password=yes profile=default user=banten
  5.  
  6. /ip firewall nat
  7. add action=masquerade chain=srcnat out-interface=pptp-dns
  8. add action=dst-nat chain=dstnat comment=pptp-dns dst-port=53,5353 protocol=udp src-address=192.168.0.0/20 to-addresses=172.17.17.1 to-ports=5353
  9.  
  10. /tool netwatch
  11. add down-script="/ip fi nat disable [find comment=pptp-dns]" host=172.17.17.1 interval=1s up-script="/ip fi nat enable [find comment=pptp-dns]\r\
  12.    \n"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement