如何在 Alpine Linux 中启用 IPv4 转发
你可以以 root 身份运行此简单命令在 Alpine Linux 中启用 IPv4 转发:
enable_ipv4_forwarding.sh
sysctl -w net.ipv4.ip_forward=1此设置重启后不会保留。
要使设置保留,将 net.ipv4.ip_forward=1 追加到 /etc/sysctl.conf:
persist_enable_ipv4.sh
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.confCheck out similar posts by category:
Alpine Linux, Networking
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow