Skip to content
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

Base ufw whitelist is not respected. #93

Open
matlinski opened this issue Mar 29, 2023 · 1 comment
Open

Base ufw whitelist is not respected. #93

matlinski opened this issue Mar 29, 2023 · 1 comment

Comments

@matlinski
Copy link

I was able to successfully use your binary. When I added:
ufw-docker install

And rebooted the system all of the containers stopped being exposed, but then I added
ufw-docker allow container1 80
ufw-docker allow container1 443
ufw-docker allow container2 3306

They are no longer blocked which is great but the whitelist from base ufw is not respected.

ufw allow from 18.8.132.78 to any
ufw allow from 88.80.218.248 to any
ufw allow from 99.46.245.249 to any port 3306

this is the whitelist ^ (IPs not actually real)

I need it to be respected, how to do it?

@iwangxiaodong
Copy link

show container_ip: docker exec ss-rust cat /etc/hosts

format:
<source_ip> to <container_ip> port <container_port>
ufw route allow from 1.2.3.4 to 172.17.0.3 port 3306 proto tcp

@matlinski

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants