Kumpulan Mikrotik Scripts Terbaru 2024

 

Apa itu Mikrotik Scripts?

Mikrotik Scripts adalah kumpulan syntax-syntax mikrotik console yang memiliki tujuan tertentu seperti memblokir, membatasi trafick tertentu pada router mikrotik, dengan menggunakan mikrotik scripts proses konfigurasi atau setting router mikrotik menjadi lebih mudah dan cepat

Apa Saja Sih,Manfaat Mikrotik Script?

Berikut adalah beberapa manfaat utama dari Mikrotik Script:

  1. Otomatisasi tugas: Dengan menggunakan Mikrotik Script, administrator jaringan dapat mengotomatisasi tugas-tugas yang repetitif dan memakan waktu, seperti backup konfigurasi, update firmware, dan lain sebagainya.
  2. Mengatasi masalah: Mikrotik Script memungkinkan administrator jaringan untuk membuat skrip yang dapat menyelesaikan masalah jaringan secara otomatis, seperti restart otomatis pada interface yang terputus.
  3. Konfigurasi jaringan yang kompleks: Dalam konfigurasi jaringan yang kompleks, Mikrotik Script dapat membantu administrator jaringan dalam membuat skrip yang dapat mengatur konfigurasi jaringan secara efisien dan konsisten.
  4. Manajemen jaringan yang lebih baik: Dengan menggunakan Mikrotik Script, administrator jaringan dapat membuat skrip yang membantu dalam manajemen jaringan yang lebih baik, seperti monitoring jaringan dan memberikan notifikasi jika terjadi masalah.
  5. Fleksibilitas: Mikrotik Script memberikan fleksibilitas kepada administrator jaringan untuk membuat skrip yang disesuaikan dengan kebutuhan spesifik jaringan dan bisnis.

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 Bank Mandiri

.bankmandiri.co.id
/ip firewall raw
add action=add-dst-to-address-list address-list=BANK-MANDIRI address-list-timeout=\
    1d chain=prerouting comment=BANK MANDIRI content=.bankmandiri.co.id 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 CAPCUT

.capcut.com
.byteoversea.com
.byteimg.com
.bytevcloudapi.com
/ip firewall raw
add action=add-dst-to-address-list address-list=CAPCUT address-list-timeout=\
    1d chain=prerouting comment=CAPCUT content=.capcut.com dst-address-list=\
    !IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=CAPCUT address-list-timeout=\
    1d chain=prerouting content=.byteoversea.com dst-address-list=!IP-LOKAL \
    src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=CAPCUT address-list-timeout=\
    1d chain=prerouting content=.byteimg.com dst-address-list=!IP-LOKAL \
    src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=CAPCUT address-list-timeout=\
    1d chain=prerouting content=.bytevcloudapi.com dst-address-list=!IP-LOKAL \
    src-address-list=IP-LOKAL

Domain Content Kapwing

.kapwing.com
/ip firewall raw
add action=add-dst-to-address-list address-list=KAPWING address-list-timeout=\
    1d chain=prerouting comment=KAPWING content=.kapwing.com \
    dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL

Domain Content Canva

.canva.com
/ip firewall raw
add action=add-dst-to-address-list address-list=CANVA address-list-timeout=\
    1d chain=prerouting comment=CANVA content=.canva.com \
    dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL

Domain Content Titan Mail

.flockmail.com
.titan.email
/ip firewall raw
add action=add-dst-to-address-list address-list=TITAN-MAIL address-list-timeout=\
    1d chain=prerouting comment=TITAN-MAIL content=.flockmail.com \
    dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL

add action=add-dst-to-address-list address-list=TITAN-MAIL address-list-timeout=\
    1d chain=prerouting comment=TITAN-MAIL content=.titan.email \
    dst-address-list=!IP-LOKAL src-address-list=IP-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

Script Install Mikrotik CHR di VPS

berikut adalah script untuk menginstall mikrotik chr di vps

wget https://download.mikrotik.com/routeros/6.46.5/chr-6.46.5.img.zip -O chr.img.zip && \
gunzip -c chr.img.zip > chr.img && \
echo u > /proc/sysrq-trigger && \
dd if=chr.img bs=1024 of=/dev/sda

Yang Perlu di ganti adalah partisi di barisi terakhir /dev/sda silahkan sesuaikan dengan partisi vps anda, untuk cara cek partisi di vps gunakan perintah

sudo fdisk -l

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

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

Related : Kumpulan Mikrotik Scripts Terbaru 2024

0 Komentar untuk "Kumpulan Mikrotik Scripts Terbaru 2024"