我使用 Docker Compose 布置了几个本地用的服务,但是这几个服务可以被局域网内的其他设备访问。我现在希望只有指定的防火墙区域才能访问 Docker 设置的服务,请问该怎么做呢?
我使用 Docker Compose 布置了几个本地用的服务,但是这几个服务可以被局域网内的其他设备访问。我现在希望只有指定的防火墙区域才能访问 Docker 设置的服务,请问该怎么做呢?
7 回答5.6k 阅读
4 回答4.3k 阅读
2 回答972 阅读✓ 已解决
2 回答3.5k 阅读
1 回答1.2k 阅读✓ 已解决
2 回答1.4k 阅读✓ 已解决
1 回答593 阅读✓ 已解决
参考:https://tecadmin.net/open-spe...
摘要:
Allow Port for Specific IP
You can also restrict access on any port based on source address. To open port access based on source address needed to add firewall rich rule.
Run the below command to allow access for port 4567 to 192.168.0.0/24 network.
Reload the firewall rules to apply changes.