启用 IP 转发
操作步骤
sudo sysctl -w net.ipv4.ip_forward=1sudo sysctl -w net.ipv6.conf.all.forwarding=1
sudo nano /etc/sysctl.confnet.ipv4.ip_forward=1net.ipv6.conf.all.forwarding=1
sudo sysctl -p
netsh interface ipv4 set global forwarding=enablednetsh interface ipv6 set global forwarding=enabled
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters
最后更新于