nethogs como alternativa Linux a GlassWire
Actualizado el
Nuestra opinión
Nethogs is a partial replacement for GlassWire, suitable only for users comfortable with the terminal. It covers real-time per-process bandwidth monitoring well, which is GlassWire's core visualization feature. However, it lacks firewall capabilities, historical data storage, and alerts. If you need to block apps or domains, nethogs cannot do that; you must combine it with iptables or nftables. For simple bandwidth monitoring on a server or desktop, it is lightweight and effective. For full GlassWire functionality, you need a stack of tools, not a single app.
- Licencia
- GPL-2.0
- Precio
- Gratis
- Última versión
- 0.9.0
- Valoración
- —
Lo que funciona igual
- Real-time per-process bandwidth monitoring
- Identifies which applications are using the network
- Lightweight resource usage compared to GUI apps
- Supports IPv4 and IPv6 traffic
Lo que cambia
- Command-line interface only, no graphical charts
- No firewall or blocking capabilities for apps/domains
- No historical data storage or usage graphs over time
- No alerts or notifications for new connections
- Requires root or set-uid permissions to run
Abrir tus archivos de GlassWire
Nethogs does not import or export data files. It is a live monitoring tool that does not store historical logs by default. There is no direct way to open GlassWire data files in nethogs. If you need historical data, you must log nethogs output to a file manually using shell redirection, but this is raw text, not a structured database like GlassWire.
Pasar de GlassWire a nethogs, paso a paso
- Install nethogs using your package manager (e.g., apt, dnf, pacman).
- Run nethogs with sudo to capture all network traffic.
- Identify high-bandwidth processes from the real-time list.
- Set up iptables or nftables rules to block specific IPs or ports if needed.
- Create a systemd service or cron job to log nethogs output for historical review.
Funciones clave de nethogs
- Muestra el ancho de banda por proceso
- Actualizaciones en tiempo real
- Admite IPv4 e IPv6
- Puede agregar por interfaz
- Se ejecuta como root o con set-uid
- Funciona en servidores sin interfaz gráfica
- Sin dependencias externas
- Puede integrarse con cron o systemd
Cómo instalar nethogs en Linux
sudo apt install nethogssudo apt install nethogssudo dnf install nethogssudo pacman -S nethogssudo zypper install nethogsPreguntas frecuentes
Can nethogs block internet access for specific apps?
No. Nethogs only monitors traffic. To block apps, you must use a firewall tool like ufw, iptables, or nftables in conjunction with nethogs to identify the process IDs.
Does nethogs keep a history of network usage?
No. It displays real-time data only. To keep history, you must redirect its output to a log file using shell commands, but it does not provide graphical historical views.
Is nethogs suitable for a typical home user who wants a simple GUI?
Probably not. The terminal interface has a steep learning curve for non-technical users. If you need a GUI for monitoring, consider tools like vnstat or NetHogs with a TUI wrapper, but for full GlassWire-like features, you may need a different solution.