Jumat, 12 November 2010

mikrotik qqs

Code:
/ interface bridge
add name="bridge1"
/ interface bridge port
add interface=ether2 bridge=bridge1
add interface=ether3 bridge=bridge1
/ interface bridge settings
set use-ip-firewall=yes

/ ip firewall mangle
add chain=prerouting protcol=tcp dst-port=80 action=mark-connection \
new-conection-mark=http_conn passtrough=yes
add chain=prerouting connection-mark=http_conn action=mark-packet \
new-packet-mark=http passtrough=no
add chain=prerouting p2p=all-p2p action=mark-connection \
new-connection-mark=p2p_conn passtrough=yes
add chain=prerouting connection-mark=p2p_conn action=mark-packet \
new-packet-mark=p2p passtrough=no
add chain=prerouting action=mark-connection new-connection-mark=other_conn \
passtrough=yes
add chai=prerouting connection-mark=other_conn action=mark_packet \
new-packet-mark=other passtrough=no

/ queue simple
add name="main" target addresses=10.0.0.12/32 max-limit=256000/512000
add name="http" parent=main packet-mark=http max-limit=240000/500000
add name="p2p" parent=main packet-marks=p2p max-limit=64000/64000
add name="other" parent=main packet-marks=other max-limit=128000/128000

Fungsi comment itu untuk membatasi jumlah pengeluaran bandwitch dari server ke client,, tapi di comment itu aku cuma ngasih simple queue yang berarti :


add name="main" target addresses=10.0.0.12/32 max-limit=256000/512000
add name="http" parent=main packet-mark=http max-limit=240000/500000
add name="p2p" parent=main packet-marks=p2p max-limit=64000/64000
add name="other" parent=main packet-marks=other max-limit=128000/128000


kata "max-limit" diatas, menunjukan kemampuan bandwitch yang bisa didapat oleh client yang memiliki address 10.0.0.12/32 hanya sebatas yang ditentukan, dan itupun jika trafic yang mengakses server hanya beberapa (tidak penuh). Jika Trafic penuh maka client yang hanya mendapat settingan dari comment diatas akan mengalami penurunan tingkat kecepatan karna pengaruh trafic...


basic settup mikrotik
ni url tuk winbox : http://routeros.co.id/routeros/Sofware/winbox.exe
1. set address IP xxx.xxx.xxx.xxx/xx (terserah) ini sebagai gateway mikrotik
2. Set address IP di client (komputer masing-masing dah)
IP : xxx.xxx.xxx.xxx
Subnet : xxx.xxx.xxx.xxx
Gateway : xxx.xxx.xxx.xxx( pake gateway mikrotik pada step awal)
3. set interface yang mau di pake (wlan , ether1, dsb)
4. add IP internet dan gatewaynya pada interface yang baru di buat
5. Routing default => masuk ke IP => route
>>add destination = 0, add gateway (internet masing2)
6. sett masquarade => masuk ke IP => Firewall => (tab) NAT => general chain = srcnat, (tab) action => masquarade
[Image: Picture1.png]
7. add DNS => masuk IP => DNS , setting , primary DNS (masukan Gateway internet masing2)


semoga bermanfaat gan