Repository navigation
fix: allow container SSH through iptables DOCKER-USER chain - #161
Open
hakhandelwal11 wants to merge 1 commit into
Open
hakhandelwal11 wants to merge 1 commit into
hakhandelwal11 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Single-container builds on native Nebius fail at the
container-sshhealth check (wait for healthy health check container-ssh: context deadline exceeded). Container SSH (host 2222 → container 22) can't be reached from outside the instance.Root cause
brev-apply-docker-firewall.sh(applied via the10-brev-firewall.confdocker.service drop-in) endsDOCKER-USERwith-j DROP.DOCKER-USER, not UFW's INPUT rules, soufw allow 2222/tcpdoesn't help.host:2222tocontainer:22before the chain runs, so the traffic hitsDROP.Changes
DOCKER-USERrule before theDROPthat allows container SSH on host port 2222.--ctorigdstport), so only host port 2222 is opened. Other published ports, including other containers' port 22, stay blocked.