Score:0

UFW - Port is reachable for everyone although only certain IP's are opened

vc flag

I run an Ubuntu 22.04 server on an VPS with a current version of UFW.

Further i run an docker instance with firefox - https://hub.docker.com/r/jlesage/firefox The port is routed to 5800 to access this container from outside.

In UFW i did following steps:

sudo ufw default deny incoming
sudo ufw default allow outgoing

sudo ufw allow from *MYIP* to any

Theoretically, only connections of my specific IP should be allowed now. However, when I call the VPN server's public IP including port, I can still access the Docker container's web interface from any IP.

How can I make sure that only I can access this address? Should I also block the outgoing traffic?

Firewall is enabled.

hr flag
Did you *enable* ufw, or just define the rules?
ru flag
Make sure `ufw` is enabled with `ufw status` - by defualt it is *not* enabled.
Natrium2 avatar
vc flag
Yes it is enabled - "Status:active".
Score:0
vc flag

Okay i got it. It was the docker-ufw issue. Crap that docker exposes ports even with ufw, maybe they should communicate it somewhere.

This fixes the problem: https://github.com/chaifeng/ufw-docker

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.