Switching between multiple OpenVPN servers using Stunnel
Posted: Thu Apr 06, 2023 9:14 am
Hello everyone,
I am using OpenVPN in conjunction with Stunnel to secure my VPN connections. I have a multi-server setup, including a first server in Iran with the following Stunnel configuration:
I would like to extend this configuration to include multiple servers, allowing me to chain the connections through them. Can you please provide guidance or examples of how to modify the Stunnel or OpenVPN configuration files to achieve this functionality?
Is there an efficient way to achieve this functionality, either by modifying the Stunnel or OpenVPN configuration files, or by using scripts to automate the process? Any guidance or code examples would be greatly appreciated.
I am using OpenVPN in conjunction with Stunnel to secure my VPN connections. I have a multi-server setup, including a first server in Iran with the following Stunnel configuration:
Code: Select all
[openvpn_client]
accept = <internal-server-ip>:443
connect = <external-server-ip>:443
cert = /etc/stunnel/stunnel.pem
client = yes
Is there an efficient way to achieve this functionality, either by modifying the Stunnel or OpenVPN configuration files, or by using scripts to automate the process? Any guidance or code examples would be greatly appreciated.