Skip to content

Commit

Permalink
rich: limit masquerading forward rule to new connections
Browse files Browse the repository at this point in the history
  • Loading branch information
t-woerner committed May 12, 2015
1 parent 54d7897 commit 36ccd63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/firewall/core/fw_zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,8 @@ def __rule(self, enable, zone, rule, mark_id):
# reverse source/destination !
self.__rule_source(rule.destination, command)
self.__rule_destination(rule.source, command)
command += [ "-j", "ACCEPT" ]
command += [ "-m", "conntrack", "--ctstate", "NEW",
"-j", "ACCEPT" ]
rules.append((ipv, "filter", "%s_allow" % target, command))

# FORWARD PORT
Expand Down

0 comments on commit 36ccd63

Please sign in to comment.