Commit 48952a34 authored by Svein Ove Undal's avatar Svein Ove Undal

now!

parent 3238bf29
Pipeline #22638 failed with stages
in 2 minutes and 59 seconds
......@@ -4,7 +4,7 @@ nat44 (2.0.8-1) Beta; urgency=medium
* added backports to checkinstall
* debian buster support
-- sveinov <sveinov@ilsvun-14> Fri, 25 okt 2019 10:11:17 +0100
-- sveinov <sveinov@ilsvun-14> Fri, 25 Oktober 2019 10:11:17 +0100
nat44 (2.0.7-1) Stable; urgency=medium
......
......@@ -49,8 +49,7 @@ def netflow():
if 'netflow' in log:
pkg_mannage('iptables-netflow-dkms')
if shell('modprobe ipt_NETFLOW') == 1:
pass
#compile_netflow()
compile_netflow()
try:
if os.path.isfile('/etc/modprobe.d/ipt_NETFLOW.conf'):
os.remove('/etc/modprobe.d/ipt_NETFLOW.conf')
......@@ -66,7 +65,7 @@ def netflow():
shell("/usr/sbin/service snmpd restart")
if y == 1:
print "problem med ipt-netflow"
#exit(9)
exit(9)
except Exception, e:
print "problem med netflow-log"
print "log=None i nat44.conf, ved instalasjon uten log"
......@@ -227,10 +226,10 @@ def restartAndTest():
if not ping(eIF, '8.8.8.8'): #small connection test
print "ingen nett tilgang, feil i nett instillinger, er %s koppla rett?" %(eIF)
#exit(9)
exit(9)
if not ping(eIF,"vg.no"): #tests if dns is working
print "Nett fungerer, men ikkje dns. Endre %s til rett dns." %(confg)
#exit(9)
exit(9)
print "Ferdig! "
......
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