1. Go to /etc/openvpn3/autoload
You will find two files there: connector.autoload and connector.conf
2. Backup the files and save on other folder.
3. Edit connector.autoload and include lines:
"remote": {
"proxy": {
"host": "proxy-server-name",
"port": "8080",
"username": "proxy-username",
"password": "proxy-password",
"allow-plain-text": true
}
}
Note: You have to set proxy-server-name to an IP or DNS name, port to your port, and credentials.
As this file is a JSON file, you should be sure syntax is ok.
Final file would be something like this:
ubuntu@ip-10-10-8-71:/etc/openvpn3/autoload$ cat connector.autoload
{
"name": "OpenVPN Cloud",
"autostart": true,
"tunnel": {
"persist": true
},
"remote": {
"proxy": {
"host": "proxy-server-name",
"port": "8080",
"username": "proxy-username",
"password": "proxy-password",
"allow-plain-text": true
}
}
}
Note: Pay attention to comma after "}" in the 7th line.
4. After editing, reboot the server and check if VPN tunnel, after reinitialization with: ip a.
If the tunnel is good, confirm it's using proxy, with tcpdump.
If it's not working and you need to reestablish the connection -- restore the config files you saved before and reboot again.
If you don't need to reestablish the connection, you can send me the output of this command and the connector.autoload file you have changed.
#systemctl status openvpn3-autoload.service
Comments
0 comments
Please sign in to leave a comment.