Startup Script PIA with Port Forwarding #616
-
Hi! I'd like to run a shell script after opening a connection with Private Internet Access (using port forwarding). I was able to get it working with a custom config file, but I was unable to get port forwarding working. This is the option I passed though to execute the script within the config file:
I was wondering if it is possible to pass an OpenVPN script option to the config file, or using cli while still using the PIA presets? I appreciate any help! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Hey there, It's not really possible for now. My end goal is to have gluetun as a single binary and the docker image based on If I may ask, what's your shell script doing? |
Beta Was this translation helpful? Give feedback.
-
Oh darn, OK that is totally understandable. I'm glad I was not missing something obvious. The script is passing along the IP of a download server to a private tracker's API. Very very basic curl type of deal. |
Beta Was this translation helpful? Give feedback.
-
Actually, last commit f807f75 allows for I created #620 for running custom commands when the tunnel is up (and when it stops) such that it works for both OpenVPN and Wireguard and will be able to work with a single binary. |
Beta Was this translation helpful? Give feedback.
-
It's unclear to me from the above what parameters to pass when creating the docker container to launch a custom script upon VPN connection. I've been looking through the Wiki page but can't find anything there. |
Beta Was this translation helpful? Give feedback.
-
If this has to do with port forwarding, you can now use |
Beta Was this translation helpful? Give feedback.
Actually, last commit f807f75 allows for
up
anddown
options, because, well screw it 😄 Just make sure to check out the updated Wiki page: https://github.com/qdm12/gluetun/wiki/Openvpn-fileI created #620 for running custom commands when the tunnel is up (and when it stops) such that it works for both OpenVPN and Wireguard and will be able to work with a single binary.