Skip to content
Discussion options

You must be logged in to vote

If the service in the container binded to gluetun container use a different port than the one that is forwarded by Mullvad then you need a custom iptables rule to make the local forwarding.

Eg:

  • gluetun + service A (port 1234)
  • Mullvad port forward to port 4321

2 Solutions (choose 1 or 2):
First do not forget to open firewall with FIREWALL_VPN_INPUT_PORTS=4321,1234 (both ports need to be opened)

  1. Change service A to listen on 4321
  2. Use a custom iptables rule to forward 4321 to 1234 as:
    iptables -t nat -A PREROUTING -i tun0 -p tcp --destination-port 4321 -j REDIRECT --to-port 1234
    Check https://github.com/qdm12/gluetun/wiki/Firewall-options#custom-iptables-rules

FYI docker/podman port mapp…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jojac47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants