VPN Client - Setup to Start on reBoot
VPN Client - Setup to Start on reBoot
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.
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.
F4-423 - 2 x12TB & 1x14TB & 1x16TB - BTRFS TRAID
Re: VPN Client - Setup to Start on reBoot
Thanks will give it a try soon.
F4-423 - 2 x12TB & 1x14TB & 1x16TB - BTRFS TRAID
- rhoadsnroses82
- Posts: 7
- Joined: 01 Dec 2024, 03:41

Re: VPN Client - Setup to Start on reBoot
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 timefcs001fcs 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.
Re: VPN Client - Setup to Start on reBoot
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.rhoadsnroses82 wrote: ↑01 Dec 2024, 09:44how 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 timefcs001fcs 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.
F4-423 - 2 x12TB & 1x14TB & 1x16TB - BTRFS TRAID
- rhoadsnroses82
- Posts: 7
- Joined: 01 Dec 2024, 03:41

Re: VPN Client - Setup to Start on reBoot
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 alwaysfcs001fcs wrote: ↑01 Dec 2024, 20:19I 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.rhoadsnroses82 wrote: ↑01 Dec 2024, 09:44how 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 timefcs001fcs 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.
Re: VPN Client - Setup to Start on reBoot
Basically, yes, you can switch by changing the firewall rule, but it is not a one click process, a bit more involved.rhoadsnroses82 wrote: ↑02 Dec 2024, 02:03oh 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 alwaysfcs001fcs wrote: ↑01 Dec 2024, 20:19I 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.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
F4-423 - 2 x12TB & 1x14TB & 1x16TB - BTRFS TRAID
- Herewerare2024
- Posts: 47
- Joined: 06 Oct 2024, 03:48

Re: VPN Client - Setup to Start on reBoot
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".
Set the task to trigger at "power on".
- Herewerare2024
- Posts: 47
- Joined: 06 Oct 2024, 03:48

Re: VPN Client - Setup to Start on reBoot
...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
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?Herewerare2024 wrote: ↑04 Dec 2024, 02:56 ...sorry: openvpn --config /path/to/your/PIA-config.ovpn --auth-user-pass /path/to/your credentials.txt

