- Copy all the code below, paste it into your server to install, your server must be Centos7
- yum install nano wget -y
- wget https://raw.githubusercontent.com/arminkit/ocserv/master/install_script.sh
- chmod +x install_script.sh
- ./install_script.sh
- sudo -i
- yum install wget -y
- wget https://raw.githubusercontent.com/arminkit/ocserv/master/radius_for_ocserv.sh
- chmod +x radius_for_ocserv.sh
- ./radius_for_ocserv.sh
- start: systemctl start ocserv
- stop: systemctl stop ocserv
- restart: systemctl restart ocserv
- status: systemctl status ocserv
- Auto start: systemctl enable ocserv
- Add:/root/anyconnect/user_add.sh
- change password:ocpasswd -c /etc/ocserv/ocpasswd user_name
- Delete user: /root/anyconnect/user_del.sh
vi /var/lib/ocserv/profile.xml
<ServerList>
<HostEntry>
<HostName>Description1</HostName>
<HostAddress>server1_ipaddress:port</HostAddress>
</HostEntry>
<HostEntry>
<HostName>Description2</HostName>
<HostAddress>server2_ipaddress:port</HostAddress>
</HostEntry>
</ServerList>