Open ClementNerma opened 2 years ago
What is your "outside" IP address? Some host on your LAN?
By default, ufw-docker
modification to after.rules
allows access from any private network to containers:
-A DOCKER-USER -j RETURN -s 10.0.0.0/8
-A DOCKER-USER -j RETURN -s 172.16.0.0/12
-A DOCKER-USER -j RETURN -s 192.168.0.0/16
You may want to modify the ranges to suit your needs.
Hi there!
I just followed the provided instructions (modify
/etc/ufw/after.rules
and reload the service) and it doesn't work.I'm still able to access containers from the outside through
<server IP>:<port>
.Here is my container port bindings:
0.0.0.0:1234->4533/tcp, :::1234->4533/tcp
.If I change a random character in
after.rules
file to create a syntax error it indeed shows an error when restarting the service. Otherwise it runs fine.I don't really know if there is any log/config file I should include in this issue, so please tell me if you need something else to check what's happening here.
EDIT: By default my UFW config file contains the following (default content):