Skip to content

Instantly share code, notes, and snippets.

@adinata-id
Created January 31, 2022 05:23
Show Gist options
  • Save adinata-id/46af69077eec2b4c6265ba9fc678c61a to your computer and use it in GitHub Desktop.
Save adinata-id/46af69077eec2b4c6265ba9fc678c61a to your computer and use it in GitHub Desktop.
Mangle Untuk Static Route Mikrotik
# jan/31/2022 12:23:03 by RouterOS 6.49.2
# software id = AD68-8HRQ
#
# model = RB4011iGS+
# serial number = F0260E809EDC
/ip firewall mangle
add action=mark-connection chain=prerouting comment=ICMP new-connection-mark=\
icmp-c passthrough=yes protocol=icmp
add action=mark-packet chain=prerouting connection-mark=icmp-c \
new-packet-mark=paket-icmp passthrough=no protocol=icmp
add action=add-dst-to-address-list address-list=zoom_ip address-list-timeout=\
none-dynamic chain=prerouting comment=ZOOM dst-address-list=!zoom_ip \
dst-port=3478,3479,5090,5091,8801-8810 protocol=tcp
add action=add-dst-to-address-list address-list=zoom_ip chain=prerouting \
dst-address-list=!zoom_ip dst-port=3478,3479,5090,5091,8801-8810 \
protocol=udp
add action=mark-connection chain=prerouting dst-port=\
3478,3479,5090,5091,8801-8810 new-connection-mark=koneksi_zoom \
passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting dst-port=\
3478,3479,5090,5091,8801-8810 new-connection-mark=koneksi_zoom \
passthrough=yes protocol=udp
add action=mark-connection chain=prerouting dst-address-list=zoom_ip \
dst-port=80,443 new-connection-mark=koneksi_zoom passthrough=yes \
protocol=tcp
add action=mark-packet chain=forward connection-mark=koneksi_zoom \
new-packet-mark=paket_zoom passthrough=no
add action=mark-connection chain=prerouting comment=MP dst-address-list=\
MARKETPLACE new-connection-mark=marketplace passthrough=yes \
src-address-list=lokal
add action=mark-routing chain=prerouting connection-mark=marketplace \
new-routing-mark=R-Marketplace passthrough=no src-address-list=lokal
add action=mark-connection chain=prerouting comment=TIKTOK dst-address-list=\
TIKTOK new-connection-mark=tiktok passthrough=yes src-address-list=lokal
add action=mark-routing chain=prerouting connection-mark=tiktok \
new-routing-mark=R-Tiktok passthrough=no src-address-list=lokal
add action=mark-connection chain=prerouting comment=FACEBOOK \
dst-address-list=FACEBOOK new-connection-mark=facebook passthrough=yes \
src-address-list=lokal
add action=mark-routing chain=prerouting connection-mark=facebook \
new-routing-mark=R-Facebook passthrough=no src-address-list=lokal
add action=mark-connection chain=prerouting comment=INSTAGRAM \
dst-address-list=INSTAGRAM new-connection-mark=instagram passthrough=yes \
src-address-list=lokal
add action=mark-routing chain=prerouting connection-mark=instagram \
new-routing-mark=R-Instagram passthrough=no src-address-list=lokal
add action=mark-connection chain=prerouting comment=TWITTER dst-address-list=\
TWITTER new-connection-mark=twitter passthrough=yes src-address-list=\
lokal
add action=mark-routing chain=prerouting connection-mark=twitter \
new-routing-mark=R-Twitter passthrough=no src-address-list=lokal
add action=mark-connection chain=prerouting comment=YOUTUBE dst-address-list=\
YOUTUBE new-connection-mark=youtube passthrough=yes src-address-list=\
lokal
add action=mark-routing chain=prerouting connection-mark=youtube \
new-routing-mark=R-Youtube passthrough=no src-address-list=lokal
add action=mark-connection chain=prerouting comment="YOUTUBE VIA Layer 7" \
dst-address-list=Youtube_L7 new-connection-mark=youtube_l7 passthrough=\
yes src-address-list=lokal
add action=mark-routing chain=prerouting connection-mark=youtube_l7 \
new-routing-mark=R-Youtube_l7 passthrough=no src-address-list=lokal
add action=mark-connection chain=prerouting comment=SNACKVIDEO \
dst-address-list=SNACKVIDEO new-connection-mark=snackvideo passthrough=\
yes src-address-list=lokal
add action=mark-routing chain=prerouting connection-mark=snackvideo \
new-routing-mark=R-SnackVideo passthrough=no src-address-list=lokal
add action=mark-connection chain=forward comment="LIMIT DOWNLOAD" \
dst-address=192.168.200.0/24 layer7-protocol="Limit Down Iso" \
new-connection-mark=Limit_Download_Conn passthrough=yes
add action=mark-connection chain=forward dst-address=192.168.200.0/24 \
layer7-protocol="Limit Down Zip" new-connection-mark=Limit_Download_Conn \
passthrough=yes
add action=mark-connection chain=forward dst-address=192.168.200.0/24 \
layer7-protocol="Limit Down Video" new-connection-mark=\
Limit_Download_Conn passthrough=yes
add action=mark-connection chain=forward dst-address=192.168.200.0/24 \
layer7-protocol="Limit Down Software" new-connection-mark=\
Limit_Download_Conn passthrough=yes
add action=mark-connection chain=forward dst-address=192.168.200.0/24 \
layer7-protocol="Limit Down Rar" new-connection-mark=Limit_Download_Conn \
passthrough=yes
add action=mark-connection chain=forward dst-address=192.168.200.0/24 \
layer7-protocol="Limit Down Music" new-connection-mark=\
Limit_Download_Conn passthrough=yes
add action=mark-packet chain=forward connection-mark=Limit_Download_Conn \
new-packet-mark="Limit Download" passthrough=no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment