Port Forwarding with Viscosity + PIA
Posted: Fri Apr 27, 2018 2:42 pm
Greetings. I’m running PIA through Viscosity and want to have port forwarding enabled to help my torrent client, Transmission, seed more effectively.
Here’s what I’ve been able to do (with admittedly little understanding of what I’m doing).
1. In Viscosity I’m running PIA’s Toronto connection, which allows port forwarding
2. I downloaded the port forwarding shell script from PIA
2. I ran the command line in my terminal: chmod u+x /Users/iMac/Desktop/port_forwarding.sh
3. I opened Script Editor and ran the line I was instructed by Viscosity to enter: do shell script "/Users/iMac/Desktop/port_forwarding.sh"
The result I get in Script Editor is:
"Loading port forward assignment information...
{\"port\":23422}"
I’m psyched to have gotten this far. With the port number, I can go into Transmission, enter 23422 into the Peer listening port, and I see the Port is open.
The next step, however, is to get this running more seamlessly in Viscosity. What I like about Viscosity is that it’s way more stable than PIA’s client. It’s a real plug and play. It comes on automatically and my browsers work great with it (not always the case with PIA’s client).
But, the functionality of Viscosity will be seriously limited if each time I start my computer and Viscosity loads I have to run the Script Editor to connect to port forwarding and find the peer listing number, then enter it into Transmission anew.
So, here're my questions.
1. How do I set up Viscosity to interact with this script so that it loads automatically?
2. What's the most efficient way to get Transmission to play well with the port forwarding number?
I see that under the connection in the Advanced tab I can point the app to “Before Connect Script” or “Connected Script.” I’m assuming I could use one of these to point to the script I saved in Script Editor.
But, I'm not sure how to get this set up. And I’m not sure how to locate to find the port number if it's set up to connect to port forwarding automatically.
Any advice would be great.
Here’s what I’ve been able to do (with admittedly little understanding of what I’m doing).
1. In Viscosity I’m running PIA’s Toronto connection, which allows port forwarding
2. I downloaded the port forwarding shell script from PIA
2. I ran the command line in my terminal: chmod u+x /Users/iMac/Desktop/port_forwarding.sh
3. I opened Script Editor and ran the line I was instructed by Viscosity to enter: do shell script "/Users/iMac/Desktop/port_forwarding.sh"
The result I get in Script Editor is:
"Loading port forward assignment information...
{\"port\":23422}"
I’m psyched to have gotten this far. With the port number, I can go into Transmission, enter 23422 into the Peer listening port, and I see the Port is open.
The next step, however, is to get this running more seamlessly in Viscosity. What I like about Viscosity is that it’s way more stable than PIA’s client. It’s a real plug and play. It comes on automatically and my browsers work great with it (not always the case with PIA’s client).
But, the functionality of Viscosity will be seriously limited if each time I start my computer and Viscosity loads I have to run the Script Editor to connect to port forwarding and find the peer listing number, then enter it into Transmission anew.
So, here're my questions.
1. How do I set up Viscosity to interact with this script so that it loads automatically?
2. What's the most efficient way to get Transmission to play well with the port forwarding number?
I see that under the connection in the Advanced tab I can point the app to “Before Connect Script” or “Connected Script.” I’m assuming I could use one of these to point to the script I saved in Script Editor.
But, I'm not sure how to get this set up. And I’m not sure how to locate to find the port number if it's set up to connect to port forwarding automatically.
Any advice would be great.