This script may help you setup your own openconnect_server in debian(>=7),ubuntu(>=14.04).
这是一枚适用于deibian的openconnect_server安装脚本。中文详情 戳这里
============
apt-get update
apt-get upgrade
apt-get install wget
wget -N --no-check-certificate "https://raw.githubusercontent.com/user1121114685/Ocserv_for_Debian_Ubuntu/master/ocservauto.sh" && chmod +x ocservauto.sh && bash ocservauto.sh
bash ocservauto.sh
Profiles in /etc/ocserv/
When you change the profiles,restart the vpn server.
/etc/init.d/ocserv restart
You can get help
bash ocservauto.sh h
============
Ocservauto For Debian Copyright (C) liyangyijie released under GNU GPLv2
Ocservauto For Debian Is Based On SSLVPNauto v0.1-A1
SSLVPNauto For Debian Copyright (C) Alex Fang [email protected] released under GNU GPLv2
Copyright (C) 2015 liyangyijie
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.