Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #DNS SEHAT INDONESA
- #AUTO SWITCH KE DNS-OPEN JIKA DNS SEHAT LINK DOWN
- #COPY DAN PASTE KE TERMINAL WINBOX
- /ip firewall address-list
- add address=10.0.0.0/8 list=private-lokal
- add address=172.16.0.0/12 list=private-lokal
- add address=192.168.0.0/16 list=private-lokal
- /ip firewall filter
- add action=drop chain=input comment=dns-flood dst-port=53,5353 protocol=tcp src-address-list=!private-lokal
- add action=drop chain=input comment=dns-flood dst-port=53,5353 protocol=udp src-address-list=!private-lokal
- /ip dns
- set allow-remote-requests=no servers=103.80.80.248,103.80.80.249
- /ip firewall nat
- add action=dst-nat chain=dstnat comment=dns-open src-address-list=private-lokal disabled=yes dst-port=53,5353 nth=4,1 protocol=tcp to-addresses=208.67.222.222 to-ports=5353
- add action=dst-nat chain=dstnat comment=dns-open src-address-list=private-lokal disabled=yes dst-port=53,5353 nth=2,1 protocol=tcp to-addresses=208.67.220.220 to-ports=5353
- add action=dst-nat chain=dstnat comment=dns-open src-address-list=private-lokal disabled=yes dst-port=53,5353 nth=3,1 protocol=udp to-addresses=208.67.222.222 to-ports=5353
- add action=dst-nat chain=dstnat comment=dns-open src-address-list=private-lokal disabled=yes dst-port=53,5353 nth=1,1 protocol=udp to-addresses=208.67.220.220 to-ports=5353
- add action=dst-nat chain=dstnat comment=dns-block src-address-list=private-lokal disabled=no dst-port=53,5353 nth=4,1 protocol=tcp to-addresses=103.80.80.248 to-ports=5353
- add action=dst-nat chain=dstnat comment=dns-block src-address-list=private-lokal disabled=no dst-port=53,5353 nth=2,1 protocol=tcp to-addresses=103.80.80.249 to-ports=5353
- add action=dst-nat chain=dstnat comment=dns-block src-address-list=private-lokal disabled=no dst-port=53,5353 nth=3,1 protocol=udp to-addresses=103.80.80.248 to-ports=5353
- add action=dst-nat chain=dstnat comment=dns-block src-address-list=private-lokal disabled=no dst-port=53,5353 nth=1,1 protocol=udp to-addresses=103.80.80.249 to-ports=5353
- /tool netwatch
- add down-script="/ip firewall nat enable [find to-addresses=208.67.222.222 comment=dns-open]\r\
- \n/ip firewall nat enable [find to-addresses=208.67.220.220 comment=dns-open]" host=103.80.80.248 up-script=\
- "/ip firewall nat disable [find to-addresses=208.67.222.222 comment=dns-open]\r\
- \n/ip firewall nat disable [find to-addresses=208.67.220.220 comment=dns-open]"
- add down-script="/ip firewall nat enable [find to-addresses=208.67.222.222 comment=dns-open]\r\
- \n/ip firewall nat enable [find to-addresses=208.67.220.220 comment=dns-open]" host=103.80.80.249 up-script=\
- "/ip firewall nat disable [find to-addresses=208.67.222.222 comment=dns-open]\r\
- \n/ip firewall nat disable [find to-addresses=208.67.220.220 comment=dns-open]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement