so I'm including some extra hints. This is tested on Debian

I did something similar。

to run this at boot time, everything local stays local. I've quoted the instructions I used from PIA for posterity. key words: private internet access, so I'm including some extra hints. This is tested on Debian. Install openvpn as per for the command line. You can now start and stop the VPN manually, especially here (including lots more useful information in the comments). However,。

if you run the command as before, entering your PIA username and password each time. Next step is to connect without providing credentials interactively. To do this, openvpn, openvpn needs to be run from a script along the lines of this: #!/bin/sh exec 1/var/log/vpn 21 case "$1" in start) echo "Connecting to PIA VPN " /usr/sbin/openvpn --config / path/to/config .ovpn ;; stop) echo "Closing connection to PIA VPN " killall openvpn ;; *) echo "Usage: /etc/init.d/vpn {start|stop}" exit 1 ;; esac exit 0 Fill in the red fields for your system. If you (as root) place this script in /etc/init.d/ (for Slackware check out /etc/rc.d/) and then run update-rc.d vpn defaults then this will be added to your boot sequence. (This command is Debian specific.) At this point you also have to fully specify the paths in your .opvn file as it is now being run from a script without context. The script logs to /var/log/vpn Hope this is useful to someone. Alles anzeigen At first I was going to try to make only certain apps use the VPN and thought that I had to enable the VPN per app but it turns out that once the VPN client is running all outgoing traffic runs on the VPN. I'm good with that. Transmission won't work out of the box though you have to hunt for a setting - Micro Transport Protocol (µTP) ---- Enable µTP. should be disabled. to test if my VPN was working I did two things. from the command line I did wget this downloads a text with the ip address used to connect. then I went to https://torguard.net/checkmytorrentipaddress.php, edit the .ovpn file you are using to connect. Change the line auth-users-pass to auth-users-pass .secrets then create a text file in the same directory called .secrets and in it place your username and password on the first and second lines respectively. Make sure you protect this information from other users on your system with chmod 600 .secrets Now, eg openvpn 'US New York.ovpn' then it should connect without asking you anything. Lastly。

for some reason my searches didn't bring up this thread all outgoing traffic goes on the tunnel, they don't contain quite all the pieces to run a headless server that sets up a VPN at boot, pia First I followed the directions at this link except I didn't run it. How to install OpenVPN via command line ==================================== - Open a terminal window and do the following steps to install and connect to PIA VPN via OpenVPN - Install OpenVPN with the following command sudo apt-get install openvpn - Change to the /etc/openvpn directory with the following command cd /etc/openvpn - Download the openvpn.zip file containing the configs and the certs with the following command sudo wget https://www.privateinternetaccess.com/openvpn/openvpn.zip - Install unzip to decompress the file with the following command sudo apt-get install unzip - Decompress the openvpn.zip file with the following command sudo unzip openvpn.zip - List the contents of the directory (see a list of the server config files) with the following command ls -l - Start a connection to the PIA VPN with openvpn and the chosen config file with the following command sudo openvpn "config-filename-goes-here.ovpn" Example: sudo openvpn "Sweden.ovpn" Alles anzeigen then I followed the instructions at this link https://www.privateinternetacc…e-start-at-boot-linux-vpn it isn't clear but the author intends the file to be in /etc/init.d/ and have it named "vpn" . Because my ovpn file had spaces in the name I copied it to be another easier to use name. Zitat von ukd The explanations of how to access PIA VPN elsewhere on this forum are great, transmission, grabbed the magnetic link and uploaded it to Transmission. This will tell you the IP address Transmission is using. 。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://acg.inmoke.com/zixun/hanfu/39625.html