{"id":19866279,"url":"https://github.com/iw4p/OpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv","last_synced_at":"2025-05-02T05:32:34.208Z","repository":{"id":38316002,"uuid":"224263163","full_name":"iw4p/OpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv","owner":"iw4p","description":"[Script and Docker 🐳] OpenConnect (Cisco AnyConnect) VPN Server (OCServ) script one key easy configurator and installer","archived":false,"fork":false,"pushed_at":"2025-04-26T07:28:44.000Z","size":24,"stargazers_count":269,"open_issues_count":17,"forks_count":148,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-26T08:28:55.640Z","etag":null,"topics":["anyconnect","cisco-anyconnect","docker","ocserv","openconnect","openconnect-vpn-server","vpn"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iw4p.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-11-26T18:48:24.000Z","updated_at":"2025-04-26T07:28:48.000Z","dependencies_parsed_at":"2025-04-26T08:23:38.828Z","dependency_job_id":"ef63e480-db1e-4f23-8e72-b3daf98907b9","html_url":"https://github.com/iw4p/OpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iw4p%2FOpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iw4p%2FOpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iw4p%2FOpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iw4p%2FOpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iw4p","download_url":"https://codeload.github.com/iw4p/OpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251993002,"owners_count":21677022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anyconnect","cisco-anyconnect","docker","ocserv","openconnect","openconnect-vpn-server","vpn"],"created_at":"2024-11-12T15:25:22.992Z","updated_at":"2025-05-02T05:32:29.697Z","avatar_url":"https://github.com/iw4p.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# OpenConnect-VPN-Server\n**2022 OCT UPDATE**: We dockerized and added Dockerfile to run it anywhere you want on any linux distro easily.\nBuggy script for configuring OpenConnect (ocserv) protocol on the server easily and automatically.\n\n**2023 JAN UPDATE**: We added a help instruction for Docker custom installation so everyone can fully customized ocserv configuration for him/her self like port number, custom header etc.\n\n## Docker Installation\n1. Install Docker\n2. Build docker image\n```bash\ndocker build -t ocserv https://github.com/iw4p/OpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv.git\n```\n\n3. Run docker container\n```bash\ndocker run --name ocserv --privileged -p 443:443 -p 443:443/udp -d ocserv\n```\n\n4. Add user\n```bash\ndocker exec -ti ocserv ocpasswd -c /etc/ocserv/ocpasswd testUserName\n```\n\n5. Change user password\n```bash\ndocker exec -ti ocserv ocpasswd -c /etc/ocserv/ocpasswd testUserName\n```\n\n6. Delete user\n```bash\ndocker exec -ti ocserv ocpasswd -c /etc/ocserv/ocpasswd -d testUserName\n```\n\n7. Lock user\n```bash\ndocker exec -ti ocserv ocpasswd -c /etc/ocserv/ocpasswd -l testUserName\n```\n\n8. Unlock user\n```bash\ndocker exec -ti ocserv ocpasswd -c /etc/ocserv/ocpasswd -u testUserName\n```\n\n9. Show all users and their hashed password\n```bash\ndocker exec -ti ocserv cat /etc/ocserv/ocpasswd\n```\n\n## Script Installation\nTested on ubuntu 18.04 and 16.04.\n\nDownload and saving script on your server:\n```bash\ncurl -O https://raw.githubusercontent.com/iw4p/OpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv/master/ocserv-install.sh\n```\n\nMaking script executable\n```bash\nchmod +x ocserv-install.sh\n```\n\nAnd then just run it:\n```sh\n./ocserv-install.sh\n``` \nor\n```sh\nsudo bash ocserv-install.sh\n``` \n\n\n## Features\n- Easy install\n- Easy uninstall\n- Add User\n- Change Password\n- Show All Users\n- Delete User\n- Lock User\n- Unlock User\n\n## How to connect to it?\nFor making connection to your server, you can use `AnyConnect`, `OpenConnect` or other alternative clients.\n\n- AnyConnect: [GUI AnyConnect client for available platforms](https://it.umn.edu/vpn-downloads-guides).\n- OpenConnect: [OpenConnect client for Linux](https://computingforgeeks.com/how-to-connect-to-vpn-server-with-openconnect-ssl-vpn-client-on-linux/).\n\nAnd one more thing, contributions are welcome.\n\n## How to customize the configuration?\nIn docker way, at the beginning you have to clone the repo:\n```sh\ngit clone https://github.com/iw4p/OpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv.git\n```\n\ncd to the directory\n```sh\ncd ./OpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv\n```\nYou can change port, disable UDP, add custom-header and so on.\nModify and customize ocserv.conf file and then build your image with modified ocserv.conf:\n```sh\ndocker build . -t ocserv\n```\n\nCreate new container from ocserv image\n```sh\ndocker run --name ocserv --privileged -p 443:443 -p 443:443/udp -d ocserv\n```\n\nNext steps like add or remove users are same as Docker Installation part.\n\n\n## Issues\nFeel free to submit issues and enhancement requests or contact me via [vida.page/nima](https://vida.page/nima).\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=iw4p/OpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv\u0026type=Date)](https://star-history.com/#iw4p/OpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv\u0026Date)\n\n\n## More\nThe script is based on [here](https://ocserv.gitlab.io/www/recipes-ocserv-configuration-basic.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiw4p%2FOpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiw4p%2FOpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiw4p%2FOpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv/lists"}