gluetun bundles a control server on port 8000 which you can query for the port number (don’t worry about openvpn
being in the url path, it still works with Wireguard). In my bash script (running on the host system), I use curl
to retrieve the forwarded port number and then do a POST with that data to the API of my qbt client which is running in another container on port 8080.
Comment on Gluetun: The Little VPN Client That Could
asbestos@lemmy.world 6 months agoHow do you handle the forwarded port change on every reconnect and updating it in qbt?
cantankerous_cashew@lemmy.world 6 months ago
Confused_Emus@lemmy.world 6 months ago
There’s another nifty little container called qbittorrent-natmap that will take care of that for you.