This project integrates OCSERV with CENTOS, ensuring compatibility and successful deployment across CENTOS versions 7, 8, and 9.
Version: 3.0.0
Author: Amir Masoud Noohi
Language: Bash Script
This project requires the following:
- A VPS with a Dedicated IP and root Access
- CENTOS 7, 8, or 9 Operating System
- [optional] A valid SSL certificate
To run the code.py
file, install the following packages for Python:
- radcli
- epel-release
- net-tools
yum install git -y
Start by cloning the project:
git clone https://github.com/amirmnoohi/VPN-using-cisco-ocserv.git && cd VPN-using-cisco-ocserv/
Grant execution access to ocserv.sh
and make it runnable:
chmod +x ocserv.sh
sed -i -e 's/\r$//' ocserv.sh
./ocserv.sh
To modify encryption details, edit ocserv.sh
using nano or vim:
- For organization and server IP address details, edit lines 138-139 and 153-154:
- CN[138] = "Your Company Name"
- organization[139] = "Your Company Name"
- CN[153] = "Server IP Address or any A record to IP"
- organization[154] = "Your Company Name"
Run the script and answer the prompted questions for configuration and default settings. Wait for the script to complete.
Create a Cisco user with the following command:
$ ocpasswd -c /etc/ocserv/ocpasswd Name
This ensures broad compatibility across various CENTOS releases, facilitating a smooth setup process regardless of the specific CENTOS version you are using.
For using this service, you can use Cisco Anyconnect for any platform. All necessary files are gathered here.
For support, reach out to me at:
- Telegram: @amirmnoohi
- Gmail: [email protected]
- MIT license
- Copyright 2018 © CISCO VPN SERVICE.