Verified Commit c02537f1 authored by Martin Petráček's avatar Martin Petráček
Browse files

moved interfaces to pakon config (from suricata config)

parent 5500a231
......@@ -253,7 +253,7 @@ def main():
con.commit()
except:
logging.debug('Error cleaning flow_id')
notify_new_devices = uci_get('pakon.common.notify_new_devices')
notify_new_devices = uci_get('pakon.monitor.notify_new_devices')
if notify_new_devices:
c.execute('ATTACH ? AS archive', (archive_path,))
for row in c.execute('SELECT DISTINCT(src_mac) FROM traffic UNION SELECT DISTINCT(src_mac) FROM archive.traffic'):
......@@ -269,7 +269,7 @@ def main():
signal.signal(signal.SIGINT, exit_gracefully)
signal.signal(signal.SIGTERM, exit_gracefully)
signal.signal(signal.SIGUSR1, reload_replaces)
allowed_interfaces = uci_get('suricata.suricata.interface')
allowed_interfaces = uci_get('pakon.monitor.interface')
logging.debug("Listening...")
while True:
try:
......
config common 'common'
config monitor 'monitor'
option notify_new_devices 1
list interface 'br-lan'
list interface 'br-guest_turris'
config archive 'archive'
option keep 4w
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment