MitchDrage opened a new issue, #14784: URL: https://github.com/apache/cloudstack/issues/14784
### problem On a ROUTED VPC the router can't get replies back for connections it starts itself over a private gateway. DNS and TCP from the router to a network behind the gateway time out, while ping works. It looks like the `ip4_acl` INPUT chain has no `ct state established,related accept`, so the replies hit the drop policy. Ping only gets through because echo replies are accepted by type. ### versions CloudStack 4.22.1.1, KVM, systemvm template 4.22.0. ROUTED VPC with Static routing and a private gateway (no BGP). Also reproduced on the 4.20 router scripts. ### The steps to reproduce the bug 1. Create a ROUTED VPC with a private gateway (e.g. 100.64.0.1/30) and put a host on the far side (100.64.0.2) running sshd and something on UDP 53. 2. On the router, `ping 100.64.0.2` works. 3. A UDP query to 100.64.0.2 port 53 or a TCP connect to port 22 from the router times out. tcpdump on the far side shows it answering every time (UDP reply, SYN-ACK), and the router keeps retrying. 4. `nft list chain ip ip4_acl INPUT` has `ct state established,related` accepts for the public NIC and guest tiers, nothing for the gateway NIC. ### What to do about it? Add `ct state established,related accept` to the input hook in `CsNetfilter.add_ip4_chain`, like #12986 did for the forward hook. With that rule on the same router, the UDP and TCP tests both work. I'll raise a PR against 4.20. -- 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]
