Skip to content

Commit ecf7e79

Browse files
winterhazeldhslove
authored andcommitted
IPv6 firewall: accept packets from related and established connections (apache#10970)
* IPv6 firewall: accept related packets and packets from established connections * Remove rule from input chain
1 parent 534eda4 commit ecf7e79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ def add_ip6_chain(self, address_family, table, chain, hook, action):
232232
if hook == "input" or hook == "output":
233233
CsHelper.execute("nft add rule %s %s %s icmpv6 type { echo-request, echo-reply, \
234234
nd-neighbor-solicit, nd-router-advert, nd-neighbor-advert } accept" % (address_family, table, chain))
235+
elif hook == "forward":
236+
CsHelper.execute("nft add rule %s %s %s ct state established,related accept" % (address_family, table, chain))
235237

236238
def add_ip4_chain(self, address_family, table, chain, hook, action):
237239
chain_policy = ""

0 commit comments

Comments
 (0)