weizhouapache commented on code in PR #14785:
URL: https://github.com/apache/cloudstack/pull/14785#discussion_r4665813316


##########
systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py:
##########
@@ -244,6 +244,9 @@ 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))
+            if hook == "input":
+                # Accept replies to traffic the VR initiates, such as DNS and 
TCP over a private gateway.
+                CsHelper.execute("nft add rule %s %s %s ct state 
established,related accept" % (address_family, table, chain))
         elif hook == "forward":

Review Comment:
   ```suggestion
           if hook == "input" or hook == "forward":
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to