Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
N
nat44
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Svein Ove Undal
nat44
Commits
48952a34
Commit
48952a34
authored
Oct 25, 2019
by
Svein Ove Undal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
now!
parent
3238bf29
Pipeline
#22638
failed with stages
in 2 minutes and 59 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
debian/changelog
debian/changelog
+1
-1
nat44.py
nat44.py
+4
-5
No files found.
debian/changelog
View file @
48952a34
...
...
@@ -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
...
...
nat44.py
View file @
48952a34
...
...
@@ -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! "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment