-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guide for static iptables rules for DOCKER-USER on CentOS 7? #8087
Comments
This could be the solution for the static iptables configuration. Currently you don't provide this kind of documentation and users are left to invent their own solutions. https://unrouted.io/2017/08/15/docker-firewall/ (Creates a new chain called FILTERS to which network traffic from INPUT AND DOCKER-USER is put into.) |
Here's what I use with this setup in FILTERS chain to allow icmp to the docker host and allow host's port 22 access and container's port 5222 access:
The option --ctorigdstport was completely new to me. Found it from https://stackoverflow.com/questions/53541274/docker-chain-in-iptables-overrides-input-rules |
You can try with systemd-service-iptables to load your docker-user rules; example docker-user rules. We're using iptable-save and restore to load rules, check out the DOCKER-USER rules :
|
There hasn't been any activity on this issue for a long time. Mark the issue as fresh with a /lifecycle stale |
/lifecycle stale |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. /lifecycle locked |
File: network/iptables.md
Could you update this document with information how to setup static iptables rules for DOCKER-USER on CentOS 7?
Currently I only see how to manually add rules to DOCKER-USER.
The text was updated successfully, but these errors were encountered: