tlslink / sslcon

Go implementation of the OpenConnect VPN Protocol for client side development. Engine for AnyLink Secure Client.
MIT License
37 stars 22 forks source link

how to use with anyConnect #7

Closed 3052 closed 5 months ago

3052 commented 5 months ago
> sslcon connect -s PRIVATE -u PRIVATE -p PRIVATE
dial tcp 127.0.0.1:6210: connectex: No connection could be made because the target machine actively 
refused it.
itviewer commented 5 months ago

first

sudo ./vpnagent install
3052 commented 5 months ago

OK thats good, but now I get:

auth error 302 Object Moved

itviewer commented 5 months ago

Not enough information, I don't know exactly what problem you are encountering

3052 commented 5 months ago

I run

vpnagent

then in another terminal I run

sslcon connect -s PRIVATE -u PRIVATE -p PRIVATE

result

auth error 302 Object Moved

itviewer commented 5 months ago

What is your server program, such as which version of ocserv? Can you connect using other clients, such as openconnect? Or you can email me a test account to debug the problem.

3052 commented 5 months ago
> openconnect https://desktop.PRIVATE.com
POST https://desktop.PRIVATE.com/
Connected to 4.14.18.PRIVATE:443
SSL negotiation with desktop.PRIVATE.com
Connected to HTTPS on desktop.PRIVATE.com with ciphersuite (TLS1.3)-(ECDHE-SECP256R1)-(RSA-PSS-RSAE-SHA256)-(AES-256-GCM)
Got HTTP response: HTTP/1.1 302 Object Moved
GET https://desktop.PRIVATE.com/
Connected to 4.14.18.PRIVATE:443
SSL negotiation with desktop.PRIVATE.com
Connected to HTTPS on desktop.PRIVATE.com with ciphersuite (TLS1.3)-(ECDHE-SECP256R1)-(RSA-PSS-RSAE-SHA256)-(AES-256-GCM)
Got HTTP response: HTTP/1.1 302 Object Moved
GET https://desktop.PRIVATE.com/logon/LogonPoint/index.html
SSL negotiation with desktop.PRIVATE.com
Connected to HTTPS on desktop.PRIVATE.com with ciphersuite (TLS1.3)-(ECDHE-SECP256R1)-(RSA-PSS-RSAE-SHA256)-(AES-256-GCM)
XML response has no "auth" node
Failed to complete authentication
itviewer commented 5 months ago

It looks like it's a server-side issue on your end, I can't offer any advice.