Skip to content

Commit

Permalink
Merge pull request #5093 from brunoleon/fix_snat
Browse files Browse the repository at this point in the history
Fix SNAT never being added because of exception
  • Loading branch information
FreddleSpl0it authored Mar 29, 2023
2 parents 535dd23 + f77c654 commit 3d2483c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/Dockerfiles/netfilter/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ def get_snat4_rule():
chain.insert_rule(new_rule)
else:
for position, rule in enumerate(chain.rules):
if not hasattr(rule.target, 'parameter'):
continue
match = all((
new_rule.get_src() == rule.get_src(),
new_rule.get_dst() == rule.get_dst(),
Expand Down

0 comments on commit 3d2483c

Please sign in to comment.