lapag ko na lang to pag aralan nyo na lang
single isp config 15 mbps connection adjust nyo n lng
. pag sinipag ulit portless naman
***BRIDGE NAME MUST BE bridge*** para hindi mag error sa terminal
/ip firewall mangle
add action=mark-connection chain=prerouting comment="ONLINE GAME PORTS" \
dst-port=5000-8079,8081-10045,10047-10322,10324-50000 \
new-connection-mark=game-cm passthrough=yes protocol=tcp \
src-address-list=connected
add action=mark-connection chain=prerouting dst-port=\
5000-8079,8081-10045,10047-10322,10324-50000 new-connection-mark=game-cm \
passthrough=yes protocol=udp src-address-list=connected
add action=mark-packet chain=prerouting connection-mark=game-cm \
new-packet-mark=gpkt passthrough=no
add action=mark-packet chain=postrouting connection-bytes=0-1000000 \
connection-mark=game-cm new-packet-mark=gaming-packets packet-size=0-100 \
passthrough=no
add action=mark-connection chain=prerouting comment=STREAMING \
layer7-protocol=videostream new-connection-mark=Stream-cm passthrough=yes \
src-address-list=connected
add action=mark-packet chain=prerouting connection-mark=Stream-cm \
new-packet-mark=spkt passthrough=no
add action=mark-connection chain=prerouting comment=SocialMedia \
layer7-protocol=facebook new-connection-mark=sm-cm passthrough=yes \
src-address-list=connected
add action=mark-packet chain=prerouting connection-mark=sm-cm \
new-packet-mark=smpkt passthrough=no
add action=mark-connection chain=prerouting comment="BROWSING http" dst-port=\
80,8080 new-connection-mark=browsing-cmhttp passthrough=yes protocol=tcp \
src-address-list=connected
add action=mark-connection chain=prerouting dst-port=80,8080 \
new-connection-mark=browsing-cmhttp passthrough=yes protocol=udp \
src-address-list=connected
add action=mark-packet chain=prerouting connection-mark=browsing-cmhttp \
new-packet-mark=bpkthttp passthrough=no
add action=mark-connection chain=prerouting comment="BROWSING https" \
dst-port=443 new-connection-mark=browsing-cm passthrough=yes protocol=tcp \
src-address-list=connected
add action=mark-connection chain=prerouting dst-port=443 new-connection-mark=\
browsing-cm passthrough=yes protocol=udp src-address-list=connected
add action=mark-packet chain=prerouting connection-mark=browsing-cm \
new-packet-mark=bpkt passthrough=no
add action=mark-connection chain=prerouting comment=OTHERS connection-mark=\
no-mark new-connection-mark=others-cm passthrough=yes src-address-list=\
connected
add action=mark-packet chain=prerouting connection-mark=others-cm \
new-packet-mark=others passthrough=no
/ip firewall layer7-protocol
add name=videostream regexp=videoplayback|video
add name=youtube regexp=""^.*get.+\\\\.(c.youtube.com|cdn.dailymotion.com|met\
acafe.com|mccont.com).*\\\$""
add name=Stream regexp="^.+(youtube|dailymotion|metacafe|mccont).*\$"
add name=streaming regexp=videoplayback|video
add name=SocialMedia regexp="^.+(facebook.com|twitter|linkedin|pinterest|tumbl\
r|instagram|VK|flickr|vine|meetup|tagged|ask.fm|meetme|classm).*\$"
add name=layer7-bittorrent-exp regexp="^(\\x13bittorrent protocol|azver\\x01\$\
|get /scrape\\\?info_hash=get /announce\\\?info_hash=|get /client/bitcomet\
/|GET /data\\\?fid=)|d1:ad2:id20:|\\x08'7P\\)[RP]"
add name=block regexp="^.+(sex|scandal|xxx|p**n).*\$"
add name=torrent-dns regexp="^.+(torrent|thepiratebay|isohunt|demonii|bittorre\
nt|entertane|demonoid|btjunkie|mininova|flixflux|torrentz|vertor|h33t|btsc\
ene|bitunity|bittoxic|thunderbytes|entertane|zoozle|vcdq|bitnova|bitsoup|m\
eganova|fulldls|btbot|flixflux|seedpeer|fenopy|gpirate|utorrent|commonbits\
).*\$"
add name=torrent-www regexp="^.*(get|GET).+(torrent|thepiratebay|isohunt|enter\
tane|demonoid|btjunkie|mininova|flixflux|torrentz|vertor|h33t|btscene|bitu\
nity|bittoxic|thunderbytes|entertane|zoozle|vcdq|bitnova|bitsoup|meganova|\
fulldls|btbot|flixflux|seedpeer|fenopy|gpirate|commonbits).*\$"
add name=torrentsites regexp="^.*(get|GET).+(torrent|thepiratebay|isohunt|ente\
rtane|demonoid|btjunkie|mininova|flixflux|torrentz|vertor|h33t|btscene|bit\
unity|bittoxic|thunderbytes|entertane|zoozle|vcdq|bitnova|bitsoup|eganova|\
fulldls|btbot|flixflux|seedpeer|fenopy|gpirate|commonbits).*\$"
add name=facebook regexp="^.+(facebook.com).*\$"
/queue tree
add limit-at=500k max-limit=6M name=Browsing-Streaming parent=bridge queue=\
synchronous-default
add name=Facebook packet-mark=smpkt parent=Browsing-Streaming priority=4 \
queue=synchronous-default
add name=Streaming packet-mark=spkt parent=Browsing-Streaming priority=5 \
queue=synchronous-default
add name="Browsing https" packet-mark=bpkt parent=Browsing-Streaming \
priority=6 queue=synchronous-default
add limit-at=100k max-limit=3M name="Browsing-Streaming up" parent=ether1 \
queue=synchronous-default
add name="Facebook up" packet-mark=smpkt parent="Browsing-Streaming up" \
priority=4 queue=synchronous-default
add name="Streaming up" packet-mark=spkt parent="Browsing-Streaming up" \
priority=5 queue=synchronous-default
add name="Browsing https up" packet-mark=bpkt parent="Browsing-Streaming up" \
priority=6 queue=synchronous-default
add comment=DOWNLOAD limit-at=500k max-limit=5M name=\
"High Priority Traffic down" parent=bridge priority=1 queue=\
synchronous-default
add comment=UPLOAD limit-at=100k max-limit=3M name="High Priority Traffic up" \
parent=ether1 priority=1 queue=synchronous-default
add name="Browsing http" packet-mark=bpkthttp parent=Browsing-Streaming \
priority=6 queue=synchronous-default
add name="Browsing http up" packet-mark=bpkthttp parent=\
"Browsing-Streaming up" priority=6 queue=synchronous-default
add name="all game packets" packet-mark=gaming-packets parent=\
"High Priority Traffic down" priority=1 queue=synchronous-default
add name="Game Traffic" packet-mark=gpkt parent="High Priority Traffic down" \
priority=2 queue=synchronous-default
add name="No mark traffic" packet-mark=others parent=\
"High Priority Traffic down" priority=3 queue=synchronous-default
add name="all game packets up" packet-mark=gaming-packets parent=\
"High Priority Traffic up" priority=1 queue=synchronous-default
add name="Game Traffic up" packet-mark=gpkt parent="High Priority Traffic up" \
priority=2 queue=synchronous-default
add name="No mark traffic up" packet-mark=others parent=\
"High Priority Traffic up" priority=3 queue=synchronous-default
single isp config 15 mbps connection adjust nyo n lng
. pag sinipag ulit portless naman
***BRIDGE NAME MUST BE bridge*** para hindi mag error sa terminal
/ip firewall mangle
add action=mark-connection chain=prerouting comment="ONLINE GAME PORTS" \
dst-port=5000-8079,8081-10045,10047-10322,10324-50000 \
new-connection-mark=game-cm passthrough=yes protocol=tcp \
src-address-list=connected
add action=mark-connection chain=prerouting dst-port=\
5000-8079,8081-10045,10047-10322,10324-50000 new-connection-mark=game-cm \
passthrough=yes protocol=udp src-address-list=connected
add action=mark-packet chain=prerouting connection-mark=game-cm \
new-packet-mark=gpkt passthrough=no
add action=mark-packet chain=postrouting connection-bytes=0-1000000 \
connection-mark=game-cm new-packet-mark=gaming-packets packet-size=0-100 \
passthrough=no
add action=mark-connection chain=prerouting comment=STREAMING \
layer7-protocol=videostream new-connection-mark=Stream-cm passthrough=yes \
src-address-list=connected
add action=mark-packet chain=prerouting connection-mark=Stream-cm \
new-packet-mark=spkt passthrough=no
add action=mark-connection chain=prerouting comment=SocialMedia \
layer7-protocol=facebook new-connection-mark=sm-cm passthrough=yes \
src-address-list=connected
add action=mark-packet chain=prerouting connection-mark=sm-cm \
new-packet-mark=smpkt passthrough=no
add action=mark-connection chain=prerouting comment="BROWSING http" dst-port=\
80,8080 new-connection-mark=browsing-cmhttp passthrough=yes protocol=tcp \
src-address-list=connected
add action=mark-connection chain=prerouting dst-port=80,8080 \
new-connection-mark=browsing-cmhttp passthrough=yes protocol=udp \
src-address-list=connected
add action=mark-packet chain=prerouting connection-mark=browsing-cmhttp \
new-packet-mark=bpkthttp passthrough=no
add action=mark-connection chain=prerouting comment="BROWSING https" \
dst-port=443 new-connection-mark=browsing-cm passthrough=yes protocol=tcp \
src-address-list=connected
add action=mark-connection chain=prerouting dst-port=443 new-connection-mark=\
browsing-cm passthrough=yes protocol=udp src-address-list=connected
add action=mark-packet chain=prerouting connection-mark=browsing-cm \
new-packet-mark=bpkt passthrough=no
add action=mark-connection chain=prerouting comment=OTHERS connection-mark=\
no-mark new-connection-mark=others-cm passthrough=yes src-address-list=\
connected
add action=mark-packet chain=prerouting connection-mark=others-cm \
new-packet-mark=others passthrough=no
/ip firewall layer7-protocol
add name=videostream regexp=videoplayback|video
add name=youtube regexp=""^.*get.+\\\\.(c.youtube.com|cdn.dailymotion.com|met\
acafe.com|mccont.com).*\\\$""
add name=Stream regexp="^.+(youtube|dailymotion|metacafe|mccont).*\$"
add name=streaming regexp=videoplayback|video
add name=SocialMedia regexp="^.+(facebook.com|twitter|linkedin|pinterest|tumbl\
r|instagram|VK|flickr|vine|meetup|tagged|ask.fm|meetme|classm).*\$"
add name=layer7-bittorrent-exp regexp="^(\\x13bittorrent protocol|azver\\x01\$\
|get /scrape\\\?info_hash=get /announce\\\?info_hash=|get /client/bitcomet\
/|GET /data\\\?fid=)|d1:ad2:id20:|\\x08'7P\\)[RP]"
add name=block regexp="^.+(sex|scandal|xxx|p**n).*\$"
add name=torrent-dns regexp="^.+(torrent|thepiratebay|isohunt|demonii|bittorre\
nt|entertane|demonoid|btjunkie|mininova|flixflux|torrentz|vertor|h33t|btsc\
ene|bitunity|bittoxic|thunderbytes|entertane|zoozle|vcdq|bitnova|bitsoup|m\
eganova|fulldls|btbot|flixflux|seedpeer|fenopy|gpirate|utorrent|commonbits\
).*\$"
add name=torrent-www regexp="^.*(get|GET).+(torrent|thepiratebay|isohunt|enter\
tane|demonoid|btjunkie|mininova|flixflux|torrentz|vertor|h33t|btscene|bitu\
nity|bittoxic|thunderbytes|entertane|zoozle|vcdq|bitnova|bitsoup|meganova|\
fulldls|btbot|flixflux|seedpeer|fenopy|gpirate|commonbits).*\$"
add name=torrentsites regexp="^.*(get|GET).+(torrent|thepiratebay|isohunt|ente\
rtane|demonoid|btjunkie|mininova|flixflux|torrentz|vertor|h33t|btscene|bit\
unity|bittoxic|thunderbytes|entertane|zoozle|vcdq|bitnova|bitsoup|eganova|\
fulldls|btbot|flixflux|seedpeer|fenopy|gpirate|commonbits).*\$"
add name=facebook regexp="^.+(facebook.com).*\$"
/queue tree
add limit-at=500k max-limit=6M name=Browsing-Streaming parent=bridge queue=\
synchronous-default
add name=Facebook packet-mark=smpkt parent=Browsing-Streaming priority=4 \
queue=synchronous-default
add name=Streaming packet-mark=spkt parent=Browsing-Streaming priority=5 \
queue=synchronous-default
add name="Browsing https" packet-mark=bpkt parent=Browsing-Streaming \
priority=6 queue=synchronous-default
add limit-at=100k max-limit=3M name="Browsing-Streaming up" parent=ether1 \
queue=synchronous-default
add name="Facebook up" packet-mark=smpkt parent="Browsing-Streaming up" \
priority=4 queue=synchronous-default
add name="Streaming up" packet-mark=spkt parent="Browsing-Streaming up" \
priority=5 queue=synchronous-default
add name="Browsing https up" packet-mark=bpkt parent="Browsing-Streaming up" \
priority=6 queue=synchronous-default
add comment=DOWNLOAD limit-at=500k max-limit=5M name=\
"High Priority Traffic down" parent=bridge priority=1 queue=\
synchronous-default
add comment=UPLOAD limit-at=100k max-limit=3M name="High Priority Traffic up" \
parent=ether1 priority=1 queue=synchronous-default
add name="Browsing http" packet-mark=bpkthttp parent=Browsing-Streaming \
priority=6 queue=synchronous-default
add name="Browsing http up" packet-mark=bpkthttp parent=\
"Browsing-Streaming up" priority=6 queue=synchronous-default
add name="all game packets" packet-mark=gaming-packets parent=\
"High Priority Traffic down" priority=1 queue=synchronous-default
add name="Game Traffic" packet-mark=gpkt parent="High Priority Traffic down" \
priority=2 queue=synchronous-default
add name="No mark traffic" packet-mark=others parent=\
"High Priority Traffic down" priority=3 queue=synchronous-default
add name="all game packets up" packet-mark=gaming-packets parent=\
"High Priority Traffic up" priority=1 queue=synchronous-default
add name="Game Traffic up" packet-mark=gpkt parent="High Priority Traffic up" \
priority=2 queue=synchronous-default
add name="No mark traffic up" packet-mark=others parent=\
"High Priority Traffic up" priority=3 queue=synchronous-default