Skip to content

TUI/CLI-based (GUI-Like) interface to configure nftables, written in C using ncurses. (spanish: Interfaz basada en TUI/CLI (GUI-Like) para configurar nftables, escritas en C usando ncurses)

Notifications You must be signed in to change notification settings

atErik/nftables-gui

This branch is 50 commits ahead of caballeroalba/nftables-gui:master.

Repository files navigation

nftables-gui

nftables-gui is a nftables²˒³⁾ configuration app(tool), ₁(nftables is an advanced network firewall subsystem built into Linux kernel, it can do various layers of network data packet filtering, NAT, connection tracking, queueing, etc, etc. And nftables is successor of iptables¹⁶⁾)₁, nftables-gui is written in C, and it uses ncurses library to function as a TUI, a GUI-Like wrapper, a front-end for the nft¹²˒¹³˒¹⁴⁾ tool. It can be run from CLI or shell terminals.

  • nftables-gui es un nftables¹⁶˒³⁾ aplicación(herramienta) de configuración, ₁(nftables es una red avanzada firewall subsistema construido en el núcleo de Linux, puede hacer varias capas de filtrado de paquetes de datos de red, NAT, seguimiento de conexiones, colas, etc., etc. Y nftables es sucesor de iptables)₁, nftables-gui está escrito en C, y utiliza La biblioteca ncurses para funcionar como un TUI, un envoltorio GUI-Like, un front-end para la herramienta nft. Se puede ejecutar desde terminales CLI o shell.
  • For English translated edition go here, Or, Under [<>Code] tab, find button showing "master" branch, Change "master" into "nftables-gui_mod-english" branch, then you may "Download" or you may submit your (english) code-changes, etc. For Spanish, go here.
  • Para la edición traducida al inglés vaya aquí, Or, En la pestaña [<>Código], busque el botón "maestro", Cambie la rama "maestro" en "nftables-gui_mod-english", entonces puede "Descargar" o puede enviar sus cambios de código (inglés), etc. Para español, vaya a aquí.
Original Author's BLOG: http://caballeroalba.cf/wordpress/
It is part of the end-of-career project, so the status of this software will be followed.
Forma parte del proyecto de fin de carrera, por lo cual el estado de este software se seguirá.
developing throughout the course 2014/2015 through June. Which doesn't mean it won't follow later.
desarrollando a lo largo del curso 14/15 hasta junio. Lo cual no quiere decir que no se seguirá después.

Pre-Requirements Before Compile:

To be able to compile it is necessary to have the following requirements :
Para poder compilar es necesario tener los siguientes requisitos :
The ncurses library (available from your distribution repositories)
La librería de ncurses (disponible desde los repositorios de tu distribución)
You can install ncurses as follows:
Puedes instalarla de la siguiente manera:
apt-get install ncurses-base libncurses5 libncurses5-dev
linux kernel greater than 3.13
linux kernel superior al 3.13
find out your linux kernel version number with below commands:
averiguar su número de versión del kernel linux con los siguientes comandos:
uname –r
hostnamectl
cat /proc/version
dmesg | grep Linux
nftables installed on the system. More info here⁽ ⁾
nftables instalado en el sistema. (Si no está instalado, consulte los enlaces anteriores para instalar nftables).
find out if nftables is installed or not:
averiguar si nftables está instalado o no:
nft -v
( if output shows version number, then it is installed, or else follow instruction in above linked page )
( si la salida muestra el número de versión, entonces se instala, o de lo contrario seguir las instrucciones en la página vinculada por encima )

Compile:

when you have completed above steps, then go inside the source-code folder of nftables-gui, and execute following commands:
cuando haya completado los pasos anteriores, vaya dentro de la carpeta source-code de nftables-gui y ejecute los siguientes comandos:
./configure
make
This will generate the nftables-gui executable which needs root permissions in order to run.
Esto generará el ejecutable nftables-gui el cual necesita permisos de root para poder ejecutarse.

Caution & Warning:

As nftables-gui is still in an alpha state, nftables-gui still cannot read the current rules in the system,
Como nftables-gui esta en aún en un estado alfa, nftables-gui aún no puede leer las reglas actuales en el sistema,
so before starting the main run/execution, nftables-gui clears the current rules
por lo cual, antes de empezar la ejecución principal, nftables-gui borra las reglas
so that they do not interfere with the proper functioning of the application.
actuales para que no interfieran en el correcto funcionamiento de la aplicación.
Therefore it is recommended to save the current system rules with the following steps:
Por lo tanto Se recomienda guardar las reglas actuales del sistema con los siguientes pasos:
    nft list [table_name] > file.txt
or, nft list [nombre_tabla] > fichero.txt
And to restore:
Y para restaurar:
    nft -f file.txt
or, nft -f fichero.txt

TUI/CLI (GUI-Like):

Documentation (English):

Firewalls and nftables - study - nftables-gui - github (HTML)
Presentation - nftables-gui - github (HTML)
Requirements document - nftables-gui - github (HTML)
iptables vs nftables - nftables-gui - github (HTML)

About

TUI/CLI-based (GUI-Like) interface to configure nftables, written in C using ncurses. (spanish: Interfaz basada en TUI/CLI (GUI-Like) para configurar nftables, escritas en C usando ncurses)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 51.9%
  • C 46.7%
  • Shell 1.2%
  • M4 0.2%