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

[Bug]: Blocking IP Access to Coolify server #2195

Closed
luckycreationsindia opened this issue May 13, 2024 · 2 comments
Closed

[Bug]: Blocking IP Access to Coolify server #2195

luckycreationsindia opened this issue May 13, 2024 · 2 comments

Comments

@luckycreationsindia
Copy link

Description

I'm trying to block IP Address access of coolify via ufw but it's not blocking the out port 8000.

Am i missing something or this need to be configured somewhere in Coolify?

Minimal Reproduction (if possible, example repository)

  1. Block port 8000 using command sudo ufw deny out 8000
  2. Try to access via Private or public ip (127.0.0.1:8000)

Exception or Error

N/A

Version

v4.0.0-beta.277

@andrasbacsai
Copy link
Member

Docker and ufw are incompatible with eachother by default. You need to use iptables.

You need to use the DOCKER-USER chain, because that is executed before the docker engine rules.

So in your case, the command should look like: iptables -D DOCKER-USER -p tcp -m tcp --dport 8000 -j DROP

@luckycreationsindia
Copy link
Author

For some reason iptables were not working on ubuntu (I tried to block 8000 everywhere I could including DOCKER, DOCKER-USER but not success). I removed DMZ from router and added port forwarding for port 80 and 443.

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