如何在 OS X 中启用“数据包转发”

4 tcpip forwarding packet macos

如何在 Mac OS X 中启用数据包转发?

Google 为我提供了大量有关 Windows 和 Linux 的提示,但没有为 OS X 提供提示。

小智 11

您可以通过进入sudo sysctl -w net.inet.ip.forwarding=1终端来启用数据包转发。