chaifeng / ufw-docker

To fix the Docker and UFW security flaw without disabling iptables
GNU General Public License v3.0
4.59k stars 386 forks source link

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

Open odup opened 1 year ago

odup commented 1 year ago

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.

syamsarosa commented 1 year ago

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.

odup commented 1 year ago

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

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

Thank you for your reply.