0

我正在尝试在 ACI ( https://github.com/kylemanna/docker-openvpn ) 中使用这个 OpenVPN 映像。作为其中的一部分,它尝试设置 iptables 并失败。

+ setupIptablesAndRouting + iptables -t nat -C POSTROUTING -s 192.168.255.0/24 -o eth0 -j MASQUERADE iptables v1.6.2: can't initialize iptables table 'nat': Permission denied (you must be root) Perhaps iptables or your kernel needs to be upgraded. + iptables -t nat -A POSTROUTING -s 192.168.255.0/24 -o eth0 -j MASQUERADE iptables v1.6.2: can't initialize iptables table 'nat': Permission denied (you must be root) Perhaps iptables or your kernel needs to be upgraded.

这可能是因为 docker 镜像--cap-add=NET_ADMIN用于在 Docker 中正常运行。有没有办法在 ACI 中执行此操作(或以更高权限运行该 iptables 命令)?

4

0 回答 0