Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Routed VR: accept packets from related and established connections
  • Loading branch information
weizhouapache committed Apr 8, 2026
commit 605a7e52f615805fb2f143eba3da010a0e3a65a9
2 changes: 2 additions & 0 deletions systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ def add_ip4_chain(self, address_family, table, chain, hook, action):
CsHelper.execute("nft add chain %s %s %s '{ %s }'" % (address_family, table, chain, chain_policy))
if hook == "input" or hook == "output":
CsHelper.execute("nft add rule %s %s %s icmp type { echo-request, echo-reply } accept" % (address_family, table, chain))
elif hook == "forward":
CsHelper.execute("nft add rule %s %s %s ct state established,related accept" % (address_family, table, chain))

def apply_nft_ipv4_rules(self, rules, type):
if len(rules) == 0:
Expand Down
Loading