Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1a2eab74
authored
Apr 20, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall: random fixes
parent
433b8374
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
circle/firewall/iptables.py
+1
-1
circle/firewall/migrations/0045_auto__del_field_host_pub_ipv4__add_field_host_external_ipv4__del_field.py
+2
-2
No files found.
circle/firewall/iptables.py
View file @
1a2eab74
...
...
@@ -89,7 +89,7 @@ class IptChain(object):
self
.
rules
.
add
(
rule
)
def
sort
(
self
):
return
sorted
(
list
(
self
.
rules
))
return
sorted
(
list
(
self
.
rules
)
,
reverse
=
True
)
def
__len__
(
self
):
return
len
(
self
.
rules
)
...
...
circle/firewall/migrations/0045_auto__del_field_host_pub_ipv4__add_field_host_external_ipv4__del_field.py
View file @
1a2eab74
...
...
@@ -32,8 +32,8 @@ class Migration(SchemaMigration):
if
rule
.
nat
:
# swap
tmp
=
rule
.
dport
#
rule.dport = rule.nat_external_port
#
rule.nat_external_port = tmp
rule
.
dport
=
rule
.
nat_external_port
rule
.
nat_external_port
=
tmp
if
rule
.
direction
==
'0'
:
rule
.
direction
=
'out'
elif
rule
.
direction
==
'1'
:
...
...
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