Skip to content

Commit 605a7e5

Browse files
committed
Routed VR: accept packets from related and established connections
1 parent 6f1aa96 commit 605a7e5

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
@@ -244,6 +244,8 @@ def add_ip4_chain(self, address_family, table, chain, hook, action):
244244
CsHelper.execute("nft add chain %s %s %s '{ %s }'" % (address_family, table, chain, chain_policy))
245245
if hook == "input" or hook == "output":
246246
CsHelper.execute("nft add rule %s %s %s icmp type { echo-request, echo-reply } accept" % (address_family, table, chain))
247+
elif hook == "forward":
248+
CsHelper.execute("nft add rule %s %s %s ct state established,related accept" % (address_family, table, chain))
247249

248250
def apply_nft_ipv4_rules(self, rules, type):
249251
if len(rules) == 0:

0 commit comments

Comments
 (0)