Skip to content

Romain-OC/Automation-Network-setting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automation-Network-setting

Documentation utilisateur :

Supported OS (Debian 9,Ubuntu 18,CentOS 8 except the Firewall)

Requirement :

  • Distro module for python3
  • Need to be executed as Superuser

Français :

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.

Configuration des Interfaces :

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

Configurationdu DHCP:

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

Configuration du Pare-feu :

Enfin il vous sera demandé si vous voulez configurer un pare-feu. Vous pourrez choisir quels port vous voulez ouvrir

English :

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.

Interfaces configuration:

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

DHCP configuration:

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

Firewall configuration :

Finally, you will be asked if you want to configure a firewall. You will be able to choose which ports you want to open

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages