Standar Instalasi FreeBS D @ Institut Manajemen Telkom ( http://www.imtelkom.ac.id)Instalasi Bandwidth Management System A...
Upcoming SlideShare
Loading in …5
×

FreeBSD Bandwidth Management

849 views

Published on

a tutorial guide explaining how to use ipfw in FreeBSD to create traffic shaper, an experience at IMTelkom (http://www.imtelkom.ac.id)

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
849
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
32
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

FreeBSD Bandwidth Management

  1. 1. Standar Instalasi FreeBS D @ Institut Manajemen Telkom ( http://www.imtelkom.ac.id)Instalasi Bandwidth Management System ALTQKekurangan dari DUMMYNET di IPFW adalah tidak dapat dilakukannya linksharing, dimana misalnya suatu "pipa" tidak digunakan, maka link pada "pipa" tsbtidak dapat digunakan oleh yg lain. Untuk dapat melakukan ini, dapat digunakanBandwidth Management System seperti ALTQ.Untuk mengaktifkan ALTQ, kernel harus di-kompilasi ulang dengan cara :# cd /usr/src/sys/i386/conf/# cp GENERIC NEW_KERNELSelanjutnya edit file "NEW_KERNEL" dan tambahkan 7 baris berikut :# cat NEW_KERNEL | grep ALTQoptions ALTQoptions ALTQ_CBQoptions ALTQ_REDoptions ALTQ_RIOoptions ALTQ_HFSCoptions ALTQ_CDNRoptions ALTQ_PRIQ# cd /usr/src# make buildkernel KERNCONF=NEW_KERNEL……<tunggu sampai selesai>……# make installkernel KERNCONF=NEW_KERNEL……<tunggu sampai selesai>……"NEW_KERNEL" dapat diganti dgn nama lain, sesuai fungsi dari kernel yg baru.Aplikasi untuk mengatur ALTQ adalah PF (Paket Filter) yaitu interface firewallseperti IPFW namun dikembangkan di OpenBSD dan saat ini dapat digunakan diFreeBSD.Untuk mengaktifkan PF, tambahkan baris berikut di /etc/rc.conf# cat /etc/rc.conf | grep pfpf_enable="YES"Untuk dapat bekerja, PF membutuhkan file konfigurasi /etc/pf.conf# cat /etc/pf.confext_if = "rl0"altq on $ext_if cbq bandwidth 10Mb queue { deflt, bms }queue deflt bandwidth 10% cbq(default)queue bms bandwidth 90% cbq(borrow red) { pimpinan , biasa }queue pimpinan bandwidth 10% priority 1 cbq(borrow red)queue biasa bandwidth 80% cbq(borrow red) { staf, mahasiswa }queue staf bandwidth 40% priority 2 cbq(borrow red)queue mahasiswa bandwidth 60% priority 3 cbq(borrow red)block return in on $ext_if inet all queue rsetspass in on $ext_if inet proto tcp from 10.1.1.0/24 to any port 8080 keepstate queue pimpinanpass in on $ext_if inet proto tcp from 10.1.2.0/24 to any port 8080 keepstate queue stafpass in on $ext_if inet proto tcp from 10.1.3.0/24 to any port 8080 keepstate queue mahasiswapass out on $ext_if inet all keep state

×