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.