PIA Setup Asus Merlin Firmware with Selective Routing
I have a QNAP TS-451 and the OpenVPN client sucks and doesn't stay connected for more than a few minutes. I also had other issues as well so I decided to approach the problem a different way. I bought an Asus RT-66U installed Merlin Firmware (378.55) latest as of this writing. I also wanted to use selective routing and direct only the QNAP NAS through the VPN. Here is how I setup
1. Ensure you have static IP address assigned to NAS box. I give credit where it's due and I used lweddin1 instructions as a foundation for success. However, if you download the OVPN config file it will import all the settings needed minus the certificate.
2. Copy the certificate below and paste into the Certificate Authority area. (show by lweddin1)
3. Enter your PIA user credentials and you should be able to connect.
The instructions above will direct every client on your LAN through the VPN. I only wanted my QNAP box which hosts my torrent client to use the VPN. I also noticed a slight slowdown in my connection by using the VPN. The angy wife theory applies.
4. Log back into your router and click the VPN button and OpenVPN client. Scroll down to 'Redirect Internet Traffic' and select 'Policy Rules'.

Enter a description. I put QNAP NAS and enter the ip address of that client. For destination enter 0.0.0.0. I checked 'Yes' in the box to 'Block routed clients if tunnel goes down'. I'd rather the wife not get another nastygram from our ISP.
5. Click apply and your done.
6. To verify it's working and you have a different external IP address on the QNAP putty (SSH) into the box. Open bash and type: curl -s icanhazip.com you should get a different IP address as your other clients on LAN. You can check those by by simply browsing to: https://www.whatismyip.com/
1. Ensure you have static IP address assigned to NAS box. I give credit where it's due and I used lweddin1 instructions as a foundation for success. However, if you download the OVPN config file it will import all the settings needed minus the certificate.
2. Copy the certificate below and paste into the Certificate Authority area. (show by lweddin1)
-----BEGIN CERTIFICATE-----
MIID2jCCA0OgAwIBAgIJAOtqMkR2JSXrMA0GCSqGSIb3DQEBBQUAMIGlMQswCQYD
VQQGEwJVUzELMAkGA1UECBMCT0gxETAPBgNVBAcTCENvbHVtYnVzMSAwHgYDVQQK
ExdQcml2YXRlIEludGVybmV0IEFjY2VzczEjMCEGA1UEAxMaUHJpdmF0ZSBJbnRl
cm5ldCBBY2Nlc3MgQ0ExLzAtBgkqhkiG9w0BCQEWIHNlY3VyZUBwcml2YXRlaW50
ZXJuZXRh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ATE-----
3. Enter your PIA user credentials and you should be able to connect.
The instructions above will direct every client on your LAN through the VPN. I only wanted my QNAP box which hosts my torrent client to use the VPN. I also noticed a slight slowdown in my connection by using the VPN. The angy wife theory applies.
4. Log back into your router and click the VPN button and OpenVPN client. Scroll down to 'Redirect Internet Traffic' and select 'Policy Rules'.

Enter a description. I put QNAP NAS and enter the ip address of that client. For destination enter 0.0.0.0. I checked 'Yes' in the box to 'Block routed clients if tunnel goes down'. I'd rather the wife not get another nastygram from our ISP.
5. Click apply and your done.
6. To verify it's working and you have a different external IP address on the QNAP putty (SSH) into the box. Open bash and type: curl -s icanhazip.com you should get a different IP address as your other clients on LAN. You can check those by by simply browsing to: https://www.whatismyip.com/
Comments
Where do you do this?:
"1. Ensure you have static IP address assigned to NAS box."
I do not see anything like "NAS box."
I'm just trying to do this on my RT-AC68U withe the current Merlin firmware 380.58. Under the routing rules, I see there is a new dropdown box Iface, which I assume means Interface, with a choice of WAN or VPN. Any idea what I should use? I am a bit of a novice at this stuff.
https://www.vpnuniversity.com/routers/how-to-setup-openvpn-asuswrt-merlin