Selasa, Oktober 18, 2011

Limit bandwidth mikrotik by extention


Limit dengan metode ini bisa jadi solusi jika menginginka kenyamanan browsing bagi client, langsung saja siapkan extention, buat rule firewall dan masukkan ke adress list network  contoh:

/ ip firewall filter
add chain=output protocol=tcp content=.mp3 action=add-dst-to-address-list \
 address-list=User-Download-List address-list-timeout=1h comment="MP3 \
 Files" disabled=no
add chain=output protocol=tcp content=.exe action=add-dst-to-address-list \
 address-list=User-Download-List address-list-timeout=1h comment="EXE \
 Files" disabled=no
add chain=output protocol=tcp content=.rm action=add-dst-to-address-list \
 address-list=User-Download-List address-list-timeout=1h comment="RM Files" \
 disabled=no
bisa tambahkan rule sesuai kebutuhan. kemudian kita lakukan mangle untuk marking paket yang berasal dari address list diatas seperti ini:

/ ip firewall mangle
add chain=prerouting protocol=tcp src-address-list=User-Download-List action=mark-packet \
 new-packet-mark=User-Download-Files passthrough=no comment="User Download Services" \
 disabled=no
Lalu untuk yg terakhir kita masukkan simple queue dari paket mark diatas

/ queue tree
add name="User-Download-Files" parent=global-in packet-mark=User-Download-Files limit-at=512000 \
 queue=default priority=8 max-limit=512000 burst-limit=0 burst-threshold=0 burst-time=0s \
 disabled=no

Install squidstats untuk monitoring proxy didebian/ubuntu

Banyak sekali tools untuk memonitoring kinerja squid kita, kali kita coba pke squidstats yang dari sisi design cukup bagus dan cukup lengkap sehingga memudahkan kita dalam monitoring squid.
langsung saja ikuti step-step berikut :
1. apt-get install librrds-perl libsnmp-session-perl snmpd rrdtool snmp apache2 -y
2. perl -MCPAN -e ‘install Config::IniFiles’
3. wget http://azzam.web.id/wp-content/uploads/2011/09/squidstats-r54.tar
4. tar -xvf squidstats-r54.tar
5. cd squidstats-r54
6. cp mib.txt /etc/squid/
7. cp snmpd.conf /etc/snmp/
8. untuk squid.conf tambahkan berikut ini :
snmp_port 3401
acl snmppublic snmp_community public
snmp_access allow snmppublic all
9. make && make install
10. snmpwalk -v 1 -c public localhost
11. squidstats.pl createdb
12. squidstats.pl gather
13. crontab -e (kemudian copy rule dibawah ini) */5 * * * * /usr/local/bin/squidstats.pl gather >/dev/null
14. cp squidstats.conf /etc/apache2/conf.d
15. reboot
16. cek hasilnya ke http://ipproxy/squidstats/graph-summary.cgi
Berikut sample graphnya :
Cache Hits Ratio
Cache Hits Ratio

Linux – How to split the terminal into more than one “view”?

You can do it in screen the terminal multiplexer.
  • To split vertically: ctrla then |.
  • To split horizontally: ctrla then S (uppercase one).
  • To unsplit: ctrla then Q (uppercase one).
  • To switch from one to the other: ctrla then tab
EDIT, basic screen usage:
  • New terminal: ctrla then c.
  • Next terminal: ctrla then space.
  • Previous terminal: ctrla then backspace.
  • N’th terminal ctrla then [n].
  • Send ctrla to the underlying terminal ctrla then a.

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews