This commit is contained in:
Hugo Levy-Falk 2019-03-31 20:17:31 +02:00 committed by root
parent 21de67b467
commit 1c6abe5dd7
4 changed files with 4 additions and 3 deletions

View file

@ -2,7 +2,7 @@
# Interfaces de la machine # Interfaces de la machine
define if_adherent = "bond0.69" define if_adherent = "bond0.69"
define if_admin = "bond0.7" define if_admin = "eno1"
define if_federez = "bond0.20" define if_federez = "bond0.20"
define if_supelec = "bond0.2" define if_supelec = "bond0.2"
define if_aloes = "bond0.66" define if_aloes = "bond0.66"

1
init_firewall.py Normal file → Executable file
View file

@ -1,3 +1,4 @@
#! /usr/bin/python3
import os import os
import logging import logging
from logging.handlers import RotatingFileHandler from logging.handlers import RotatingFileHandler

View file

@ -27,7 +27,7 @@ from re2oapi import Re2oAPIClient
from firewall import NetfilterSet from firewall import NetfilterSet
CONFIG = ConfigParser() CONFIG = ConfigParser()
CONFIG.read('config.ini') CONFIG.read('/usr/local/firewall/config.ini')
api_hostname = CONFIG.get('Re2o', 'hostname') api_hostname = CONFIG.get('Re2o', 'hostname')
api_password = CONFIG.get('Re2o', 'password') api_password = CONFIG.get('Re2o', 'password')

2
nat.py
View file

@ -28,7 +28,7 @@ import netaddr
from firewall import NAT from firewall import NAT
CONFIG = ConfigParser() CONFIG = ConfigParser()
CONFIG.read('config.ini') CONFIG.read('/usr/local/firewall/config.ini')
def create_nat_adherent(): def create_nat_adherent():