目錄
What is Sniffnet?
Sniffnet Features
Install Sniffnet in Linux and Unix
Monitor Internet Traffic using Sniffnet
Monitor Network Connections in Real-time
Display Network Connections Report
Inspect Individual Network Connections
Sniffnet Settings
Frequently Asked Questions
Conclusion
首頁 系統教程 Linux 如何使用Linux和UNIX中的Sniffnet網絡監控工具輕鬆監視您的Internet流量

如何使用Linux和UNIX中的Sniffnet網絡監控工具輕鬆監視您的Internet流量

Mar 23, 2025 am 10:49 AM

Whether you're a Networking administrator, an IT professional, or an individual, understanding and managing your Internet traffic is essential for optimizing performance, ensuring security, and maintaining control over your online activities. With Sniffnet Network Monitoring Tool, you can effortlessly track and analyze your data flow, gaining valuable insights into your network's behavior. From visualizing bandwidth consumption to detecting potential security threats, Sniffnet provides a complete solution that empowers you to take charge of your online experience. In this guide, we will discuss what is Sniffnet, and its features, how to install Sniffnet in Linux and Unix, and finally how to monitor your Internet traffic using Sniffnet.

Table of Contents

What is Sniffnet?

Sniffnet is an network monitoring tool that simplifies the task of monitoring and tracking your Internet traffic. Whether you desire comprehensive statistics or a deeper inspection of your network's activities, Sniffnet got you covered.

What sets Sniffnet apart from other network analyzers is its unique combination of technical capabilities and user-friendly design. While many network analyzers can be difficult to use, Sniffnet prioritizes a seamless user experience, making it accessible to users of all skill levels.

Additionally, Sniffnet is both free and open-source, offering transparency and allowing users to access the full source code on GitHub.

Sniffnet is built entirely in Rust, a modern programming language known for its efficiency, reliability, and focus on performance and safety.

With its wide-ranging capabilities, this application provides you with the necessary tools and insights to effectively oversee and analyze your network operations.

Sniffnet Features

With Sniffnet, you have a wide range of capabilities at your fingertips. It ships with the following set of features:

  • Easily apply filters to analyze the observed traffic.
  • Gain insights from overall statistics of your Internet activity.
  • Track real-time charts depicting traffic intensity.
  • Discover details about domain names and network providers of the hosts you're exchanging traffic with.
  • Identify connections within your local network, and even determine the geographical location of remote hosts.
  • Save your favorite network hosts for quick access.
  • Set personalized notifications for specific network events.
  • Choose from four different themes to customize the app's appearance.
  • Dive deeper into each network connection, inspecting them in real-time.
  • Save comprehensive textual reports containing detailed information such as,
    • source and destination IP addresses,
    • source and destination ports,
    • protocols,
    • amount of packet and byte exchange, as well as timestamps of information exchange.

These features mentioned above are just a glimpse of what Sniffnet has to offer. Sniffnet offers even more features to explore and enhance your network monitoring experience.

Install Sniffnet in Linux and Unix

Since Sniffnet is written using Rust, you can install it using Cargo package manager. Make sure Rust is installed on your Linux system and run the following command to install Sniffnet in Linux:

$ cargo install sniffnet
登入後複製

Sniffnet is packaged for Arch Linux. You can install Sniffnet using Pacman in Arch Linux, EndeavourOS and Manjaro Linux like below:

$ sudo pacman -S sniffnet
登入後複製

You can also download Sniffnet installer files directly from the GitHub releases page. Simply select the appropriate package, either DEB or RPM, depending on the operating system you are using.

  • deb: amd64 | arm64 | i386 | armhf
  • rpm: x86_64 | aarch64

After downloading the Sniffnet installer package, install it using the respective package manager. For instance, if you downloaded the .deb file, you can install it using dpkg package manager like below in DEB-based systems:

$ sudo dpkg -i Sniffnet_LinuxDEB_amd64.deb
登入後複製
$ sudo apt install -f
登入後複製

If you downloaded the .rpm file, you can install it using the following command in RPM-based systems:

$ sudo rpm -Uvh Sniffnet_LinuxRPM_x86_64.rpm
登入後複製

To install Sniffnet on FreeBSD, use pkg package manager like below:

# pkg install sniffnet
登入後複製

On NetBSD, you can install Sniffnet using the pkgin package manager:

# pkgin install sniffnet
登入後複製

Monitor Internet Traffic using Sniffnet

Sniffnet is available as both CLI and GUI versions.

To launch Sniffnet from command line, run:

$ sudo sniffnet
登入後複製

You can also launch Sniffnet from the Dash or Menu if you prefer to use Sniffnet GUI application.

When you launch Sniffnet for the first time, you will be prompted to select the network adapter you wish to inspect. Once you have made your selection, simply click the Start button to initiate the network monitoring process. Additionally, Sniffnet offers the flexibility to apply filters to your traffic. For instance, you can choose to filter the desired IP version (IPv4, IPv6, or both). Similarly, you have the option to filter by Transport protocol (TCP, UDP, or both) as well as Application protocol (HTTP or FTP). These filters allow you to refine and focus the network monitoring based on your specific requirements.

By default, Sniffnet selects both IPv4 and IPv6 protocols, ensuring that you can monitor traffic from both IP versions. Similarly, both TCP and UDP protocols are also selected by default, allowing you to capture and analyze traffic from both of these transport protocols.

如何使用Linux和UNIX中的Sniffnet網絡監控工具輕鬆監視您的Internet流量

Allow Sniffnet a brief moment to gather the statistics. After a few seconds, you will see the real-time report of your Internet traffic.

如何使用Linux和UNIX中的Sniffnet網絡監控工具輕鬆監視您的Internet流量

As you see in the above screenshot, Sniffnet shows the overall statistics of your Internet traffic. Furthermore, Sniffnet displays real-time charts illustrating the intensity of traffic, such as bytes and packets per second for both incoming and outgoing data. In addition, it offers details regarding domain names and network providers associated with the hosts you are exchanging traffic with.

Monitor Network Connections in Real-time

You can filter and monitor your network connections in real-time by simply clicking any network host. For instance, I clicked on the "Canonical.com" domain name and it presented the following details.

如何使用Linux和UNIX中的Sniffnet網絡監控工具輕鬆監視您的Internet流量

Display Network Connections Report

If you wish to see full textual report, simply click the "Arrow file icon".

如何使用Linux和UNIX中的Sniffnet網絡監控工具輕鬆監視您的Internet流量

The report will be opened in your default text viewer application.

如何使用Linux和UNIX中的Sniffnet網絡監控工具輕鬆監視您的Internet流量

The generated report is saved in $HOME/.config/sniffnet/report.txt file, so that you can access it whenever you want.

This report contains extensive breakdown of the following crucial details:

  • source and destination IP addresses
  • source and destination ports
  • carried protocols
  • amount of exchanged packets and bytes
  • initial and final timestamp of information exchange

By utilizing this full textual report, you can gain a detailed understanding of the network traffic and delve into the specifics of each connection, enabling more thorough analysis and examination of the data flow.

Inspect Individual Network Connections

You can also inspect individual network connection as well. By simply clicking on any IP address listed, you can access detailed information about that specific connection. This includes essential details such as geolocation, Socket address, MAC address, FQDN (Fully Qualified Domain Name), and other pertinent information related to both the source and destination connections. Moreover, Sniffnet displays the transmitted data (incoming), along with transport and application protocol details, providing a comprehensive overview of the connection's characteristics.

如何使用Linux和UNIX中的Sniffnet網絡監控工具輕鬆監視您的Internet流量

Sniffnet Settings

From the Sniffnet's Settings section, you can enable/disable notifications, choose a theme for Sniffnet interface, and select your preferred language.

To access the Settings section, click on the "Settings" icon on the top right corner.

如何使用Linux和UNIX中的Sniffnet網絡監控工具輕鬆監視您的Internet流量

Frequently Asked Questions

Here's the FAQ about Sniffnet network monitoring application.

Q: What is Sniffnet?

A: Sniffnet is a powerful network monitoring tool that allows you to track and analyze your Internet traffic, providing valuable insights into network behavior and facilitating proactive management of your online activities.

Q: What can I do with Sniffnet?

A: Sniffnet offers a range of features, including selecting network adapters to inspect, applying filters to traffic (such as IP versions, transport protocols, and application protocols), viewing real-time reports and charts about traffic intensity, and obtaining details about domain names and network providers of hosts exchanging traffic.

Q: Can I view overall statistics about my Internet traffic with Sniffnet?

A: Yes, Sniffnet provides the capability to view overall statistics about your Internet traffic. By utilizing the application, you can gain valuable insights into various aspects of your network activity, including data on bandwidth usage, packet counts, connection rates, and more.

Q: Can I view real-time charts about traffic intensity with Sniffnet?

A: Yes, you can view real-time charts that illustrate the intensity of your network traffic with Sniffnet. These charts provide visual representations of metrics such as bytes per second, packets per second, incoming and outgoing traffic, and other relevant data.

Q: Can I get details about domain names and network providers of the hosts I am exchanging traffic with using Sniffnet?

A: Yes, Sniffnet provides the details about domain names and network providers associated with the hosts you are exchanging traffic with.

Q: Can Sniffnet discover the geographical location of remote hosts?

A: Yes, Sniffnet has the capability to discover the geographical location of remote hosts.

Q: Can I set custom notifications in Sniffnet to stay informed about defined network events?

A: Yes, Sniffnet provides the functionality to set custom notifications, keeping you informed about specific network events of interest.

Q: How can I inspect individual network connections?

A: In Sniffnet, you can simply click on any network host or IP address to obtain detailed information about that specific connection. This includes geolocation, Socket address, MAC address, FQDN, and other useful details, along with transmitted data, transport, and application protocol details.

Q: Can I get the complete report of each network connection?

A: Yes, Sniffnet will get you the complete textual reports containing detailed information for each network connection.

Q: Where are the full textual reports for each network connection stored in Sniffnet?

A: The full textual report for each connection is saved in the following location: $HOME/.config/sniffnet/report.txt.

Q: What information is included in the full textual report generated by Sniffnet for each network connection?

A: The full textual report generated by Sniffnet for each network connection includes the following details:1. The IP addresses of both the source and destination hosts involved in the network connection.2. The port numbers associated with the source and destination hosts, indicating the specific communication channels used for the connection.3. The protocols utilized in the network connection, such as TCP (Transmission Control Protocol), UDP (User Datagram Protocol), or others.4. The amount of packets and bytes exchanged between the source and destination hosts during the connection.5. The timestamp indicating the starting and ending times of the information exchange between the source and destination hosts.

Q: What programming language is Sniffnet written in?

A: Sniffnet is written in Rust, a modern and efficient programming language known for its performance, safety, and concurrency features.

Q: Is Sniffnet open source?

A: Yes, Sniffnet is an open-source project. It is dual-licensed under the MIT License and Apache-2.0 License. You can find the full source code on the Sniffnet GitHub repository.

Conclusion

Sniffnet stands as a simple yet powerful network monitoring tool designed to empower users in understanding, managing, and optimizing their Internet traffic.

With its intuitive interface, extensive features, and real-time insights, Sniffnet simplifies the process of tracking and analyzing network activity, allowing users to gain valuable information about their connections, bandwidth usage, and security.

Whether you are an IT professional, networking admin, or simply a user seeking to take control of your online experience, Sniffnet offers a range of capabilities, from viewing overall statistics and real-time charts to inspecting individual connections and generating detailed reports.

Resources:

  • Sniffnet GitHub Repository
  • Sniffnet Website

Related Read:

  • vnStat – Monitor Network Bandwidth In Linux and BSD
  • How To Install And Use Netdata Performance Monitoring Tool In Linux
  • Doppler – A Zero Configuration Remote Monitoring Tool
  • Display Network Bandwidth Utilization Using Bandwhich Tool
  • How To Monitor WiFi Connection With Wavemon From Commandline In Linux

以上是如何使用Linux和UNIX中的Sniffnet網絡監控工具輕鬆監視您的Internet流量的詳細內容。更多資訊請關注PHP中文網其他相關文章!

本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱工具

記事本++7.3.1

記事本++7.3.1

好用且免費的程式碼編輯器

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

熱門話題

Java教學
1662
14
CakePHP 教程
1419
52
Laravel 教程
1313
25
PHP教程
1262
29
C# 教程
1235
24
如何學習Linux基礎知識? 如何學習Linux基礎知識? Apr 10, 2025 am 09:32 AM

Linux基礎學習從零開始的方法包括:1.了解文件系統和命令行界面,2.掌握基本命令如ls、cd、mkdir,3.學習文件操作,如創建和編輯文件,4.探索高級用法如管道和grep命令,5.掌握調試技巧和性能優化,6.通過實踐和探索不斷提陞技能。

Linux最有用的是什麼? Linux最有用的是什麼? Apr 09, 2025 am 12:02 AM

Linux在服務器、嵌入式系統和桌面環境中的應用廣泛。 1)在服務器領域,Linux因其穩定性和安全性成為託管網站、數據庫和應用的理想選擇。 2)在嵌入式系統中,Linux因其高度定制性和高效性而受歡迎。 3)在桌面環境中,Linux提供了多種桌面環境,滿足不同用戶需求。

互聯網在Linux上運行嗎? 互聯網在Linux上運行嗎? Apr 14, 2025 am 12:03 AM

互聯網運行不依賴單一操作系統,但Linux在其中扮演重要角色。 Linux廣泛應用於服務器和網絡設備,因其穩定性、安全性和可擴展性受歡迎。

Linux操作是什麼? Linux操作是什麼? Apr 13, 2025 am 12:20 AM

Linux操作系統的核心是其命令行界面,通過命令行可以執行各種操作。 1.文件和目錄操作使用ls、cd、mkdir、rm等命令管理文件和目錄。 2.用戶和權限管理通過useradd、passwd、chmod等命令確保系統安全和資源分配。 3.進程管理使用ps、kill等命令監控和控制系統進程。 4.網絡操作包括ping、ifconfig、ssh等命令配置和管理網絡連接。 5.系統監控和維護通過top、df、du等命令了解系統運行狀態和資源使用情況。

Linux的缺點是什麼? Linux的缺點是什麼? Apr 08, 2025 am 12:01 AM

Linux的缺點包括用戶體驗、軟件兼容性、硬件支持和學習曲線。 1.用戶體驗不如Windows或macOS友好,依賴命令行界面。 2.軟件兼容性不如其他系統,缺乏許多商業軟件的原生版本。 3.硬件支持不如Windows全面,可能需要手動編譯驅動程序。 4.學習曲線較陡峭,掌握命令行操作需要時間和耐心。

Linux管理員的薪水是多少? Linux管理員的薪水是多少? Apr 17, 2025 am 12:24 AM

Linux管理員的平均年薪在美國為75,000至95,000美元,歐洲為40,000至60,000歐元。提升薪資可以通過:1.持續學習新技術,如雲計算和容器技術;2.積累項目經驗並建立Portfolio;3.建立職業網絡,拓展人脈。

使用Linux別名提高自定義命令快捷方式的生產率 使用Linux別名提高自定義命令快捷方式的生產率 Apr 12, 2025 am 11:43 AM

介紹 Linux是一個強大的操作系統,由於其靈活性和效率,開發人員,系統管理員和電源用戶都喜歡。但是,經常使用長而復雜的命令可能是乏味的

Linux系統管理員的主要任務是什麼? Linux系統管理員的主要任務是什麼? Apr 19, 2025 am 12:23 AM

Linux系統管理員的主要任務包括系統監控與性能調優、用戶管理、軟件包管理、安全管理與備份、故障排查與解決、性能優化與最佳實踐。 1.使用top、htop等工具監控系統性能,並進行調優。 2.通過useradd等命令管理用戶賬戶和權限。 3.利用apt、yum管理軟件包,確保系統更新和安全。 4.配置防火牆、監控日誌、進行數據備份以確保系統安全。 5.通過日誌分析和工具使用進行故障排查和解決。 6.優化內核參數和應用配置,遵循最佳實踐提升系統性能和穩定性。

See all articles