Skip to content

Commit da512f5

Browse files
authored
Update firewall.md: info about closing ports 8000, 6000, 6001 (#297)
1 parent 3802f27 commit da512f5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/knowledge-base/server/firewall.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,28 @@ For self-hosting Coolify, you need to allow some ports on your firewall.
2222
internet after installation.
2323
:::
2424

25+
### How to block ports 8000, 6000, 6001
26+
27+
As long as you have access outside of http port 8000, uou can add the following `/data/coolify/source/docker-compose.custom.yml`:
28+
29+
```
30+
services:
31+
coolify: # blocks external 8000
32+
ports: !reset []
33+
soketi: # blocks external 6001, 6002
34+
ports: !reset []
35+
```
36+
37+
Then run [installation](https://coolify.io/docs/get-started/installation) again. You can check these ports with nmap from your local machine to be sure they're closed.
38+
39+
```
40+
nmap -Pn -p 8000,6001,6002 <your coolify IP>
41+
```
42+
43+
### Other options
44+
You can use your vendor firewall (ex. Digital Ocean etc) as another layer of protection, because Docker apps sometimes break through. UFW unbeknownst to you. If you don't want to use vendor firewall, you can also try [ufw-docker](https://github.com/chaifeng/ufw-docker).
45+
46+
2547
### GitHub integration
2648
- [Detailed Guide](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/about-githubs-ip-addresses).
2749

0 commit comments

Comments
 (0)