iw4p / OpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv

[Script and Docker 🐳] OpenConnect (Cisco AnyConnect) VPN Server (OCServ) script one key easy configurator and installer
255 stars 133 forks source link

Possibility to edit config file to resolve connection termination problem #24

Closed saeedgitt closed 1 year ago

saeedgitt commented 1 year ago

I configured open connect server on docker on an Ubuntu 22.04 . every time the connection is terminated after a while. as I see the config file there has been put in this repo is a parameter named "auth_timeout". how can I edit that parameter value?

iw4p commented 1 year ago

Git clone the project Modify ocserv.conf file Create image and run Dockerfile manually

saeedgitt commented 1 year ago

Thanks, What about connection termination? any idea? I searched other issues in this repo but didn't find any answer .don't you have any suggestion?

iw4p commented 1 year ago

Try to comment or remove UDP port line from ocserv.conf. One TCP line for port 443 is enough.

saeedgitt commented 1 year ago

Thanks but it didn't resolve the problem .Here is the Error: " Received server disconnect Send BYE packet: Server request Error: argument "via" is wrong: use nexthop syntax to specify multiple via

Session terminated by server; exiting. "

iw4p commented 1 year ago

I suggest modifying ocserv.conf and try it on different VPSs.