Kumpulan Mikrotik Scripts Terbaru Dan Terlengkap

mikrotik scripts

Apa itu Mikrotik Scripts?

Domain Content

Domain Content Facebook

Berikut Daftar Domain Content Facebook

.facebook.com
.facebook.net
.fbcdn.net
.fbsbx.com
fb.com
fb.gg
fbwat.ch
messenger.com
m.me

Script Lengkap Untuk Raw Content Facebook:

/ip firewall raw
add action=add-dst-to-address-list address-list=FACEBOOK \
    address-list-timeout=1d chain=prerouting comment=FACEBOOK content=\
    .facebook.com dst-address-list=!lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=FACEBOOK \
    address-list-timeout=1d chain=prerouting content=.facebook.net \
    dst-address-list=!lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=FACEBOOK \
    address-list-timeout=1d chain=prerouting content=.fbcdn.net \
    dst-address-list=!lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=FACEBOOK \
    address-list-timeout=1d chain=prerouting content=.fbsbx.com \
    dst-address-list=!lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=FACEBOOK \
    address-list-timeout=1d chain=prerouting content=fb.com dst-address-list=\
    !lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=FACEBOOK \
    address-list-timeout=1d chain=prerouting content=fb.gg dst-address-list=\
    !lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=FACEBOOK \
    address-list-timeout=1d chain=prerouting content=fbwat.ch \
    dst-address-list=!lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=FACEBOOK \
    address-list-timeout=1d chain=prerouting content=messenger.com \
    dst-address-list=!lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=FACEBOOK \
    address-list-timeout=1d chain=prerouting content=m.me dst-address-list=\
    !lokal src-address-list=lokal

Domain Content Instagram

.instagram.com
.cdninstagram.com
/ip firewall raw
add action=add-dst-to-address-list address-list=INSTAGRAM \
    address-list-timeout=1d chain=prerouting comment=INSTAGRAM content=\
    .instagram.com dst-address-list=!lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=INSTAGRAM \
    address-list-timeout=1d chain=prerouting content=.cdninstagram.com \
    dst-address-list=!lokal src-address-list=lokal

Domain Content Marketplace

tokopedia.com
tokopedia.net
shopee.co.id
bukalapak.com
lazada.co.id
blibli.com
olx.co.id

Script Lengkap Untuk Raw Content Marketplace atau toko online:

/ip firewall raw
add action=add-dst-to-address-list address-list=MARKETPLACE \
    address-list-timeout=1d chain=prerouting comment=MARKETPLACE content=\
    tokopedia.com dst-address-list=!lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=MARKETPLACE \
    address-list-timeout=1d chain=prerouting content=tokopedia.net \
    dst-address-list=!lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=MARKETPLACE \
    address-list-timeout=1d chain=prerouting content=shopee.co.id \
    dst-address-list=!lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=MARKETPLACE \
    address-list-timeout=1d chain=prerouting content=bukalapak.com \
    dst-address-list=!lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=MARKETPLACE \
    address-list-timeout=1d chain=prerouting content=lazada.co.id \
    dst-address-list=!lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=MARKETPLACE \
    address-list-timeout=1d chain=prerouting content=blibli.com \
    dst-address-list=!lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=MARKETPLACE \
    address-list-timeout=1d chain=prerouting content=olx.co.id \
    dst-address-list=!lokal src-address-list=lokal

Domain Content Snack Video

.snackvideo.com
.myqcloud.com
.snackvideo.in
/ip firewall raw
add action=add-dst-to-address-list address-list=SNACKVIDEO \
    address-list-timeout=1d chain=prerouting comment=SNACKVIDEO content=\
    .snackvideo.com dst-address-list=!lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=SNACKVIDEO \
    address-list-timeout=1d chain=prerouting content=.myqcloud.com \
    dst-address-list=!lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=SNACKVIDEO \
    address-list-timeout=1d chain=prerouting content=.snackvideo.in \
    dst-address-list=!lokal src-address-list=lokal

Domain Content Tiktok

.tiktok.com
.tiktokv.com
.tiktokcdn.com
.byteoversea.com
.ibyteimg.com
.ibytedtos.com
.myqcloud.com
/ip firewall raw
add action=add-dst-to-address-list address-list=TIKTOK address-list-timeout=\
    1d chain=prerouting comment=TIKTOK content=.tiktok.com dst-address-list=\
    !lokal src-address-list=lokal
add action=add-dst-to-address-list address-list=TIKTOK address-list-timeout=\
    1d chain=prerouting content=.tiktokv.com dst-address-list=!lokal \
    src-address-list=lokal
add action=add-dst-to-address-list address-list=TIKTOK address-list-timeout=\
    1d chain=prerouting content=.tiktokcdn.com dst-address-list=!lokal \
    src-address-list=lokal
add action=add-dst-to-address-list address-list=TIKTOK address-list-timeout=\
    1d chain=prerouting content=.byteoversea.com dst-address-list=!lokal \
    src-address-list=lokal
add action=add-dst-to-address-list address-list=TIKTOK address-list-timeout=\
    1d chain=prerouting content=.ibyteimg.com dst-address-list=!lokal \
    src-address-list=lokal
add action=add-dst-to-address-list address-list=TIKTOK address-list-timeout=\
    1d chain=prerouting content=.ibytedtos.com dst-address-list=!lokal \
    src-address-list=lokal
add action=add-dst-to-address-list address-list=TIKTOK address-list-timeout=\
    1d chain=prerouting content=.myqcloud.com dst-address-list=!lokal \
    src-address-list=lokal

Domain Content Twitter

.twitter.com
.twimg.com
t.co
/ip firewall raw
add action=add-dst-to-address-list address-list=TWITTER address-list-timeout=\
    1d chain=prerouting comment=TWITTER content=.twitter.com \
    dst-address-list=!lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=TWITTER address-list-timeout=\
    1d chain=prerouting content=.twimg.com dst-address-list=!lokal \
    src-address-list=lokal

add action=add-dst-to-address-list address-list=TWITTER address-list-timeout=\
    1d chain=prerouting content=t.co dst-address-list=!lokal \
    src-address-list=lokal

Domain Content Youtube

.youtube.com
.ytimg.com
.googlevideo.com
youtu.be
yt3.ggpht.com
youtubei.googleapis.com
/ip firewall raw
add action=add-dst-to-address-list address-list=YOUTUBE address-list-timeout=\
    1d chain=prerouting comment=YOUTUBE content=.youtube.com \
    dst-address-list=!lokal src-address-list=lokal

add action=add-dst-to-address-list address-list=YOUTUBE address-list-timeout=\
    1d chain=prerouting content=.ytimg.com dst-address-list=!lokal \
    src-address-list=lokal

add action=add-dst-to-address-list address-list=YOUTUBE address-list-timeout=\
    1d chain=prerouting content=.googlevideo.com dst-address-list=!lokal \
    src-address-list=lokal

add action=add-dst-to-address-list address-list=YOUTUBE address-list-timeout=\
    1d chain=prerouting content=youtu.be dst-address-list=!lokal \
    src-address-list=lokal

add action=add-dst-to-address-list address-list=YOUTUBE address-list-timeout=\
    1d chain=prerouting content=yt3.ggpht.com dst-address-list=!lokal \
    src-address-list=lokal

add action=add-dst-to-address-list address-list=YOUTUBE address-list-timeout=\
    1d chain=prerouting content=youtubei.googleapis.com dst-address-list=\
    !lokal src-address-list=lokal

Mengirim Notifikasi Mikrotik Ke Bot Telegram

berikut ini adalah script untuk mengirimkan notifikasi ke bot telegram, silahkan sobat masukkan script ini di tool > netwatch

Contoh Script Notifikasi Ketika Dapat Terkoneksi Ke DNS Google

/tool fetch url="https://api.telegram.org/bot5708391154:AAFKJviidwIHiMicz-3RBLJS7Zp-FK9m7ww/sendMessage?chat_id=1666322534&text='DNS Google Connect Coy'" keep-result=no

Contoh Script Notifikasi Ketika Gagal Terkoneksi Ke DNS Google

/tool fetch url="https://api.telegram.org/bot5708391154:AAFKJviidwIHiMicz-3RBLJS7Zp-FK9m7ww/sendMessage?chat_id=1666322534&text='Gagal Terhubung Ke DNS Google'" keep-result=no

bot token = bot5708391154:AAFKJviidwIHiMicz-3RBLJS7Zp-FK9m7ww

Chat ID : 1666322534

Silahkan sobat ganti bot token dan chat id script mikrotik di atas dengan bot token dan chat id bot telegram yang sobat miliki

Tonton Juga Video : Cara Membuat Notifikasi Mikrotik Dengan BOT Telegram Cocok Untuk Pemula

Script Untuk Monitoring Trafick Router Mikrotik Ke BOT Telegram

di bawah ini adalah contoh script untuk mengirimkan notifikasi untuk memonitoring trafick download dan upload pada mikrotik router

Script untuk mendapatkan tanggal saat ini

:local CurDate [/system clock get date]

Script untuk mendapatkan jam saat ini

:local CurTime [/system clock get time]

Script untuk menampilkan Informasi Log

#Log
:log info "Kecepatan Download Lebih Dari 8 Mbps"

Script untuk mengirimkan notifikasi trafick monitoring dari mikrotik ke bot telegram

/tool fetch url="https://api.telegram.org/bot5708391154:AAFKJviidwIHiMicz-3RBLJS7Zp-FK9m7ww/sendMessage?chat_id=1666322534&text='Traffick Internet Di $CurDate $CurTime Sudah Lebih Dari 8 Mbps Gan" keep-result=no

Tonton Juga Video : Cara Monitoring Trafick Download Dan Upload Mikrotik Menggunakan Bot Telegram

Monitoring Trafick Download Dan Upload Mikrotik Menggunakan Bot Telegram

Load Balance PCC

Load Balance PCC 2 ISP

Load Balance PCC 2 ISP adalah metode penyimbangan dua koneksi atau lebih internet gateway

#=====================================================
# https://midteknologi.com
#=====================================================

/interface
set ether1 comment=Modem-1
set ether2 comment=Modem-2
set ether3 comment=Lan

/ip firewall address-list
add address=192.168.0.0/16 list=IP-LOKAL
add address=172.16.0.0/12 list=IP-LOKAL
add address=10.0.0.0/8 list=IP-LOKAL

/ ip address
add address=192.168.9.9/24 network=192.168.9.0 broadcast=192.168.9.255 interface=ether1
add address=192.168.8.2/24 network=192.168.8.0 broadcast=192.168.8.255 interface=ether2
add address=192.168.10.1/24 network=192.168.10.0 broadcast=192.168.10.255 interface=ether3

/ip route
add check-gateway=ping distance=1 gateway="192.168.9.1" routing-mark="to-ether1"
add check-gateway=ping distance=1 gateway="192.168.8.1" routing-mark="to-ether2"
add check-gateway=ping distance=1 gateway="192.168.9.1"
add check-gateway=ping distance=2 gateway="192.168.8.1"

/ip dns set cache-max-ttl=1d cache-size=2048KiB servers=8.8.8.8,8.8.4.4

/ip firewall nat
add chain=srcnat out-interface="ether1" action=masquerade
add chain=srcnat out-interface="ether2" action=masquerade

/ip firewall mangle
add action=mark-connection chain=input in-interface="ether1" new-connection-mark="cm-ether1" passthrough=yes
add action=mark-connection chain=input in-interface="ether2" new-connection-mark="cm-ether2" passthrough=yes
add action=mark-routing chain=output connection-mark="cm-ether1" new-routing-mark="to-ether1" passthrough=yes
add action=mark-routing chain=output connection-mark="cm-ether2" new-routing-mark="to-ether2" passthrough=yes

add action=mark-connection chain=prerouting dst-address-list=!IP-LOKAL dst-address-type=!local new-connection-mark="cm-ether1" passthrough=yes per-connection-classifier=both-addresses-and-ports:2/0 src-address-list=IP-LOKAL

add action=mark-connection chain=prerouting dst-address-list=!IP-LOKAL dst-address-type=!local new-connection-mark="cm-ether2" passthrough=yes per-connection-classifier=both-addresses-and-ports:2/1 src-address-list=IP-LOKAL

add action=mark-routing chain=prerouting connection-mark="cm-ether1" dst-address-list=!IP-LOKAL new-routing-mark="to-ether1" passthrough=yes src-address-list=IP-LOKAL

add action=mark-routing chain=prerouting connection-mark="cm-ether2" dst-address-list=!IP-LOKAL new-routing-mark="to-ether2" passthrough=yes src-address-list=IP-LOKAL

Load Balance PCC 3 ISP

Load Balance PCC 3 ISP adalah metode penyimbangan dua koneksi atau lebih internet gateway

#=====================================================
# https://midteknologi.com
#=====================================================

/interface
set ether1 comment=Modem-1
set ether2 comment=Modem-2
set ether3 comment=Modem-3
set ether4 comment=Lan

/ip firewall address-list
add address=192.168.0.0/16 list=IP-LOKAL
add address=172.16.0.0/12 list=IP-LOKAL
add address=10.0.0.0/8 list=IP-LOKAL

/ ip address
add address=192.168.9.9/24 network=192.168.9.0 broadcast=192.168.9.255 interface=ether1
add address=192.168.8.2/24 network=192.168.8.0 broadcast=192.168.8.255 interface=ether2
add address=192.168.10.2/24 network=192.168.10.0 broadcast=192.168.8.255 interface=ether3
add address=192.168.11.1/24 network=192.168.11.0 broadcast=192.168.10.255 interface=ether4

/ip route
add check-gateway=ping distance=1 gateway="192.168.9.1" routing-mark="to-ether1"
add check-gateway=ping distance=1 gateway="192.168.8.1" routing-mark="to-ether2"
add check-gateway=ping distance=1 gateway="192.168.10.1" routing-mark="to-ether3"
add check-gateway=ping distance=1 gateway="192.168.9.1"
add check-gateway=ping distance=2 gateway="192.168.8.1"
add check-gateway=ping distance=3 gateway="192.168.10.1"

/ip dns set cache-max-ttl=1d cache-size=2048KiB servers=8.8.8.8,8.8.4.4

/ip firewall nat
add chain=srcnat out-interface="ether1" action=masquerade
add chain=srcnat out-interface="ether2" action=masquerade
add chain=srcnat out-interface="ether3" action=masquerade

/ip firewall mangle
add action=mark-connection chain=input in-interface="ether1" new-connection-mark="cm-ether1" passthrough=yes
add action=mark-connection chain=input in-interface="ether2" new-connection-mark="cm-ether2" passthrough=yes
add action=mark-connection chain=input in-interface="ether3" new-connection-mark="cm-ether3" passthrough=yes

add action=mark-routing chain=output connection-mark="cm-ether1" new-routing-mark="to-ether1" passthrough=yes
add action=mark-routing chain=output connection-mark="cm-ether2" new-routing-mark="to-ether2" passthrough=yes
add action=mark-routing chain=output connection-mark="cm-ether3" new-routing-mark="to-ether3" passthrough=yes

add action=mark-connection chain=prerouting dst-address-list=!IP-LOKAL dst-address-type=!local new-connection-mark="cm-ether1" passthrough=yes per-connection-classifier=both-addresses-and-ports:2/0 src-address-list=IP-LOKAL

add action=mark-connection chain=prerouting dst-address-list=!IP-LOKAL dst-address-type=!local new-connection-mark="cm-ether2" passthrough=yes per-connection-classifier=both-addresses-and-ports:2/1 src-address-list=IP-LOKAL

add action=mark-connection chain=prerouting dst-address-list=!IP-LOKAL dst-address-type=!local new-connection-mark="cm-ether3" passthrough=yes per-connection-classifier=both-addresses-and-ports:2/2 src-address-list=IP-LOKAL

add action=mark-routing chain=prerouting connection-mark="cm-ether1" dst-address-list=!IP-LOKAL new-routing-mark="to-ether1" passthrough=yes src-address-list=IP-LOKAL

add action=mark-routing chain=prerouting connection-mark="cm-ether2" dst-address-list=!IP-LOKAL new-routing-mark="to-ether2" passthrough=yes src-address-list=IP-LOKAL

add action=mark-routing chain=prerouting connection-mark="cm-ether3" dst-address-list=!IP-LOKAL new-routing-mark="to-ether3" passthrough=yes src-address-list=IP-LOKAL

Leave a Reply

Your email address will not be published.

ten − six =

Kirim File Besar Up To 10 GB Gratis
Coba Sekarang
Kirim File Ukuran Besar
Up To 10 GB Gratis
Coba Sekarang
Get our best healthy recipes and nutrition tips straight to your inbox!
Get Healthy Now! Extra Health Updates
Sign Up
Your privacy is important to us
Dapatkan Tutorial Mikrotik Setiap Minggu
Subscribe