VPN Client - Setup to Start on reBoot

An application set your TNAS as a VPN server
Post Reply
User avatar
fcs001fcs
Posts: 38
Joined: 09 Aug 2023, 05:14
Canada

VPN Client - Setup to Start on reBoot

Post 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.
F4-423 - 2 x12TB & 1x14TB & 1x16TB - BTRFS TRAID
User avatar
fcs001fcs
Posts: 38
Joined: 09 Aug 2023, 05:14
Canada

Re: VPN Client - Setup to Start on reBoot

Post by fcs001fcs »

Thanks will give it a try soon.
F4-423 - 2 x12TB & 1x14TB & 1x16TB - BTRFS TRAID
User avatar
rhoadsnroses82
Posts: 7
Joined: 01 Dec 2024, 03:41
United States of America

Re: VPN Client - Setup to Start on reBoot

Post 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
User avatar
fcs001fcs
Posts: 38
Joined: 09 Aug 2023, 05:14
Canada

Re: VPN Client - Setup to Start on reBoot

Post 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.
F4-423 - 2 x12TB & 1x14TB & 1x16TB - BTRFS TRAID
User avatar
rhoadsnroses82
Posts: 7
Joined: 01 Dec 2024, 03:41
United States of America

Re: VPN Client - Setup to Start on reBoot

Post 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
User avatar
fcs001fcs
Posts: 38
Joined: 09 Aug 2023, 05:14
Canada

Re: VPN Client - Setup to Start on reBoot

Post 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.
F4-423 - 2 x12TB & 1x14TB & 1x16TB - BTRFS TRAID
User avatar
Herewerare2024
Posts: 47
Joined: 06 Oct 2024, 03:48
Canada

Re: VPN Client - Setup to Start on reBoot

Post 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".
User avatar
Herewerare2024
Posts: 47
Joined: 06 Oct 2024, 03:48
Canada

Re: VPN Client - Setup to Start on reBoot

Post by Herewerare2024 »

...sorry: openvpn --config /path/to/your/PIA-config.ovpn --auth-user-pass /path/to/your credentials.txt
User avatar
RWise232
Posts: 6
Joined: 12 Oct 2023, 07:06
Great Britain

Re: VPN Client - Setup to Start on reBoot

Post 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?
Post Reply

Return to “VPN Server”