ufw-docker icon indicating copy to clipboard operation
ufw-docker copied to clipboard

What do I need to do to expose the container to only one IP, please? Thanks.

Open odup opened this issue 2 years ago • 2 comments

I did not find the corresponding option.

Another problem: I found that when I unexpose the port, I need to restart the VPS for it to take effect.

odup avatar Apr 24 '23 09:04 odup

Hi Odup. I use route allow from {IP_ADDRESS} to any port {PORT} proto tcp

You can find the full discussion here. Hope this help.

syamsarosa avatar Jun 07 '23 06:06 syamsarosa

嗨,奥杜普。我使用route allow from {IP_ADDRESS} to any port {PORT} proto tcp

您可以在此处找到完整的讨论。希望这有帮助。

Thank you for your reply.

odup avatar Jun 07 '23 06:06 odup