Centos6安装ocserv/openconnect/cisco AnyConnect vpn

安装编译环境及依赖,如部分软件不能安装请先安装epel源。 yum install pam-devel readline-devel http-parser-devel unbound gmp-devel yum install tar gzip xz wget gcc make autoconf ocserv编译安装依赖,ocserv需要gnutls3版本以上,gnutls依赖nettle2.7.1: wget ftp://ftp.gnu.org/gnu/nettle/nettle-2.7.1.tar.gz tar zxvf nettle-2.7.1.tar.gz cd nettle-2.7.1/ ./configure –prefix=/usr/local/nettle make && make install echo ‘/usr/local/nettle/lib64/’ > /etc/ld.so.conf.d/nettle.conf ldconfig 安装gnutls3.3.9: export NETTLE_CFLAGS=”-I/usr/local/nettle/include/” export NETTLE_LIBS=”-L/usr/local/nettle/lib64/ -lnettle” export HOGWEED_LIBS=”-L/usr/local/nettle/lib64/ -lhogweed” export HOGWEED_CFLAGS=”-I/usr/local/nettle/include” wget ftp://ftp.gnutls.org/gcrypt/gnutls/v3.3/gnutls-3.3.9.tar.xz tar xvf gnutls-3.3.9.tar.xz cd gnutls-3.3.9/ ./configure […]