Supported OS (Debian 9,Ubuntu 18,CentOS 8 except the Firewall)
Requirement :
- Distro module for python3
- Need to be executed as Superuser
Ce projet à pour but d’automatiser les tâches de configuration des interfaces réseaux ainsi que la mise en place d’un pare-feu à l’aide d’iptables.
Au lancement le programme va télécharger les packages necessaire pour les serveur dhcp et iptables.
Une fenêtre apparraitra lors de l'installation d'iptables-persistent (sur Debian uniquement),
Choisir Non pour les deux questions posés.
Les interfaces réseaux seront renommés avec l’ancienne appellation « ethx » Il vous sera demandé de rentrer les adresses IP voulu pour les interfaces dans l’ordre eth0, eth1 etc... Ensuite les fichiers de configuration (/etc/network/interfaces, /etc/netplan/01-netcfg.yaml, /etc/sysconfig/network-scripts/ifcfg-eth) seront générés automatiquement en fonction de votre système d’exploitation avec les adresses IP données
Il vous sera ensuite demandé si vous voulez configurer un DHCP.
Vous aurez à rentrer 4 informations :
- Le réseau sur lequel le DHCP va donner des adresses
- La première adresse de la plage
- La dernière adresse de la plage
- La passerelle
Enfin il vous sera demandé si vous voulez configurer un pare-feu. Vous pourrez choisir quels port vous voulez ouvrir
The purpose of this project is to automate network interfaces configuration tasks and the installation of a firewall using iptables.
At launch the program will download the necessary packages for dhcp servers and iptables.
A window will appear when installing iptables-persistent (on Debian only),
Choose No for both questions asked.
The network interfaces will be renamed with the old name "ethx". You will be asked to enter the IP addresses required for the interfaces in the order eth0, eth1 etc.... Then the configuration files (/etc/network/interfaces, /etc/netplan/01-netcfg.yaml, /etc/sysconfig/network-scripts/ifcfg-eth) will be automatically generated according to your operating system with the IP addresses
You will then be asked if you want to configure a DHCP.
You will have to enter 4 information:
- The network on which the DHCP will give addresses
- The first address of the range
- The last address of the range
- The gateway
Finally, you will be asked if you want to configure a firewall. You will be able to choose which ports you want to open