Fast multiple configurations switching (enable/disable) for PiVPN and 3X-UI.
You should have at least one server with allowed SSH connection with installed pivpn or 3x-ui panels.
-
Install Ansible according to the official instructions.
-
Install git according to the official instructions.
-
Download the repository to your computer:
git clone https://github.com/exmanka/ksiVPN-ansible-pivpn-3xui.git
-
Move to project directory:
cd ksiVPN-ansible-pivpn-3xui
-
Add your servers to file
hosts
according to template in file. -
Run playbook for pivpn on servers (3x-ui will be added later):
ansible-playbook pivpn-switch.yml -e "client=<client> state=<state>"
-
Replace:
<client>
— unique set of characters for desired group of configurations.
For example, you want to turn on/off onlypc_KSIVA
andsp_KSIVA
configurations of many avaiable:pc_Masheb4ka
,sp_Egor
,test
,pc_KSIVA
,sp_KSIVA
. You can passKSIVA
orksi
.<state>
—-on
to enable desired group of configurations,-off
to disable desired group of configurations.
🔥 ksiVPN — an open source student project that has become something more not only for its creator, but also for most customers .Thanks to hard work, the use of basic modern protocols and competent server rental, the project is able to provide the highest quality VPN connection for the minimum cost.