![如何解决 OpenVPN Appliance Server 无法连接的问题](https://linux22.com/image/495767/%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%20OpenVPN%20Appliance%20Server%20%E6%97%A0%E6%B3%95%E8%BF%9E%E6%8E%A5%E7%9A%84%E9%97%AE%E9%A2%98.png)
1) 我有 Windows Server 2008 Standard SP2 2) 我正在运行 Hyper-V,并且 OpenVPN Appliance Server 虚拟运行 3) 我已经按照说明进行了配置,唯一的问题是旧网络适配器没有设置说明中提到的“启用 MAC 地址欺骗”。我的理解是,在 R2 之前,默认情况下启用此功能。 4) 服务器正在运行,Web 界面看起来不错 5) 我正在尝试从 Vista 64 框进行连接,但无法连接
5a) 如果我设置为 UPD,我会卡在授权状态,客户端日志如下所示:
10/11/09 15:00:42: INFO: OvpnConfig: connect...
10/11/09 15:00:42: INFO: Gui listen socket at 34567
10/11/09 15:00:42: INFO: sending start command to instantiator...
10/11/09 15:00:42: INFO: start 34567 ?C:\Users\Peter\AppData\Roaming\OpenVPNTech\config?02369512D0C82A04B88093022DA0226202218022A902264022AE022B?
10/11/09 15:00:42: INFO: Got line from MI->>INFO:OpenVPN Management Interface Version 1 -- type 'help' for more info
10/11/09 15:00:42: INFO: Got line from MI->>HOLD:Waiting for hold release
10/11/09 15:00:43: INFO: Got line from MI->SUCCESS: real-time state notification set to ON
10/11/09 15:00:43: INFO: Got line from MI->SUCCESS: bytecount interval changed
10/11/09 15:00:43: INFO: Got line from MI->SUCCESS: hold flag set to OFF
10/11/09 15:00:43: INFO: Got line from MI->SUCCESS: hold release succeeded
10/11/09 15:00:43: INFO: Got line from MI->>PASSWORD:Need 'Auth' username/password
10/11/09 15:00:43: INFO: Processing PASSWORD.
10/11/09 15:00:43: INFO: OvpnClient: setting need auth to true.
10/11/09 15:00:43: INFO: OvpnConfig: Setting need auth to true.
10/11/09 15:00:43: INFO: Got auth request from active_config from 0
10/11/09 15:00:47: INFO: Sending Credentials....
10/11/09 15:00:47: INFO: Sending 25 bytes for username.
10/11/09 15:00:47: INFO: Sent 25 bytes for username.
10/11/09 15:00:47: INFO: Sending 30 bytes for password.
10/11/09 15:00:47: INFO: Sent 30 bytes for password.
10/11/09 15:00:48: INFO: Got line from MI->SUCCESS: 'Auth' username entered, but not yet verified
10/11/09 15:00:48: INFO: Got line from MI->SUCCESS: 'Auth' password entered, but not yet verified
10/11/09 15:00:48: INFO: Got line from MI->>STATE:1255287647,WAIT,,,
10/11/09 15:00:48: INFO: Got line from MI->>BYTECOUNT:0,42
10/11/09 15:00:48: INFO: Got line from MI->>BYTECOUNT:54,42
10/11/09 15:00:48: INFO: Got line from MI->>STATE:1255287648,AUTH,,,
10/11/09 15:00:50: INFO: Got line from MI->>BYTECOUNT:2560,2868
10/11/09 15:00:52: INFO: Got line from MI->>BYTECOUNT:2560,3378
5b) 我为 tcp 设置服务器并尝试连接,出现授权和重新连接的循环。日志如下:
10/11/09 15:00:42: INFO: Got line from MI->>HOLD:Waiting for hold release
10/11/09 15:00:43: INFO: Got line from MI->SUCCESS: real-time state notification set to ON
10/11/09 15:00:43: INFO: Got line from MI->SUCCESS: bytecount interval changed
10/11/09 15:00:43: INFO: Got line from MI->SUCCESS: hold flag set to OFF
10/11/09 15:00:43: INFO: Got line from MI->SUCCESS: hold release succeeded
10/11/09 15:00:43: INFO: Got line from MI->>PASSWORD:Need 'Auth' username/password
10/11/09 15:00:43: INFO: Processing PASSWORD.
10/11/09 15:00:43: INFO: OvpnClient: setting need auth to true.
10/11/09 15:00:43: INFO: OvpnConfig: Setting need auth to true.
10/11/09 15:00:43: INFO: Got auth request from active_config from 0
10/11/09 15:00:47: INFO: Sending Credentials....
10/11/09 15:00:47: INFO: Sending 25 bytes for username.
10/11/09 15:00:47: INFO: Sent 25 bytes for username.
10/11/09 15:00:47: INFO: Sending 30 bytes for password.
10/11/09 15:00:47: INFO: Sent 30 bytes for password.
10/11/09 15:00:48: INFO: Got line from MI->SUCCESS: 'Auth' username entered, but not yet verified
10/11/09 15:00:48: INFO: Got line from MI->SUCCESS: 'Auth' password entered, but not yet verified
10/11/09 15:00:48: INFO: Got line from MI->>STATE:1255287647,WAIT,,,
10/11/09 15:00:48: INFO: Got line from MI->>BYTECOUNT:0,42
10/11/09 15:00:48: INFO: Got line from MI->>BYTECOUNT:54,42
10/11/09 15:00:48: INFO: Got line from MI->>STATE:1255287648,AUTH,,,
10/11/09 15:00:50: INFO: Got line from MI->>BYTECOUNT:2560,2868
10/11/09 15:00:52: INFO: Got line from MI->>BYTECOUNT:2560,3378
10/11/09 15:00:54: INFO: Got line from MI->>BYTECOUNT:2560,3888
...
有没有办法在服务器上启用强大的日志记录来了解正在发生的事情?有什么想法可以解决这个问题吗?
答案1
由 OpenVpn 支持解决。快速且免费 - 还有什么可要求的呢。
由于我不在 R2 上,所以我必须将我的 mac 地址设为静态。