Skip to content

Port Forwarding Script inside a docker container for Proton VPN

License

Notifications You must be signed in to change notification settings

leberschnitzel/protonpfw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker version of the ProtonVPN Portforwarding script: https://protonvpn.com/support/port-forwarding-manual-setup/

cd "$(python3 -m pip show py-natpmp | grep Location | cut -d\  -f 2)/natpmp" && while true ; do date ; python3 natpmp_client.py -g 10.2.0.1 0 0 || { echo -e "ERROR with natpmpc command \a" ; break ; } ; sleep 45 ; done

Container Output example: "Port forwarded: 33574"

You can use this output and put the port into wherever you need portforwarding.

If you are more skilled than me, you can probably automate it and take the port directly into a config :)

About

Port Forwarding Script inside a docker container for Proton VPN

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published