← 所有文章

FIELD NOTES / 技术札记

atrust vpn 多人使用

atrust vpn 多人使用

vpn

image.png

使用

以 windows 为例

  • windows 开启 vpn
  • windows 开启路由转发
    • 以管理员身份运行 cmd
    • 执行 reg add HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /v IPEnableRouter /D 1 /f
    • 或者进入注册表,将 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\IPEnableRoute设为1
    • 进入服务,将 Routing and Remote Access 服务的启动类型更改为自动并启动服务
    • 或者在 cmd 执行 sc config RemoteAccess start= auto 和 sc start RemoteAccess
  • mac 开启路由转发 sudo route add 172.0.0.0/8 192.168.2.2

参考