版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2005/01/27/000567.html
由于 2.0 rc6 里面 server和client已经分离
(openvpnserv.exe & openvpn.exe)
所以客户端的话 无法再使用以前的默认 "OpenVPN Service"
添加方法:
和以前 vmware 同理
通过 srvany (srvinstw.exe/srvany.exe) 添加Services
然后设置Parameters
需要注意的地方:
1.一定要加引号 不然 Program Files 就被截断了
2.配置的key如果用绝对路径要用\\
secret "C:\\Program Files\\OpenVPN\\config\\ipcn.okey"
3.本地路由修改指定网关为非本地地址 应为server对端地址
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\openvpn]
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):45,3a,5c,7a,68,78,69,75,6c,5c,54,4f,4f,4c,53,5c,73,72,76,61,\
6e,79,5c,73,72,76,61,6e,79,2e,65,78,65,00
"DisplayName"="openvpn"
"ObjectName"="LocalSystem"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\openvpn\Parameters]
"Application"="\"C:\\Program Files\\OpenVPN\\bin\\openvpn.exe\" --config \"C:\\Program Files\\OpenVPN\\config\\nagios.ovpn\""
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\openvpn\Security]
"Security"=hex:01,00,14,80,a0,00,00,00,ac,00,00,00,14,00,00,00,30,00,00,00,02,\
00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
00,00,02,00,70,00,04,00,00,00,00,00,18,00,fd,01,02,00,01,01,00,00,00,00,00,\
05,12,00,00,00,00,00,00,00,00,00,1c,00,ff,01,0f,00,01,02,00,00,00,00,00,05,\
20,00,00,00,20,02,00,00,00,00,00,00,00,00,18,00,8d,01,02,00,01,01,00,00,00,\
00,00,05,0b,00,00,00,20,02,00,00,00,00,1c,00,fd,01,02,00,01,02,00,00,00,00,\
00,05,20,00,00,00,23,02,00,00,00,00,00,00,01,01,00,00,00,00,00,05,12,00,00,\
00,01,01,00,00,00,00,00,05,12,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\openvpn\Enum]
"0"="Root\\LEGACY_OPENVPN\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001
----->
openvpn TAP driver deal method
OpenVPN
OpenVPN 新一代的领军旗舰 前进方向的代表
|
|