rcmpayne:
I am using PIA OpenVPN on my pfsense router and every 4-5 days my internet stops. When I check pfsense GUI, I see OpenVPN adapter is down, and I have to manually start it. Doing so always starts up fine, and now I am good for another 4-5 days. Looking at the logs, I see two things.

1. start getting "write UDPv4: Permission denied (code=13)"2. after a few of these i see a restart due to timeout "Inactivity timeout (--ping-restart), restarting"3. Upon restart i fail with "AUTH: Received control message: AUTH_FAILED"4. Adapter stops.

I know I don't have any issues with the GUI saved password as I can login to pfsense and manually start the vpn again, and all is good. I can also restart the pfsense router hardware, and OpneVPN reconnects automatically.

I read another post where the guy had PIA support reset his password, so I did the same thing and updated it in pfsense. This seems to be ok until six days later where I hit the below again. any ideas?

I've bumped the OpenVPn to lev4 logging for the next occurrence in case its needed for this

Derelict:
AUTH_FAILED is, by default, a hard error to OpenVPN and it dies. The real issue there is PIA returning that.

Try adding:

auth-retry nointeract;

to the custom options in the OpenVPN client configuration.

rcmpayne:
OK the Issue is now fixed after working with PIA support a few times. The new configs for those with this sort of issue

OpenVPN client configuration:

persist-keyremote-cert-tls serverreneg-sec 0auth-nocache

Essentially, we added "auth-nocache" and removed "persist-tun". Doing so should cause OpenVPN to opt for a full restart instead of trying to resume the previous session, which tends to fail due to your router likely connecting to a different server.