ganezaa

Lahir dijakarta ibukota indonesia pada tanggal 11 oktober 1983.Sekarang berdomisili di Yogyakarta

 
Other things
Other things
Other things
Other things
Other things
Jual Murah!! Unlimited Internet 3G/3.5G
Wednesday, January 07, 2009

Paket Internet Unlimited Broadband 3G/3.5G Indosat M2.Per Bulan 100rb.

Paket Starter Pack
1. 1 - 20 135.000
2. 21-50 130.000
3. 51-100 120.000
4. >100 call

Paket Modem
1. 1 - 10 1.400.000
2. 11-20 1.350.000
3. >20 call

Contact
08558428787 Ganes
0254 - 7180011

YM:ganes_aryudha@yahoo.com

Labels: , , , ,

posted by satankecil @ 10:00 AM   0 comments
Transparent Traffic shapper
Friday, April 06, 2007

This example shows how to configure a transparent traffic shaper. The transparent traffic shaper is essentially a bridge that is able to differentiate and prioritize traffic that passes through it.

Quick Start for Impatient

Configuration snippet from the MikroTik router:

/ interface bridge
add name="bridge1"
/ interface bridge port
add interface=ether2 bridge=bridge1
add interface=ether3 bridge=bridge1
 
/ ip firewall mangle
add chain=prerouting protocol=tcp dst-port=80 action=mark-connection 
    new-connection-mark=http_conn passthrough=yes
add chain=prerouting connection-mark=http_conn action=mark-packet 
    new-packet-mark=http passthrough=no
add chain=prerouting p2p=all-p2p action=mark-connection 
    new-connection-mark=p2p_conn passthrough=yes
add chain=prerouting connection-mark=p2p_conn action=mark-packet 
    new-packet-mark=p2p passthrough=no
add chain=prerouting action=mark-connection new-connection-mark=other_conn 
    passthrough=yes
add chain=prerouting connection-mark=other_conn action=mark-packet 
    new-packet-mark=other passthrough=no
 
/ queue simple
add name="main" target-addresses=10.0.0.12/32 max-limit=256000/512000
add name="http" parent=main packet-marks=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

Explanation

Each piece of code is followed by the explanation of what it actually does.

Bridge

/ interface bridge
add name="bridge1"
/ interface bridge port
add interface=ether2 bridge=bridge1
add interface=ether3 bridge=bridge1

We create a new bridge interface and assign two ethernet interfaces to it. Thus the prospective traffic shaper will be completely transparent to the client.

Mangle

/ ip firewall mangle
add chain=prerouting protocol=tcp dst-port=80 action=mark-connection 
    new-connection-mark=http_conn passthrough=yes
add chain=prerouting connection-mark=http_conn action=mark-packet 
    new-packet-mark=http passthrough=no

All traffic destined to TCP port 80 is likely to be HTTP traffic and therefore is being marked with the packet mark http. Note, that the first rule has passthrough=yes while the second one has passthrough=no. (You can obtain additional information about mangle at http://www.mikrotik.com/docs/ros/2.9/ip/mangle)

/ ip firewall mangle
add chain=prerouting p2p=all-p2p action=mark-connection 
    new-connection-mark=p2p_conn passthrough=yes
add chain=prerouting connection-mark=p2p_conn action=mark-packet 
    new-packet-mark=p2p passthrough=no
add chain=prerouting action=mark-connection new-connection-mark=other_conn 
    passthrough=yes
add chain=prerouting connection-mark=other_conn action=mark-packet 
    new-packet-mark=other passthrough=no

Same as above, P2P traffic is marked with the packet mark p2p and all other traffic is marked with the packet mark other.

Queues

/ queue simple
add name="main" target-addresses=10.0.0.12/32 max-limit=256000/512000

We create a queue that limits all the traffic going to/from the client (specified by the target-address) to 256k/512k.

/ queue simple
add name="http" parent=main packet-marks=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

All sub-queues have the main queue as the parent, thus the aggregate data rate could not exceed limits specified in the main queue. Note, that http queue has higher priority than other queues, meaning that HTTP downloads are prioritized.

http://wiki.mikrotik.com/

Labels:

posted by satankecil @ 2:15 AM   0 comments
Compile Kernel

Compile kernel biasanya dilakukan bila kita menambahkan hardware baru atau saat menginstalasi software tertentu yang membutuhkan penyesuaian pada kernel. Berikut sekilas tentang compile dan install kernel FreeBSD.

Pertama cek dulu apakah sudah ada source kernel FreeBSD nya, yaitu dalam /usr/src/sys yang berisi berbagai sub-direktori yang merupakan bagian-bagian dari kernel. Apabila source kernel-nya belum ada maka kita dapat menginstallnya terlebih dulu :

root@bsd > /stand/sysinstall

Kemudian pilih menu "Configure" --> "Distributions" --> "src" --> "sys" . Baru kita akan diberi pilihan media instalasinya, lewat CD , FTP dan lain-lain. Pilih sesuai keinginan kita, then tunggu sampai selesai. Setelah install selesai :

root@bsd > cd /usr/src/sys/i386/conf/

backup dulu file konfigurasi kernel nya :

root@bsd /usr/src/sys/i386/conf > cp GENERIC KERNELBARU

Kemudian Edit file konfigurasi KERNELBARU sesuai kebutuhan, Jangan lupa mengganti baris "ident" dari GENERIC menjadi KERNELBARU (sesuaikan dengan nama file konfigurasinya). Setelah itu :

root@bsd /usr/src/sys/i386/conf > config KERNELBARU

root@bsd /usr/src/sys/i386/conf > cd ../../compile/KERNELBARU
root@bsd /usr/src/sys/compile/KERNELBARU > make depend
root@bsd /usr/src/sys/compile/KERNELBARU > make
root@bsd /usr/src/sys/compile/KERNELBARU > make install

Setelah Install selesai, reboot system.
Untuk dokumentasi lebih detil nya ada di
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html dan untuk troubleshooting bisa melihat di http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-trouble.html#KERNELCONFIG-NOBOOT

G-net Pekalongan, May 23 2002

Labels:

posted by satankecil @ 2:13 AM   0 comments
About Me

Name: satankecil
Home: Jogja, Indonesia
About Me:
See my complete profile
Previous Post
Archives
Links
Powered by

Free Blogger Templates

BLOGGER

© ganezaa Template by 2003