Switching between multiple OpenVPN servers using Stunnel

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
Lordfarshad
OpenVpn Newbie
Posts: 1
Joined: Thu Apr 06, 2023 9:07 am

Switching between multiple OpenVPN servers using Stunnel

Post by Lordfarshad » 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:

Code: Select all

[openvpn_client]
accept = <internal-server-ip>:443
connect = <external-server-ip>:443
cert = /etc/stunnel/stunnel.pem
client = yes
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.

Post Reply