Page 1 of 1
VPN Client - Setup to Start on reBoot
Posted: 26 Aug 2023, 18:56
by fcs001fcs
I have setup a OpenVPN Client using PIA (Private Internet Access) via GUI and it is working fine on a F4-423 with the latest TOS.
The issue I have is that it does not start automatically on a reboot or a power-off - power-on cycle. I want the VPN on at all times when the NAS is running.
What are the commands to setup auto-start the PIA OpenVPN Client on bootup? Thanks.
Re: VPN Client - Setup to Start on reBoot
Posted: 27 Aug 2023, 19:14
by Pe6yc
Re: VPN Client - Setup to Start on reBoot
Posted: 30 Aug 2023, 05:03
by fcs001fcs
Thanks will give it a try soon.
Re: VPN Client - Setup to Start on reBoot
Posted: 01 Dec 2024, 09:44
by rhoadsnroses82
fcs001fcs wrote: ↑26 Aug 2023, 18:56
I have setup a OpenVPN Client using PIA (Private Internet Access) via GUI and it is working fine on a F4-423 with the latest TOS.
The issue I have is that it does not start automatically on a reboot or a power-off - power-on cycle. I want the VPN on at all times when the NAS is running.
What are the commands to setup auto-start the PIA OpenVPN Client on bootup? Thanks.
how did you set up the PIA with GUI? PIA has an app for TOS? I have protonVPN and have been trying to import the openVPN config file into the manual openVPN creation thing in TOS and it just says "configuration failed" every time
Re: VPN Client - Setup to Start on reBoot
Posted: 01 Dec 2024, 20:19
by fcs001fcs
rhoadsnroses82 wrote: ↑01 Dec 2024, 09:44
fcs001fcs wrote: ↑26 Aug 2023, 18:56
I have setup a OpenVPN Client using PIA (Private Internet Access) via GUI and it is working fine on a F4-423 with the latest TOS.
The issue I have is that it does not start automatically on a reboot or a power-off - power-on cycle. I want the VPN on at all times when the NAS is running.
What are the commands to setup auto-start the PIA OpenVPN Client on bootup? Thanks.
how did you set up the PIA with GUI? PIA has an app for TOS? I have protonVPN and have been trying to import the openVPN config file into the manual openVPN creation thing in TOS and it just says "configuration failed" every time
I gave up on the TOS VPN Setup and setup the PIA Client on my pfSense Router and used Firewall Rules to force all NAS traffic through a PIA VPN. Sorry, I couldn't be more helpful.
Re: VPN Client - Setup to Start on reBoot
Posted: 02 Dec 2024, 02:03
by rhoadsnroses82
fcs001fcs wrote: ↑01 Dec 2024, 20:19
rhoadsnroses82 wrote: ↑01 Dec 2024, 09:44
fcs001fcs wrote: ↑26 Aug 2023, 18:56
I have setup a OpenVPN Client using PIA (Private Internet Access) via GUI and it is working fine on a F4-423 with the latest TOS.
The issue I have is that it does not start automatically on a reboot or a power-off - power-on cycle. I want the VPN on at all times when the NAS is running.
What are the commands to setup auto-start the PIA OpenVPN Client on bootup? Thanks.
how did you set up the PIA with GUI? PIA has an app for TOS? I have protonVPN and have been trying to import the openVPN config file into the manual openVPN creation thing in TOS and it just says "configuration failed" every time
I gave up on the TOS VPN Setup and setup the PIA Client on my pfSense Router and used Firewall Rules to force all NAS traffic through a PIA VPN. Sorry, I couldn't be more helpful.
oh i see yea i have seen others go this route as well. i may try this, but that probably means you can't easily switch VPN servers right? basically whatever VPN server you initially configure your router to use, you'd have to leave it as that specific server always
Re: VPN Client - Setup to Start on reBoot
Posted: 02 Dec 2024, 05:31
by fcs001fcs
rhoadsnroses82 wrote: ↑02 Dec 2024, 02:03
fcs001fcs wrote: ↑01 Dec 2024, 20:19
rhoadsnroses82 wrote: ↑01 Dec 2024, 09:44
how did you set up the PIA with GUI? PIA has an app for TOS? I have protonVPN and have been trying to import the openVPN config file into the manual openVPN creation thing in TOS and it just says "configuration failed" every time
I gave up on the TOS VPN Setup and setup the PIA Client on my pfSense Router and used Firewall Rules to force all NAS traffic through a PIA VPN. Sorry, I couldn't be more helpful.
oh i see yea i have seen others go this route as well. i may try this, but that probably means you can't easily switch VPN servers right? basically whatever VPN server you initially configure your router to use, you'd have to leave it as that specific server always
Basically, yes, you can switch by changing the firewall rule, but it is not a one click process, a bit more involved.
Re: VPN Client - Setup to Start on reBoot
Posted: 04 Dec 2024, 02:48
by Herewerare2024
You can add a a triggered scheduled task which uses the following command: openvpn --config /path/to/your/config.ovpn
Set the task to trigger at "power on".
Re: VPN Client - Setup to Start on reBoot
Posted: 04 Dec 2024, 02:56
by Herewerare2024
...sorry: openvpn --config /path/to/your/PIA-config.ovpn --auth-user-pass /path/to/your credentials.txt
Re: VPN Client - Setup to Start on reBoot
Posted: 11 Dec 2024, 07:09
by RWise232
Herewerare2024 wrote: ↑04 Dec 2024, 02:56
...sorry: openvpn --config /path/to/your/PIA-config.ovpn --auth-user-pass /path/to/your credentials.txt
I am looking to do the same with my VPN connection. I have located the .ovpn file but can someone confirm where the "credentials.txt" file is located, or if it needs to be manually created what format should the file be in?