However, some servers may go offline from time to time due to technical faults or for maintenance purposes in USA. PIA boasts a network of 35,564 servers, which is a significant amount. Switch serversįirst of all, if you find PIA not connecting in USA, you should try changing the server location to multiple others. Avail Exclusive Offer – $2.08/mo ! Private Internet Access Not Working on Windows In USA? Troubleshooting Guideįollowing are some useful tips to try when you have PIA VPN not connecting in USA: 1. If you get the error message “/etc/openvpn/pia/portforward.If you have tried applying the common steps when the VPN won’t connect in USA and still can’t get it to work, a good alternative to try is PureVPN which is excellent for unblocking in USA as well as privacy for highly inexpensive rates. Modify /usr/lib/systemd/system/rvice and tweak the After line and add a Required line so it now reads this: Required=pia.serviceĭon’t forget to run a sudo systemctl daemon-reload afterward. If you are paranoid about transmission running without the VPN working you can tweak your transmission service to rely on the pia service before starting. Test the script by running it manually (make sure both your pia service and transmission services are already running.) I’ve noticed that the script will say success even on failure which is why I suggest using bash -x so you can see actual error messages from PIA regarding port forwarding: sudo bash -x /etc/openvpn/pia/portforward.shĪfter that’s run you can check your transmission daemon to ensure it is listening on the PIA port that’s been forwarded.Ĭonfigure to run on startup and every two hours by invoking cron: sudo crontab sleep 60 & /etc/openvpn/pia/portforward.sh | while IFS= read -r line do echo "$(date) $line" done > /var/log/pia_portforward.log 2>&1 #PIA Port ForwardĠ */2 * * * /etc/openvpn/pia/portforward.sh | while IFS= read -r line do echo "$(date) $line" done > /var/log/pia_portforward.log 2>&1 #PIA Port Forward Sudo chmod +x /etc/openvpn/portforward.shĮdit the script to provide PIA username and pass, and Transmission user/pass (if you have that configured.) The variables to change are USERNAME,PASSWORD, TRANSUSER, and TRANSPASS Here is the current list.ĭownload script to pia directory sudo wget -O /etc/openvpn/pia/portforward.sh Note: PIA only supports port forwarding from specific regions. I took the script from this guide and tweaked it a bit to suit my needs (and to correct a syntax error) PIA is awesome because it supports port forwarding to facilitate things like torrents. Start the service (or reboot) and then use curl to verify your external IP has changed sudo systemctl start pia.service Reload systemd daemons and enable at boot: sudo systemctl daemon-reload Test if it’s working by manually running OpenVPN sudo openvpn -config /etc/openvpn/PIA_SITE_FILENAME.ovpn -auth-user-pass /etc/openvpn/pia/.secretĬreate a systemd service file to get OpenVPN to run on startup sudo vim /usr/lib/systemd/system/pia.serviceĮxecStart=/usr/sbin/openvpn -daemon -config "/etc/openvpn/PIA_SITE_FILENAME.ovpn" -auth-user-pass /etc/openvpn/.secret #Change permissions to be readable only by root #Enter PIA credentials into the file, then save and exit The format is simply the first line being your PIA username, and the second line being your PIA password, nothing else. Now create a credentials file to specify your PIA username and password. Sudo unzip openvpn.zip -d /etc/openvpn/pia Next grab PIA’s ovpn files for their servers: wget I then used this guide to help me set up port forwarding to work with transmission-daemon.įirst, install openvpn & iproute sudo yum -y install openvpn I tweaked it a bit to work with CentOS 7. I followed this guide from to get me going. Fortunately, PIA provides ovpn files that fully work with the openVPN software, which does work headlessly. Unfortunately PIA software requires a GUI to work. I wanted to initiate a connection to my VPN provider Private Internet Access (PIA) from one of my headless CentOS 7 servers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |