Score:0

Access container's port from on eIP

ru flag

I have three servers that are in same network via WireGuard. Their IPs are:

  • 10.10.10.1
  • 10.10.10.2
  • 10.10.10.3

I have a docker container on 10.10.10.1 that give me service on port 8080/tcp. I want 10.10.10.2 to be allowed connect to it but not 10.10.10.3.

I exposed my container port with -e 10.10.10.1:8080:8080 then add below ufw role:

ufw allow from 10.10.10.2 to 10.10.10.1 port 8080 proto tcp

But 10.10.10.3 still can access to this port.

jabbson avatar
sb flag
what do you see when running `ufw status verbose`
heydar dasoomi avatar
ru flag
```Status: active Logging: on (low) Default: deny (incoming), allow (outgoing), deny (routed) New profiles: skip To Action From -- ------ ---- 22/tcp (OpenSSH) ALLOW IN Anywhere 22/tcp (OpenSSH (v6)) ALLOW IN Anywhere (v6) ```
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.