Blokir iklan melalui mikrotik
kode script berikut untuk memblokir iklan, settingnya sangat mudah, cukup copy paste.
Pastikan terlebih dahulu dhcp client yang dikonfigurasikan tidak mengaktipkan use peer dns, bila aktip secara otomatis proses blokir iklan tidak ada gunanya.
silahkan copy paste kode dibawah di mikotik anda.
# jika ada, hapus settingan lama /tool netwatch remove [find comment="MyTunnel-DNS-Blokir-Iklan"]/ip firewall nat remove [find comment="MyTunnel-DNS-Blokir-Iklan"]/ip route remove [find comment="MyTunnel-DNS-Blokir-Iklan"]/interface ovpn-client remove [find comment="MyTunnel-DNS-Blokir-Iklan"]/interface sstp-client remove [find comment="MyTunnel-DNS-Blokir-Iklan"]/interface l2tp-client remove [find comment="MyTunnel-DNS-Blokir-Iklan"]/interface pptp-client remove [find comment="MyTunnel-DNS-Blokir-Iklan"]# pasang ovpn-client /interface sstp-client add connect-to=194.233.71.185 disabled=no name=MyTunnel-DNS password=tunnel.my.id profile=default-encryption user=dns comment="MyTunnel-DNS Blokir Iklan"# pasang nat ke vpn /ip firewall nat add chain=srcnat out-interface=MyTunnel-DNS action=masquerade comment="MyTunnel-DNS Blokir Iklan" # route ip khusus dns ke vpn /ip route add check-gateway=ping distance=1 dst-address=94.140.14.14/32 gateway=10.0.32.1 comment="MyTunnel-DNS Blokir Iklan"add check-gateway=ping distance=1 dst-address=94.140.15.15/32 gateway=10.0.32.1 comment="MyTunnel-DNS Blokir Iklan"# netwatch agar vpn tidak dc /tool netwatch add host=10.0.32.1 comment="MyTunnel-DNS Blokir Iklan"# hapus cache dns di mikrotik /ip dns cache flush # set dns mikrotik /ip dns set allow-remote-requests=yes servers=94.140.14.14,94.140.15.15 # done
kode diatas diambil dari alamat websites https://tunnel.my.id/download/vpndns.txt
kode yang digunakan hanya dari alamat https://tunnel.my.id/download/vpndns.adguard.txt
Comments