I'm sure that if you do a bit of searching you will find others who have created similar BASH shell scripts, python scripts or even perl scripts that can be used for various flavors of linux. The next two lines, use the "vpn-port" variable to sent transmission to use the port that PIA has assigned my VPN connection. The Apple script puts what ever port PIA has assigned to my connection into another new variable "vpn_port". Next, my apple script uses curl to log in to the PIA servers to find out what random port they have assigned my VPN connection, this is where it uses that first variable "vpn_IP" in order to find what port is forward. You need to figure out how to properly execute this shell script on your linux system.įor me the first line of this Apple script gets the IP address of my VPN tunnel IP interface and puts that IP in a variable called "vpn_ip". After doing this, select the 'Settings' option that appears after opening the drop down menu in the top right hand corner of the VPN client. A VPN connection is a secure tunnel between your network and a VPN provider that is capable of sending data in both directions. I'm unsure how famialiar you are with scripting but the important part in this script is the shell script that executes this line: "curl -d \"user=&pass=&client_id=$(cat ~/.pia_client_id)&local_ip=" & vpn_ip & "\" In order to enable port forwarding within the PIA application on the Desktop Client, first, you must disable the VPN connection. J(Last Updated: June 07, 2022) Reading Time: 4 minutes A VPN can be used to solve many port forwarding problems. Set vpn_port to do shell script "curl -d \"user=&pass=&client_id=$(cat ~/.pia_client_id)&local_ip=" & vpn_ip & "\" 2>/dev/null|grep -oE \"+\""ĭo shell script "defaults delete BindPort"ĭo shell script "defaults write BindPort " & vpn_port & "" This is an Apple script that automatically forwards ports and updates Transmission upon doing so: set vpn_ip to do shell script "ifconfig tun0 | grep inet | awk ''" I run my VPN on a MacOSX "server", and I need port forwarding for Torrents. But, just in case WANT Plex inside your VPN, or maybe you have need of PIA portforwarding for other reasons I will share what I do. I suggest doing as others have suggested and running Plex outside your VPN. Please go to the relevant subreddits and support forums, for example: Build help and build shares posts go in their respective megathreads No referral / affiliate links, personal voting / campaigning / funding, or selling posts Welcome to /r/Plex, a subreddit dedicated to Plex, the media server/client solution for enjoying your media! Plex Community Discord Rules Latest Regular Threads: No Stupid Q&A: Tool Tuesday: Build Help: Share Your Build: Submit Troubleshooting Post Files not showing up correctly?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |