搜索
首页系统教程LINUX如何使用Linux和UNIX中的Sniffnet网络监控工具轻松监视您的Internet流量

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
Linux软件的未来:Flatpak和Snap会替换本机桌面应用程序吗?Linux软件的未来:Flatpak和Snap会替换本机桌面应用程序吗?Apr 25, 2025 am 09:10 AM

多年来,Linux软件分布依赖于DEB和RPM等本地格式,并深深地根深蒂固。 但是,Flatpak和Snap已经出现,有望成为应用程序包装的通用方法。 本文考试

Linux和Windows处理设备驱动程序的区别有什么区别?Linux和Windows处理设备驱动程序的区别有什么区别?Apr 25, 2025 am 12:13 AM

Linux和Windows在处理设备驱动程序上的差异主要体现在驱动管理的灵活性和开发环境上。1.Linux采用模块化设计,驱动可以动态加载和卸载,开发者需深入理解内核机制。2.Windows依赖微软生态,驱动需通过WDK开发并签名认证,开发相对复杂但保证了系统的稳定性和安全性。

比较和对比Linux和Windows的安全模型。比较和对比Linux和Windows的安全模型。Apr 24, 2025 am 12:03 AM

Linux和Windows的安全模型各有优势。Linux提供灵活性和可定制性,通过用户权限、文件系统权限和SELinux/AppArmor实现安全。Windows则注重用户友好性,依赖WindowsDefender、UAC、防火墙和BitLocker保障安全。

Linux和Windows之间的硬件兼容性有何不同?Linux和Windows之间的硬件兼容性有何不同?Apr 23, 2025 am 12:15 AM

Linux和Windows在硬件兼容性上不同:Windows有广泛的驱动程序支持,Linux依赖社区和厂商。解决Linux兼容性问题可通过手动编译驱动,如克隆RTL8188EU驱动仓库、编译和安装;Windows用户需管理驱动程序以优化性能。

Linux和Windows之间虚拟化支持有哪些差异?Linux和Windows之间虚拟化支持有哪些差异?Apr 22, 2025 pm 06:09 PM

Linux和Windows在虚拟化支持上的主要区别在于:1)Linux提供KVM和Xen,性能和灵活性突出,适合高定制环境;2)Windows通过Hyper-V支持虚拟化,界面友好,与Microsoft生态系统紧密集成,适合依赖Microsoft软件的企业。

Linux系统管理员的主要任务是什么?Linux系统管理员的主要任务是什么?Apr 19, 2025 am 12:23 AM

Linux系统管理员的主要任务包括系统监控与性能调优、用户管理、软件包管理、安全管理与备份、故障排查与解决、性能优化与最佳实践。1.使用top、htop等工具监控系统性能,并进行调优。2.通过useradd等命令管理用户账户和权限。3.利用apt、yum管理软件包,确保系统更新和安全。4.配置防火墙、监控日志、进行数据备份以确保系统安全。5.通过日志分析和工具使用进行故障排查和解决。6.优化内核参数和应用配置,遵循最佳实践提升系统性能和稳定性。

很难学习Linux吗?很难学习Linux吗?Apr 18, 2025 am 12:23 AM

学习Linux并不难。1.Linux是一个开源操作系统,基于Unix,广泛应用于服务器、嵌入式系统和个人电脑。2.理解文件系统和权限管理是关键,文件系统是层次化的,权限包括读、写和执行。3.包管理系统如apt和dnf使得软件管理方便。4.进程管理通过ps和top命令实现。5.从基本命令如mkdir、cd、touch和nano开始学习,再尝试高级用法如shell脚本和文本处理。6.常见错误如权限问题可以通过sudo和chmod解决。7.性能优化建议包括使用htop监控资源、清理不必要文件和使用sy

See all articles

热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

使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热工具

SublimeText3汉化版

SublimeText3汉化版

中文版,非常好用

适用于 Eclipse 的 SAP NetWeaver 服务器适配器

适用于 Eclipse 的 SAP NetWeaver 服务器适配器

将Eclipse与SAP NetWeaver应用服务器集成。

WebStorm Mac版

WebStorm Mac版

好用的JavaScript开发工具

SublimeText3 Linux新版

SublimeText3 Linux新版

SublimeText3 Linux最新版

MinGW - 适用于 Windows 的极简 GNU

MinGW - 适用于 Windows 的极简 GNU

这个项目正在迁移到osdn.net/projects/mingw的过程中,你可以继续在那里关注我们。MinGW:GNU编译器集合(GCC)的本地Windows移植版本,可自由分发的导入库和用于构建本地Windows应用程序的头文件;包括对MSVC运行时的扩展,以支持C99功能。MinGW的所有软件都可以在64位Windows平台上运行。