Skip to content

Instantly share code, notes, and snippets.

@adinata-id
Created October 1, 2022 06:50
Show Gist options
  • Save adinata-id/1ef67236956dddad3d57635552f4b35d to your computer and use it in GitHub Desktop.
Save adinata-id/1ef67236956dddad3d57635552f4b35d to your computer and use it in GitHub Desktop.
Melihat Aktivitas Browsing Mikrotik
/ip firewall address-list
add address=192.168.17.0/24 list=IP-LOKAL
/ip firewall raw
#Facebook
add action=add-dst-to-address-list address-list=Facebook address-list-timeout=12h chain=prerouting comment=Facebook content=.facebook.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Facebook address-list-timeout=12h chain=prerouting content=.facebook.net dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Facebook address-list-timeout=12h chain=prerouting content=fb.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Facebook address-list-timeout=12h chain=prerouting content=.fbcdn.net dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Facebook address-list-timeout=12h chain=prerouting content=.fbsbx.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Facebook address-list-timeout=12h chain=prerouting content=fb.gg dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Facebook address-list-timeout=12h chain=prerouting content=fbwat.ch dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Facebook address-list-timeout=12h chain=prerouting content=messenger.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Facebook address-list-timeout=12h chain=prerouting content=m.me dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
#YouTube
add action=add-dst-to-address-list address-list=YouTube address-list-timeout=12h chain=prerouting comment=YouTube content=.youtube.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=YouTube address-list-timeout=12h chain=prerouting content=.googlevideo.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=YouTube address-list-timeout=12h chain=prerouting content=.ytimg.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=YouTube address-list-timeout=12h chain=prerouting content=.youtu.be dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=YouTube address-list-timeout=12h chain=prerouting content=.youtube.googleapis.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
#Instagram
add action=add-dst-to-address-list address-list=Instagram address-list-timeout=12h chain=prerouting comment=Instagram content=.instagram.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Instagram address-list-timeout=12h chain=prerouting content=.cdninstagram.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
#Twitter
add action=add-dst-to-address-list address-list=Twitter address-list-timeout=12h chain=prerouting comment=Twitter content=twitter.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Twitter address-list-timeout=12h chain=prerouting content=.twitter.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Twitter address-list-timeout=12h chain=prerouting content=.twimg.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Twitter address-list-timeout=12h chain=prerouting content=t.co dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
#Tiktok
add action=add-dst-to-address-list address-list=Tiktok address-list-timeout=12h chain=prerouting comment=Tiktok content=.tiktok.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Tiktok address-list-timeout=12h chain=prerouting content=.tiktokv.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Tiktok address-list-timeout=12h chain=prerouting content=.tiktokcdn.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Tiktok address-list-timeout=12h chain=prerouting content=.byteoversea.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Tiktok address-list-timeout=12h chain=prerouting content=.ibyteimg.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Tiktok address-list-timeout=12h chain=prerouting content=.ibytedtos.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
add action=add-dst-to-address-list address-list=Tiktok address-list-timeout=12h chain=prerouting content=.myqcloud.com dst-address-list=!IP-LOKAL src-address-list=IP-LOKAL
/ip firewall filter
add action=log chain=forward comment=Facebook connection-state=new dst-address-list=Facebook log-prefix=Facebook src-address-list=IP-LOKAL
add action=log chain=forward comment=YouTube connection-state=new dst-address-list=YouTube log-prefix=YouTube src-address-list=IP-LOKAL
add action=log chain=forward comment=Instagram connection-state=new dst-address-list=Instagram log-prefix=Instagram src-address-list=IP-LOKAL
add action=log chain=forward comment=Twitter connection-state=new dst-address-list=Twitter log-prefix=Twitter src-address-list=IP-LOKAL
add action=log chain=forward comment=Tiktok connection-state=new dst-address-list=Tiktok log-prefix=Tiktok src-address-list=IP-LOKAL
add action=log chain=forward comment=Other connection-state=new dst-address-list=!IP-LOKAL log-prefix=Other src-address-list=IP-LOKAL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment