René's URL Explorer Experiment


Title: [BUG] fw_chain_egress missing ct state established,related accept causes inbound TCP to fail with default egress deny on routed networks · Issue #12962 · apache/cloudstack · GitHub

Open Graph Title: [BUG] fw_chain_egress missing ct state established,related accept causes inbound TCP to fail with default egress deny on routed networks · Issue #12962 · apache/cloudstack

X Title: [BUG] fw_chain_egress missing ct state established,related accept causes inbound TCP to fail with default egress deny on routed networks · Issue #12962 · apache/cloudstack

Description: problem Problem When a routed network is configured with default egress policy Deny, inbound TCP connections to guest VMs fail even when the correct ingress firewall rules are present. The Virtual Router's nftables fw_chain_egress chain ...

Open Graph Description: problem Problem When a routed network is configured with default egress policy Deny, inbound TCP connections to guest VMs fail even when the correct ingress firewall rules are present. The Virtual ...

X Description: problem Problem When a routed network is configured with default egress policy Deny, inbound TCP connections to guest VMs fail even when the correct ingress firewall rules are present. The Virtual ...

Opengraph URL: https://github.com/apache/cloudstack/issues/12962

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] fw_chain_egress missing ct state established,related accept causes inbound TCP to fail with default egress deny on routed networks","articleBody":"### problem\n\n\nProblem\n\nWhen a routed network is configured with default egress policy Deny, inbound TCP connections to guest VMs fail even when the correct ingress firewall rules are present. The Virtual Router's nftables fw_chain_egress chain is missing a ct state established,related accept rule, causing return packets (e.g. TCP SYN-ACK) from the VM to be dropped by the final drop rule in fw_chain_egress.\n\nThe FORWARD chain correctly jumps traffic sourced from the guest subnet (ip saddr \u003cguest-subnet\u003e jump fw_chain_egress). However, fw_chain_egress only contains explicit port/protocol allow rules followed by a default drop — there is no connection tracking rule to permit return traffic for inbound connections that were allowed by fw_chain_ingress.\n\nNote: This issue only occurs when the network's default egress policy is Deny. Networks with default egress policy Allow are not affected — inbound TCP works correctly in that configuration.\n\n\n\n### versions\n\nCloudStack Management Server: 4.22.0.0-shapeblue0 (package: cloudstack-management)\nVirtual Router: 4.22.0 (Debian GNU/Linux 12 bookworm, kernel 6.1.0-40-arm64 aarch64)\nHypervisor: KVM\nNetwork type: Routed isolated network, dynamic BGP routing mode\nDefault egress policy: Deny\nSteps to reproduce\n\n### The steps to reproduce the bug\n\nObserved fw_chain_egress on VR (clean state, post-reboot):\n\n```\nchain fw_chain_egress {\n    ip saddr 0.0.0.0/0 ip daddr 0.0.0.0/0 icmp type { echo-reply, destination-unreachable, source-quench, redirect, echo-request, router-advertisement, router-solicitation, time-exceeded, parameter-problem, timestamp-request, timestamp-reply, info-request, info-reply, address-mask-request, address-mask-reply } accept\n    ip saddr 0.0.0.0/0 ip daddr 0.0.0.0/0 tcp dport 22 accept\n    counter packets 115 bytes 6900 drop\n}\n```\nExpected fw_chain_egress:\n\n```\nchain fw_chain_egress {\n    ct state established,related accept   ← missing\n    ip saddr 0.0.0.0/0 ip daddr 0.0.0.0/0 icmp type { ... } accept\n    ip saddr 0.0.0.0/0 ip daddr 0.0.0.0/0 tcp dport 22 accept\n    counter drop\n}\n```\nThis is the IPv4 analog of the issue fixed for IPv6 in PR #10970.\n\nCreate a zone with dynamic routing enabled and an IP subnet pool configured\nCreate a network offering with routing mode = Dynamic and default egress policy = Deny\nDeploy an isolated routed network using that offering\nIn the network's IPv4 Routing Firewall, add:\nIngress rule: TCP port 22 from 0.0.0.0/0\nEgress rule: TCP port 22 to 0.0.0.0/0\nDeploy a VM in the network\nAttempt to SSH to the VM from an external host\nConnection hangs\nDiagnosis: tcpdump on the VR confirms the SYN arrives on eth2, is forwarded out eth0 to the VM, the VM responds with SYN-ACK on eth0, but the SYN-ACK is dropped by the counter drop rule in fw_chain_egress because no ct state established,related accept rule exists.\n\nWorkaround\n\nManually insert the missing rule on the VR (lost on VR restart):\n\n\nnft insert rule ip ip4_firewall fw_chain_egress ct state established,related accept\nWhat to do about it?\n\nAdd ct state established,related accept as the first rule in fw_chain_egress in the VR nftables generation code. This should always be present regardless of user-defined egress rules, as it is required to allow return traffic for inbound connections permitted by fw_chain_ingress. This mirrors the fix applied for IPv6 in PR #10970.\n\n### What to do about it?\n\n_No response_","author":{"url":"https://github.com/khumps","@type":"Person","name":"khumps"},"datePublished":"2026-04-04T20:13:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/12962/cloudstack/issues/12962"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4067e512-57b7-cc97-2a09-64fbeeb0b90f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCB02:512E3:3AB118D:5229CEB:6A4F5372
html-safe-noncee3936368027868b24712169392fd3ede4babd70410b7a73f439b725494672c2e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjAyOjUxMkUzOjNBQjExOEQ6NTIyOUNFQjo2QTRGNTM3MiIsInZpc2l0b3JfaWQiOiIzNzg0MTYxNTcxNjQwMzk4NzA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac22741a67cdf86da53500cd14607e10e6489f645164ab8d8e0fd40dd626042f9f
hovercard-subject-tagissue:4205729723
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/12962/issue_layout
twitter:imagehttps://opengraph.githubassets.com/01a1d9da10db1dc863c1b0ccd4da339157c59c88b2a41c931b70d859f93000c6/apache/cloudstack/issues/12962
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/01a1d9da10db1dc863c1b0ccd4da339157c59c88b2a41c931b70d859f93000c6/apache/cloudstack/issues/12962
og:image:altproblem Problem When a routed network is configured with default egress policy Deny, inbound TCP connections to guest VMs fail even when the correct ingress firewall rules are present. The Virtual ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekhumps
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
go-importgithub.com/apache/cloudstack git https://github.com/apache/cloudstack.git
octolytics-dimension-user_id47359
octolytics-dimension-user_loginapache
octolytics-dimension-repository_id9759448
octolytics-dimension-repository_nwoapache/cloudstack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9759448
octolytics-dimension-repository_network_root_nwoapache/cloudstack
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/cloudstack/issues/12962#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F12962
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F12962
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=apache%2Fcloudstack
Reloadhttps://github.com/apache/cloudstack/issues/12962
Reloadhttps://github.com/apache/cloudstack/issues/12962
Reloadhttps://github.com/apache/cloudstack/issues/12962
Please reload this pagehttps://github.com/apache/cloudstack/issues/12962
apache https://github.com/apache
cloudstackhttps://github.com/apache/cloudstack
Notifications https://github.com/login?return_to=%2Fapache%2Fcloudstack
Fork 1.3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Star 3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Code https://github.com/apache/cloudstack
Issues 536 https://github.com/apache/cloudstack/issues
Pull requests 266 https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality 0 https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Code https://github.com/apache/cloudstack
Issues https://github.com/apache/cloudstack/issues
Pull requests https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Bughttps://github.com/apache/cloudstack/issues?q=type:"Bug"
#12986https://github.com/apache/cloudstack/pull/12986
[BUG] fw_chain_egress missing ct state established,related accept causes inbound TCP to fail with default egress deny on routed networkshttps://github.com/apache/cloudstack/issues/12962#top
#12986https://github.com/apache/cloudstack/pull/12986
https://github.com/weizhouapache
4.22.1https://github.com/apache/cloudstack/milestone/44
https://github.com/khumps
khumpshttps://github.com/khumps
on Apr 4, 2026https://github.com/apache/cloudstack/issues/12962#issue-4205729723
#10970https://github.com/apache/cloudstack/pull/10970
#10970https://github.com/apache/cloudstack/pull/10970
weizhouapachehttps://github.com/weizhouapache
Bughttps://github.com/apache/cloudstack/issues?q=type:"Bug"
Apache CloudStack 4.22.1https://github.com/orgs/apache/projects/565
4.22.1https://github.com/apache/cloudstack/milestone/44
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.