travislee89 / ocserv-auto

Auto Install Ocserv Server for CentOS/RedHat 7
324 stars 190 forks source link

ocserv起来后 客户端无法连接成功 #6

Closed coderBF closed 7 years ago

coderBF commented 7 years ago

Connected to HTTPS on myip Failed to read from SSL socket: TLS 链接非正常地终止了。 获取 HTTPS 响应出错 GET https://myip Connected to myip:443 SSL negotiation with myip Server certificate verify failed: signer not found Connected to HTTPS on myip Failed to read from SSL socket: TLS 链接非正常地终止了。 获取 HTTPS 响应出错 Failed to obtain WebVPN cookie

客户端连接会报这样的错误

ocserv的服务已经正常启动 service ocserv status Redirecting to /bin/systemctl status ocserv.service ● ocserv.service - OpenConnect SSL VPN server Loaded: loaded (/usr/lib/systemd/system/ocserv.service; enabled; vendor preset: disabled) Active: active (running) since 三 2017-01-11 20:54:31 EST; 53min ago Docs: man:ocserv(8) Process: 20179 ExecStart=/usr/sbin/ocserv --pid-file /var/run/ocserv.pid --config /etc/ocserv/ocserv.conf (code=exited, status=0/SUCCESS) Process: 20177 ExecStartPre=/usr/sbin/ocserv-genkey (code=exited, status=0/SUCCESS) Main PID: 20181 (ocserv-main) CGroup: /system.slice/ocserv.service ├─20181 ocserv-main └─20182 ocserv-sm

1月 11 20:54:30 localhost.localdomain systemd[1]: Starting OpenConnect SSL VPN server... 1月 11 20:54:31 localhost.localdomain ocserv[20179]: Parsing plain auth method subconfig using legacy format 1月 11 20:54:31 localhost.localdomain ocserv[20179]: note: setting 'plain' as primary authentication method 1月 11 20:54:31 localhost.localdomain ocserv[20179]: note: setting 'file' as supplemental config option 1月 11 20:54:31 localhost.localdomain ocserv[20181]: main: initialized ocserv 0.11.6 1月 11 20:54:31 localhost.localdomain ocserv[20182]: sec-mod: reading supplemental config from files 1月 11 20:54:31 localhost.localdomain ocserv[20182]: sec-mod: sec-mod initialized (socket: /var/lib/ocserv/ocserv.sock.20181) 1月 11 20:54:31 localhost.localdomain systemd[1]: Started OpenConnect SSL VPN server. 1月 11 21:44:41 localhost.localdomain ocserv[20181]: main: myclientip:53531 user disconnected (reason: unspecified, rx: 0, tx: 0) 1月 11 21:44:41 localhost.localdomain ocserv[20181]: main: myclientip:53532 user disconnected (reason: unspecified, rx: 0, tx: 0)

travislee89 commented 7 years ago

因为epel的http-parser升级到2.7,和ocserv有兼容性问题。 已经更新了脚本解决这个问题。

你可以手动运行 function Install-http-parser { } 里的代码来修复这个问题。