openconnect---with gp
https://blog.csdn.net/ximerr/article/details/87111624
https://git.ntut.com.tw/others/openconnect
下载编译 openconnect ,命令依次为:
git clone https://github.com/dlenski/openconnect.git
Building from source on Linux
Under Debian-based or Ubuntu-based distributions, this should install the requirements:
$ sudo apt-get install \
build-essential gettext autoconf automake libproxy-dev \
libxml2-dev libtool vpnc-scripts pkg-config zlib1g-dev \
libgnutls-dev # may be named libgnutls28-dev on some recent Debian/Ubuntu-based distros
Once you have all the build dependencies installed, checkout and build from this repository.
$ git clone https://github.com/dlenski/openconnect.git
$ cd openconnect
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install && sudo ldconfig
Docker
Building an openconnect Docker image is as easy as:
$ docker build -t openconnect .
Then, you can run that docker image as a container:
$ docker run -ti openconnect
/openconnect# ./openconnect --protocol=gp server.company.com
But that’ll restrict the use of the tunnel to inside the container, and maybe you want to use it system-wide. For that, you’ll need a privileged container making use of the host (you computer) network:
$ docker run -ti --rm --privileged --net=host openconnect
/openconnect# ./openconnect --protocol=gp server.company.com