-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
不能登录 返回 HTTP 401 #22
Comments
What kind of client are you using? |
I got the same error on both clients:
|
Can you try the AnyConnect client instead of OpenConnect? In the config file, it was set to compliant with Cisco AnyConnect. |
I tried Windows AnyConnect Client 3.1.13015 and failed with different errors:
Update: Changing the starting command to
This is probably problem of my kernel. Update 2: My suspicion above should be valid. Changed to use docker daemon on a Mac, successfully launched with the same docker run command. @ly0 You should try launch you container with the debug flag and check the log message to see if there's any hint, e.g: docker run --name ocserv --privileged -p 443:443 -p 443:443/udp -d tommylau/ocserv ocserv -c /etc/ocserv/ocserv.conf -f -d1
# try connect to trigger error
docker logs ocserv |
tun is needed as far as I know to use ocserv, I'm using Ubuntu as the host. And, till the last time I know, AnyConnect can only connect to port 443 (SSL) other than any other ports. @lacek Can AnyConnect client on Mac connect to the server other than port 443 now? |
@ly0 |
Hello Tommy, I also meet this question. My VPN client is Cisco anyconnect 4.9 and I list the operation steps below:
From my view, ocserv can identify the user information from ocpasswd file. Due to the fewer log messages in docker, I can't identify more information about this case. Do you have any idea? |
@swanduron You can mount the config file to your host, so that you can modify the config file to output more useful information. And you could also remove group settings as a test. Personally, I prefer using "Certificate" method other than username/password method. |
Got inappropriate HTTP CONNECT response: HTTP/1.1 401 Cookie is not acceptable
Creating SSL connection failed
The text was updated successfully, but these errors were encountered: