qdm12 / gluetun-wiki

Home to the Markdown Wiki page for Gluetun
MIT License
269 stars 31 forks source link

Possible to configure port forwarding for custom VPN setup? #34

Closed abu-marwa closed 5 months ago

abu-marwa commented 5 months ago

Hi, I'm one of those guys who uses a custom Open VPN setup. I'm running a gluetun and a qbittorrent docker containers. Qbittorrent container uses gluetun container for network. One of the private torrent trackers I use requires its users to use a specific range of ports. And so I configured port forwarding on my VPS and added a custom listening port in qbittorrent, however, I couldn't find any info on setting up port forwarding in a gluetun container. I saw the settings only for PIA and Proton. So I was wondering, is it possible to set up a port forwarding in my case?

abu-marwa commented 5 months ago

The answer is yes, just the port mapping in gluetun container. Checked it with some linux commands inside both containers, both reported the same results, i.e. port XXXX is listening.