User Tools

Site Tools


linux:command-monitor-traffic-network

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:command-monitor-traffic-network [2017/12/13 04:03] kbadminlinux:command-monitor-traffic-network [2020/09/26 04:58] (current) – [HTTPRY] kbadmin
Line 7: Line 7:
 nload nload
 </code> </code>
-tampilan {{:linux:nload.jpg|}} +tampilan \\{{:linux:nload.jpg|}} 
-cara install+cara install\\
 <code> <code>
 # fedora or centos # fedora or centos
Line 17: Line 17:
 </code> </code>
  
 +====== - HTTPRY ======
 +Httpry adalah tools monitoring traffic port 80 untuk linux dan Untuk dapat menggunakan httpry anda harus menginstall paket epel
 +<code>
 +yum install epel-release -y
 +yum install httpry -y
 +</code>
 +
 +Berikut ini adalah cara penggunaan httpry
 +<code>
 +httpry -i eth0
 +</code>
 +dan outputnya kurang lebih seperti ini
 +<code>
 +[root@uvcms1 abuse]# httpry -i eth0
 +httpry version 0.1.8 -- HTTP logging and information retrieval tool
 +Copyright (c) 2005-2014 Jason Bittel <jason.bittel@gmail.com>
 +Starting capture on eth0 interface
 +2020-09-26 15:47:53     139.99.53.101   36.77.47.183    <                         HTTP/1.1        403     Forbidden
 +2020-09-26 15:47:53     36.77.47.183    139.99.53.101   >       GET     kediripost.co.id        /wp-content/themes/korankoran/includes/sharrre.php?url=http%3A%2F%2Fkediripost.co.id%2F2020%2F09%2F26%2Fdhito-tiba-tiba-datang-ke-nu%2F&type=googlePlus   HTTP/1.1        -       -
 +2020-09-26 15:47:53     36.77.47.183    139.99.53.101   >       GET     kediripost.co.id        /wp-content/themes/korankoran/includes/sharrre.php?url=http%3A%2F%2Fkediripost.co.id%2F2020%2F09%2F26%2Fdhito-tiba-tiba-datang-ke-nu%2F&type=stumbleupon  HTTP/1.1        -       -
 +2020-09-26 15:47:53     139.99.53.101   143.204.82.117  >       GET     www.stumbleupon.com     /services/1.01/badge.getinfo?
 +</code>
 +
 +Anda bisa menghilangkan keterangan header httpry version degan cara menambahkan **-q**
 +<code>
 +httpry -q -i eth0
 +</code>
 +Apabila anda hanya ingin mengambil traffic 50 baris anda bisa menggunakan
 +<code>
 +httpry -q -i eth0 -n 30
 +</code>
 +Anda juga dapat menyimpan output pada file dengan cara
 +<code>
 +httpry -q -i eth0 -n 30 -o /path/nama-file.txt
 +</code>
 +atau bisa juga
 +<code>
 +httpry -q -i eth0 -n 30 >> /path/nama-file.txt
 +</code>
 +Apabila anda ingin memfilter post,get,head anda bisa menggunakan
 +<code>
 +httpry -q -i eth0 -n 30 -m post,head
 +</code>
 +Apabila anda ingin memfilter source traffic dari ip tertentu berikut ini perintahnya
 +<code>
 +httpry -q -i eth0 -n 30 'src host 139.99.53.101'
 +</code>
 +dan untuk filter traffic berdasarkan destinasi ip address, anda bisa menggunakan perintah
 +<code>
 +httpry -q -i eth0 -n 30 'dst host 139.99.53.101'
 +</code>
 +
 +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 23: Line 77:
 $ sudo iftop -n $ sudo iftop -n
 </code> </code>
-Tampilan+Tampilan\\
 {{:linux:iftop.jpg|}} {{:linux:iftop.jpg|}}
-Installasi+Installasi\\
 <code> <code>
 # fedora or centos # fedora or centos
Line 33: Line 87:
 $ sudo apt-get install iftop $ sudo apt-get install iftop
 </code> </code>
 +====== - IPTRAF ======
 +Perintah
 +<code>
 +$ sudo iptraf
 +</code>
 +Tampilan\\
 +{{:linux:iptraf.jpg|}}
 +Install 
 +<code>
 +# 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
 +</code>

Layanan

Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |
linux/command-monitor-traffic-network.1513155824.txt.gz · Last modified: 2017/12/13 04:03 by kbadmin

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki