jordanpotter / docker-wireguard

Simple image for running a WireGuard client with a kill switch
MIT License
143 stars 37 forks source link

Add port forwarding option via iptables #32

Closed dikshant closed 1 year ago

dikshant commented 1 year ago

Certain VPN providers like Mullvad offer port forwarding. This allows a particular service running on the VPN network to be port forwarded out of the container without having to expose any port in the local router/firewall etc. This PR adds adds two environment variables to take a port and forward it to a destination port using iptables.

dikshant commented 1 year ago

Oops didn't mean to include docker changes.