Tulisan ini saya temukan di sebuah blog (http://fadhlismart.wordpress.com/2010/11/30/optimasi-mikrotik-utk-pointblank/) karena alasan waktu saya belum bisa mencobanya dan menyesuaikannya dengan kondisi jaringan di warnet. Mudah mudahan kelak routermikrotik dalam waktu dekat dapat mencobanya dan menjabarkannya dengan versi routermikrotik.blogspot.com sendiri.
/ip firewall mangle add action=mark-connection chain=forward comment="Trafik Mark" \ disabled=no new-connection-mark=all_con passthrough=yes \ src-address=192.168.1.0/24 add action=mark-connection chain=forward comment=""\ connection-mark=all_con disabled=no dst-port=39190-49100\ new-connection-mark=pb-con passthrough=yes protocol=tcp\ src-address=192.168.1.0/24 add action=mark-connection chain=forward comment=""\ connection-mark=all_con disabled=no dst-port=39190-49100\ new-connection-mark=pb-con passthrough=yes protocol=udp \ src-address=192.168.1.0/24 add action=mark-packet chain=forward comment="" connection-mark=pb-con\ disabled=no new-packet-mark=point-blank passthrough=no add action=mark-packet chain=forward comment=""\ disabled=no new-packet-mark=all_packet passthrough=no\ /queue tree add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0\ max-limit=1600k name=”Download” parent=ether2-lan priority=8 add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0\ max-limit=0 name=HTTP packet-mark=all_packet parent="Download"\ priority=8 queue=default add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no\ limit-at=0 max-limit=0 name="Point Blank" packet-mark=point-blank\ parent="Download" priority=7 queue=default—————————-
VERSI LAIN
#Set pppoe lewat mikrotik ( modem set sebagai bridge )
/interface pppoe-client add ac-name="" add-default-route=no allow=pap,chap,mschap1,mschap2\ comment="" dial-on-demand=no disabled=no interface=Speedy-1 max-mru=1480\ max-mtu=1480 mrru=disabled name="******@telkom.net" password="***"\ profile=default service-name="" use-peer-dns=no user="***" #Optimalisasi Facebook dan Poker /ip firewall address-list add list="facebook" address=69.63.184.142 add list="facebook" address=69.63.187.17 add list="facebook" address=69.63.187.19 add list="facebook" address=69.63.181.11 add list="facebook" address=69.63.181.12 add list="facebook" address=69.63.180.14 add list="facebook" address=69.63.186.31 add list="facebook" address=69.63.186.30 add list="facebook" address=69.63.176.11 add list="facebook" address=69.63.186.11 add list="facebook" address=69.63.187.12 add list="facebook" address=69.63.180.12 add list="facebook" address=69.63.186.12 add list="facebook" address=69.63.176.65 add list="facebook" address=66.151.132.0/24 add list="facebook" address=118.214.190.0/24 add list="facebook" address=69.63.176.213 add list="facebook" address=125.160.18.0/24 add list="facebook" address=125.56.199.0/24 add list="facebook" address=125.160.16.0/24 /ip firewall nat add chain=srcnat action=masquerade out-interface=public add chain=dstnat protocol=udp dst-port=53 action=redirect to-ports=53 add chain=dstnat protocol=tcp dst-port=53 action=redirect to-ports=53 add chain=dstnat in-interface=local protocol=icmp action=redirect to-ports=1 add chain=dstnat in-interface=local src-address=192.168.1.0/24\ dst-address-list=!poker protocol=tcp dst-port=80 action=redirect\ to-ports=8000
-------------------------------------------------------#mangle khusus optimasi mikrotik untuk facebook dan point blank
/ip fi ma add chain=prerouting dst-address=203.89.146.0/23 protocol=udp\ dst-port=40000-40010 action=mark-connection \ new-connection-mark=pb-facebook passthrough=yes comment="PB IIX"\ disabled=no add chain=prerouting dst-address-list=facebook action=mark-connection\ new-connection-mark=pb-facebook passthrough=yes comment="facebook"\ disabled=no add chain=prerouting connection-mark=pb-facebook action=mark-packet \ new-packet-mark=pb-fb passthrough=no comment="" disabled=no /queue tree add name="pcq" parent=global-out packet-mark=pb-fb limit-at=0\ queue=default priority=2 max-limit=0 burst-limit=0 burst-threshold=0 \ burst-time=0s-------------------------------------------------------------------------------
#Mangle limit download loss browsing Mikrotik
/ip fi ma add chain=postrouting out-interface=local dst-address=192.168.1.0/24\ protocol=tcp src-port=80 action=mark-connection\ new-connection-mark=http_conn passthrough=yes add chain=postrouting out-interface=local connection-mark=http_conn \ connection-bytes=0-131072 action=mark-packet new-packet-mark=browsing \ passthrough=no add chain=postrouting out-interface=local connection-mark=http_conn \ connection-bytes=131073-4294967295 action=mark-packet \ new-packet-mark=download passthrough=no add chain=prerouting comm="pcq" action=mark-packet new-packet-mark=ALL\
passthrough=no
/queue type add name="browsing" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=dst-address\
pcq-total-limit=2000 add name="download" kind=pcq pcq-rate=256000 pcq-limit=50 pcq-classifier=dst-address\
pcq-total-limit=2000 add name="PCQ_Upload" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=src-address\
pcq-total-limit=2000 /queue tree add name="pcq" parent=local packet-mark=”” limit-at=0 queue=default\ priority=3 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s add name="browsing" parent=pcq packet-mark=”browsing” limit-at=0 \ queue=browsing priority=1 max-limit=0 burst-limit=0 burst-threshold=0 add name="download" parent=pcq packet-mark=”download” limit-at=0 \ queue=download priority=8 max-limit=256000 burst-limit=0 \ burst-threshold=0 add name="PCQ upload" parent=global-in packet-mark=ALL limit-at=0 \ queue=PCQ_Upload priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \ burst-time=0s #web proxy intrenal /ip proxy Enabled=yes src-address=0.0.0.0 port=8080 parent-proxy=0.0.0.0:0 parent-proxy-port=0 cache-drive=system cache-administrator="routermikrotik@blogspot.com" max-disk-cache-size=unlimited max-ram-cache-size=yes maximal-client-connections=950 maximal-server-connections=950 max-object-size=4096KiB max-fresh-time=3d serialize-connections=no
Import nice address pada Mikrotik
/tool fetch address=ixp.mikrotik.co.id src-path=/download/nice.rsc;
import nice.rsc
Schedul update IP nice automatic Mikrotik
/system sched add comment="update-nice" disabled=no interval=1d
name="update-nice-rsc" on-event=":if ([:len [/file find name=nice.rsc]]
> 0) do={/file remove nice.rsc }; /tool fetch
address=ixp.mikrotik.co.id src-path=/download/nice.rsc;/import nice.rsc"
start-date=jan/01/1970 start-time=00:06:00
Selesaii…………….
————————————
Versi Lain LAgi
MIKROTIK PISAH DOWNLOAD, BROWSE DAN GAME DI 1 LINE
Test running well di RB750 OS ver.4.5
ISP= SAPIDI EXECUTIVE 512 – 2M
Mangle:
GAME
contoh buat Point Blank, game lain sesuaikan aja port/ip nya
chain=game action=mark-connection new-connection-mark=Game\ passthrough=yes protocol=tcp dst-address=203.89.146.0/23 dst-port=39190\ comment="oint Blank"
chain=game action=mark-connection new-connection-mark=Game\ passthrough=yes protocol=udp dst-address=203.89.146.0/23\ dst-port=40000-40010
chain=game action=mark-packet new-packet-mark=Game_pkt passthrough=no\
connection-mark=Game
chain=prerouting action=jump jump-target=game\
------------------------------- POKER
-------------------------------
chain=forward action=mark-connection new-connection-mark=Poker_con\ passthrough=yes protocol=tcp dst-address-list=LOAD POKER comment="POKER"\
chain=forward action=mark-connection new-connection-mark=Poker_con\ passthrough=yes protocol=tcp content=statics.poker.static.zynga.com
chain=forward action=mark-packet new-packet-mark=Poker passthrough=no\
connection-mark=Poker_con
BROWSING
chain=forward action=mark-connection new-connection-mark=http\ passthrough=yes protocol=tcp in-interface=WAN out-interface=Lan\ packet-mark=!Game_pkt connection-mark=!Game connection-bytes=0-262146\ comment="BROWSE"
chain=forward action=mark-packet new-packet-mark=http_pkt passthrough=no protocol=tcp connection-mark=http
chain=forward action=mark-packet new-packet-mark=http_pkt passthrough=no protocol=tcp connection-mark=http
UPLOAD
chain=prerouting action=mark-packet new-packet-mark=Upload\ passthrough=no protocol=tcp src-address=192.168.0.0/24 in-interface=Lan\ packet-mark=!icmp_pkt comment="UPLOAD"
LIMIT DOWNLOAD
chain=forward action=mark-connection new-connection-mark=Download\ passthrough=yes protocol=tcp in-interface=WAN out-interface=Lan\ packet-mark=!Game_pkt connection-mark=!Poker_con connection\ bytes=262146-4294967295 comment="LIMIT DOWNLOAD"
chain=forward action=mark-packet new-packet-mark=Download_pkt passthrough=no packet-mark=!Game_pk>
connection-mark=Download
QUEUE
/queue type name="Download" kind=pcq pcq-rate=256000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
name="Http" kind=pcq pcq-rate=1M pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
name="Game" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=src-address,dst-address,src-port,dst-port\
pcq-total-limit=2000
name="Upload" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000 Queue Tree
name="Main Browse" parent=Lan limit-at=0 priority=8 max-limit=1M burst-limit=0 burst-threshold=0 burst-time=0s
name="Browse" parent=Main Browse packet-mark=http_pkt limit-at=0\ queue=Http priority=8 max-limit=1M burst-limit=0 burst-threshold=0 \ burst-time=0s
name="Game" parent=global-total packet-mark=Game_pkt limit-at=0 \ queue=Game priority=1 max-limit=0 burst-limit=0 burst-threshold=0 \ burst-time=0s
name="Poker" parent=global-out packet-mark=Poker limit-at=0 \ queue=Game priority=3 max-limit=0 burst-limit=0 burst-threshold=0 \ burst-time=0s
name="Download" parent=global-out packet-mark=Download_pkt limit-at=0\ queue=Download priority=8 max-limit=256k burst-limit=0 \ burst-threshold=0 burst-time=0s
name="Main Upload" parent=global-in limit-at=0 priority=8 max-limit=256k burst-limit=0 burst-threshold=0
burst-time=0s
name="Upload" parent=Main Upload packet-mark=Upload limit-at=0 \ queue=Upload priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \ burst-time=0s
HASILNYA
BROWSING 1Mbs bagi rata sekampung (baca: satu jaringan)
DOWNLOAD 256Kbps bagi rata sekampung
GAME seadanya bandwith sesuai kebutuhan sekampung
POKER seadanya bandwith sesuai kebutuhan sekampung
UPLOAD seadanya bandwith bagi rata sesuai kebutuhan sekampung
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.