如何开启 windows 路由转发功能

开启 win10 转发功能

以管理员身份运行 CMD


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\IPEnableRoute设为1

reg add HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /v IPEnableRouter /D 1 /f

Routing and Remote Access 服务的启动类型更改为自动并启动服务

sc config RemoteAccess start= auto
sc start RemoteAccess

参考文档

  • windows-howto-enable-ip-routing

你可能感兴趣的:(如何开启 windows 路由转发功能)