diff --git a/archi.nft b/archi.nft index 9d24e48..febfaf3 100644 --- a/archi.nft +++ b/archi.nft @@ -2,7 +2,7 @@ # Interfaces de la machine define if_adherent = "bond0.69" -define if_admin = "bond0.7" +define if_admin = "eno1" define if_federez = "bond0.20" define if_supelec = "bond0.2" define if_aloes = "bond0.66" diff --git a/init_firewall.py b/init_firewall.py old mode 100644 new mode 100755 index 53f84d4..324ab75 --- a/init_firewall.py +++ b/init_firewall.py @@ -1,3 +1,4 @@ +#! /usr/bin/python3 import os import logging from logging.handlers import RotatingFileHandler diff --git a/mac_ip.py b/mac_ip.py index ffa50f2..f411dee 100644 --- a/mac_ip.py +++ b/mac_ip.py @@ -27,7 +27,7 @@ from re2oapi import Re2oAPIClient from firewall import NetfilterSet CONFIG = ConfigParser() -CONFIG.read('config.ini') +CONFIG.read('/usr/local/firewall/config.ini') api_hostname = CONFIG.get('Re2o', 'hostname') api_password = CONFIG.get('Re2o', 'password') diff --git a/nat.py b/nat.py index 125c794..918a33e 100644 --- a/nat.py +++ b/nat.py @@ -28,7 +28,7 @@ import netaddr from firewall import NAT CONFIG = ConfigParser() -CONFIG.read('config.ini') +CONFIG.read('/usr/local/firewall/config.ini') def create_nat_adherent():