##Debian/Ubuntu:依赖文件:

Basic build tools
apt-get install -y build-essential pkg-config
Required
apt-get install -y libgnutls28-dev libev-dev
Optional functionality and testing
apt-get install -y libpam0g-dev liblz4-dev libseccomp-dev \

libreadline-dev libnl-route-3-dev libkrb5-dev libradcli-dev \
libcurl4-gnutls-dev libcjose-dev libjansson-dev liboath-dev \
libprotobuf-c-dev libtalloc-dev libllhttp-dev protobuf-c-compiler \
gperf iperf3 lcov libuid-wrapper libpam-wrapper libnss-wrapper \
libsocket-wrapper gss-ntlmssp haproxy iputils-ping freeradius \
gawk gnutls-bin iproute2 yajl-tools tcpdump

For manpages
apt-get install -y ronn

修改 /var/lib/ocserv/profile.xml 文件中的内容可以将服务器的配置推送给客户端
vi /var/lib/ocserv/profile.xml

            <HostEntry>
                <HostName>服务器描述1</HostName>
                <HostAddress>server1_ipaddress:port</HostAddress>
            </HostEntry>
            <HostEntry>
                <HostName>服务器描述2</HostName>
                <HostAddress>server2_ipaddress:port</HostAddress>
            </HostEntry>

Last modification:February 15, 2025
如果觉得我的文章对你有用,请随意赞赏