Advertisement
ganggumalam

OpenDNS via VPN CHR

Feb 7th, 2018
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. di chr servers
  2. /ip dns set servers=208.67.222.222,208.67.220.220 allow-remote-requests=yes
  3. /ip firewall nat
  4. add chain=dstnat action=dst-nat to-addresses=192.168.10.1 to-ports=53 protocol=tcp dst-port=53
  5. add chain=dstnat action=dst-nat to-addresses=192.168.10.1 to-ports=53 protocol=udp dst-port=53
  6.  
  7. di klien
  8. /int sstp-client add name=userman connect-to=ipCHR user=RB951Ui-2HnD password=RB951Ui-2HnD add-default-route=no disabled=no comment=OpenDNS&Userman
  9. /ip fi fi add chain=input src-address-list=!private-lokal protocol=udp dst-port=53 action=drop comment=OpenDNS
  10. /ip fi fi move [find comment=OpenDNS] 0
  11. /ip fi na add chain=dstnat src-address-list=private-lokal protocol=udp dst-port=53 action=redirect to-ports=53 comment=OpenDNS
  12. /ip fi na add chain=srcnat action=masquerade out-interface=userman comment=OpenDNS
  13. /ip fi na move [find comment=OpenDNS] 0
  14. /ip ro add gateway=192.168.10.1 routing-mark=OpenDNS comment=OpenDNS
  15. /ip rou rule add action=lookup table=OpenDNS dst-address=208.67.222.222 comment=OpenDNS
  16. /ip rou rule add action=lookup table=OpenDNS dst-address=208.67.220.220 comment=OpenDNS
  17. /ip dns set servers=208.67.222.222,208.67.220.220 allow-remote-requests=yes
  18.  
  19.  
  20. buat ngapus
  21.  
  22. /ip fi add rem [find comment=OpenDNS]
  23. /ip fi fi rem [find comment=OpenDNS]
  24. /ip fi na rem [find comment=OpenDNS]
  25. /ip ro rem [find comment=OpenDNS]
  26. /ip rou rule rem [find comment=OpenDNS]
  27. /ip dns set servers=208.67.222.222,208.67.220.220 allow-remote-requests=yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement