This is simple project to setup multiple VPN servers.
-
ubuntu
-
docker-compose
wget https://github.com/docker/compose/releases/download/v2.11.0/docker-compose-linux-x86_64 -O /usr/local/bin/docker-compose ; chmod u+x /usr/local/bin/docker-compose
-
Clone repository on Edge Server
cd /opt git clone https://github.com/ghobadimhd/vpn_set.git cd vpn_set
-
Create the vpn.env from sample
cp vpn.env-sample vpn.env
-
Change the SERVER_ADDRESS and BRIDGE_ADDRESS to Your Servers addresses. You must also change the ADMIN_PASSWORD too.
-
Run Edge services
cd server docker-compose up -d
-
Proceed 1 to 3 from last section
-
Run bridge Services
cd bridge docker-compose up -d
**TODO
***TODO
docker exec openvpn ovctl -h
addprofile, list, and print config file
sub commands:
list print list of existing client certificates
addprofile CLIENTNAME create new client certificate
addprofile_bulk PREFIX COUNT create multiple client certificate
getprofile CLIENTNAME print existing client profile
getcert CLIENTNAME print existing client certificate
getkey CLIENTNAME print existing client private key
revoke CLIENTNAME revoke client certificate
gencrl [CRL_EXPIRE_DAYS default is 365] revoke client certificate
export [-k] [-c] [-p] revoke client certificate
help print this message
**TODO
docker exec ocserv certctl -h
addcert, addcert_bulk, list, and print config file
sub commands:
list print list of existing client certificates
addcert CLIENTNAME create new client certificate
addcert_bulk PREFIX COUNT create multiple client certificate
getpkcs12 CLIENTNAME print existing client pkcs12 certificate
getcert CLIENTNAME print existing client certificate
getkey CLIENTNAME print existing client private key
revoke CLIENTNAME revoke client certificate
gencrl [CRL_EXPIRE_DAYS default is 365] revoke client certificate
export [-k] [-c] [-p] revoke client certificate
help print this message