u/Tal_Vez_Autismo

▲ 7 r/unRAID+2 crossposts

I'm pulling my hair out trying to get port forwarding to work with Gluetun+ProtonVPN+qBittorrent!!!

Hi everyone. I've been trying for days now to get port forwarding to work and I'm at a loss. I'm pretty new to this stuff so I'm fairly certain I'm missing something since I find lots of articles and posts saying how it's really easy and built in, but then I can't make it work.

I have Gluetun set up with my ProtonVPN account by putting in my OpenVPN credentials and I have verified that it's hiding my IP. I've set "VPN_PORT_FORWARDING=on",added "+pmp" to my username, and selected "PORT_FORWARD_ONLY=on". I've also set up the up and down commands from the Gluetun github:

VPN_PORT_FORWARDING_UP_COMMAND=/bin/sh -c 'wget -O- -nv --retry-connrefused --post-data "json={\"listen_port\":{{PORT}},\"current_network_interface\":\"{{VPN_INTERFACE}}\",\"random_port\":false,\"upnp\":false}" http://127.0.0.1:8080/api/v2/app/setPreferences' VPN_PORT_FORWARDING_DOWN_COMMAND=/bin/sh -c 'wget -O- -nv --retry-connrefused --post-data "json={\"listen_port\":0,\"current_network_interface\":\"lo\"}" http://127.0.0.1:8080/api/v2/app/setPreferences'

I changed the IP address there to the one for my actual server, which I assume is right, but it doesn't matter because when I check the Gluetun logs for which port is forwarded and I check that one on canyouseeme, it still says it's closed.

I've seen some things that give a docker-compose.yml and say "just run this and it'll work!" but I don't know what that is. When I googled, I saw that Unraid apparently doesn't support that natively anyway and a bunch of posts make it seem like I shouldn't need to anyway!!!

I hope this isn't too stupid a question where I'm missing something simple. I've been trying and trying to get this working, so I'm really hoping someone can help me out. Thanks!

reddit.com
u/Tal_Vez_Autismo — 5 days ago