-
Notifications
You must be signed in to change notification settings - Fork 880
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
firewalld docker zone not working to reject request #2651
Comments
I tried a different approach which didn't work either:
I would expect an incoming connection from How is this supposed to be done? There's no documentation on it other than "yay docker creates its own zone now" |
@SuperCuber Now only some ip address can access the docker container mapped port. However, I would still like to know how to achieve the same effect with Firewalld. |
Same "Problem" here. Is there a best practise to handle docker/docker swarm with firewalld rich rules? I dont want to open a port for everyone. |
Hi,
I run an nginx container by docker-compose . I can visit it using http://192.168.222.230/ .
Then I add a reject rule to docker zone.
However, I still can visit http://192.168.222.230/ from 192.168.222.1 .
Can someone tell me what's the problem? How to make it work?
OS:CentOS Linux release 7.6.1810 (Core)
firewall-cmd version: 0.5.3
Docker version 20.10.12, build e91ed57
docker-compose.yml
firewall-cmd --get-active-zones
firewall-cmd --zone=docker --list-all
The text was updated successfully, but these errors were encountered: