linux:command-monitor-traffic-network
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:command-monitor-traffic-network [2017/12/13 04:02] – created kbadmin | linux:command-monitor-traffic-network [2020/09/26 04:58] (current) – [HTTPRY] kbadmin | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Cara Memonitor Traffic Jaringan di Linux ====== | ||
+ | |||
Berikut ini adalah daftar linux command / applikasi yang dapat digunakan untuk memonitor traffic networking. | Berikut ini adalah daftar linux command / applikasi yang dapat digunakan untuk memonitor traffic networking. | ||
====== - NLOAD ====== | ====== - NLOAD ====== | ||
Line 5: | Line 7: | ||
nload | nload | ||
</ | </ | ||
- | tampilan {{: | + | tampilan |
- | cara install | + | cara install\\ |
< | < | ||
# fedora or centos | # fedora or centos | ||
Line 15: | Line 17: | ||
</ | </ | ||
+ | ====== - HTTPRY ====== | ||
+ | Httpry adalah tools monitoring traffic port 80 untuk linux dan Untuk dapat menggunakan httpry anda harus menginstall paket epel | ||
+ | < | ||
+ | yum install epel-release -y | ||
+ | yum install httpry -y | ||
+ | </ | ||
+ | |||
+ | Berikut ini adalah cara penggunaan httpry | ||
+ | < | ||
+ | httpry -i eth0 | ||
+ | </ | ||
+ | dan outputnya kurang lebih seperti ini | ||
+ | < | ||
+ | [root@uvcms1 abuse]# httpry -i eth0 | ||
+ | httpry version 0.1.8 -- HTTP logging and information retrieval tool | ||
+ | Copyright (c) 2005-2014 Jason Bittel < | ||
+ | Starting capture on eth0 interface | ||
+ | 2020-09-26 15: | ||
+ | 2020-09-26 15: | ||
+ | 2020-09-26 15: | ||
+ | 2020-09-26 15: | ||
+ | </ | ||
+ | |||
+ | Anda bisa menghilangkan keterangan header httpry version degan cara menambahkan **-q** | ||
+ | < | ||
+ | httpry -q -i eth0 | ||
+ | </ | ||
+ | Apabila anda hanya ingin mengambil traffic 50 baris anda bisa menggunakan | ||
+ | < | ||
+ | httpry -q -i eth0 -n 30 | ||
+ | </ | ||
+ | Anda juga dapat menyimpan output pada file dengan cara | ||
+ | < | ||
+ | httpry -q -i eth0 -n 30 -o / | ||
+ | </ | ||
+ | atau bisa juga | ||
+ | < | ||
+ | httpry -q -i eth0 -n 30 >> / | ||
+ | </ | ||
+ | Apabila anda ingin memfilter post, | ||
+ | < | ||
+ | httpry -q -i eth0 -n 30 -m post,head | ||
+ | </ | ||
+ | Apabila anda ingin memfilter source traffic dari ip tertentu berikut ini perintahnya | ||
+ | < | ||
+ | httpry -q -i eth0 -n 30 'src host 139.99.53.101' | ||
+ | </ | ||
+ | dan untuk filter traffic berdasarkan destinasi ip address, anda bisa menggunakan perintah | ||
+ | < | ||
+ | httpry -q -i eth0 -n 30 'dst host 139.99.53.101' | ||
+ | </ | ||
+ | |||
+ | apakah httpry dapat memonitor traffic https atau port 443? Sejauh ini belum bisa. | ||
+ | Itulah tadi salah satu command linux yaitu httpry yang mungkin sangat bermanfaat untuk anda. | ||
====== - IFTOP ====== | ====== - IFTOP ====== | ||
Line 21: | Line 77: | ||
$ sudo iftop -n | $ sudo iftop -n | ||
</ | </ | ||
- | Tampilan | + | Tampilan\\ |
{{: | {{: | ||
- | Installasi | + | Installasi\\ |
< | < | ||
# fedora or centos | # fedora or centos | ||
Line 31: | Line 87: | ||
$ sudo apt-get install iftop | $ sudo apt-get install iftop | ||
</ | </ | ||
+ | ====== - IPTRAF ====== | ||
+ | Perintah | ||
+ | < | ||
+ | $ sudo iptraf | ||
+ | </ | ||
+ | Tampilan\\ | ||
+ | {{: | ||
+ | Install | ||
+ | < | ||
+ | # Centos (base repo) | ||
+ | $ yum install iptraf | ||
+ | # fedora or centos (with epel) | ||
+ | $ yum install iptraf-ng -y | ||
+ | |||
+ | # ubuntu or debian | ||
+ | $ sudo apt-get install iptraf iptraf-ng | ||
+ | </ |
Layanan
Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |linux/command-monitor-traffic-network.1513155759.txt.gz · Last modified: 2017/12/13 04:02 by kbadmin