Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
fwdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
8702eb74
authored
Mar 12, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
random fixes v2
parent
557ab841
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
fw.py
+2
-3
miscellaneous/firewall.conf
+3
-1
ovs.py
+1
-1
No files found.
fw.py
View file @
8702eb74
...
...
@@ -231,11 +231,11 @@ def start_networking():
reload_firewall_vlan
(
data
,
True
)
except
:
print
'nemsikerult:('
raise
#
raise
def
main
():
start_networking
()
start_firewall
()
main
()
\ No newline at end of file
main
()
miscellaneous/firewall.conf
View file @
8702eb74
...
...
@@ -11,8 +11,10 @@ setuid fw
script
cd
/
home
/
fw
/
fwdriver
. /
home
/
fw
/.
virtualenvs
/
fw
/
bin
/
postactivate
. /
home
/
fw
/.
virtualenvs
/
fw
/
bin
/
activate
celeryd
-
A
fw
-
Q
firewall
,
dhcp
--
loglevel
=
info
HOSTNAME
=$(
hostname
-
s
)
exec
celeryd
-
A
fw
-
Q
${
HOSTNAME
}.
firewall
--
loglevel
=
info
-
c
1
end
script
ovs.py
View file @
8702eb74
...
...
@@ -96,7 +96,7 @@ class Switch:
name
]
+
interfaces
+
[
'tag=
%
d'
%
int
(
tag
)]
else
:
params
=
[
'add-port'
,
self
.
brname
,
name
]
if
tag
is
not
None
:
if
tag
is
not
None
and
(
trunks
is
None
or
len
(
trunks
)
==
0
)
:
params
=
params
+
[
'tag=
%
d'
%
int
(
tag
)]
if
internal
:
params
=
params
+
[
'--'
,
'set'
,
'Interface'
,
interfaces
[
0
],
...
...
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