There are various ways to connect a device to Gluetun.
This is useful for some clients such as Chrome, Firefox or Kodi.
- Setup an HTTP proxy client, such as SwitchyOmega for Chrome
- Ensure the Gluetun container is launched with:
- the environment variable
-e HTTPPROXY=on
- the port
8888
published-p 8888:8888/tcp
- the environment variable
- With your HTTP proxy client, connect to the Docker host (i.e.
192.168.1.10
) on port8888
. You need to enter your credentials if you set them withHTTPPROXY_USER
andHTTPPROXY_PASSWORD
. Note that Chrome does not support authentication. - If you set
HTTPPROXY_LOG
toon
, more information will be logged in the Docker logs.
The HTTP proxy server will also work as a an RFC 2817-compliant CONNECT proxy, meaning you can tunnel protocol to arbitrary destination ports through it, not just HTTP.
- A good example of this is using it in conjunction with netcat (
nc
) and the OpenSSH command line client's ProxyCommand option:ssh -o 'ProxyCommand nc -X connect -x 192.168.1.10:8888 %h %p' ssh-server.example.org
- PuTTY can also use CONNECT proxies.
- Setup a Shadowsocks proxy client, there is a list of ShadowSocks clients for all platforms
- note some clients do not tunnel UDP so your DNS queries will be done locally and not through Gluetun and its built in DNS over TLS
- Clients that support such UDP tunneling are, as far as I know:
- iOS: Potatso Lite
- OSX: ShadowsocksX
- Android: Shadowsocks by Max Lv
- Ensure the Gluetun container is launched with:
- the environment variable
-e SHADOWSOCKS=on
- the port
8388
published for both tcp and udp-p 8388:8388/tcp -p 8388:8388/udp
- the environment variable
- With your Shadowsocks proxy client
- Enter the Docker host (i.e.
192.168.1.10
) as the server IP - Enter port TCP (and UDP, if available)
8388
as the server port - Use the password you have set with
SHADOWSOCKS_PASSWORD
- Choose the encryption method/algorithm to the method you specified in
SHADOWSOCKS_CIPHER
- Enter the Docker host (i.e.
- If you set
SHADOWSOCKS_LOG
toon
, (a lot) more information will be logged in the Docker logs
You first need to set your LAN CIDR in FIREWALL_OUTBOUND_SUBNETS
.
For example with -e FIREWALL_OUTBOUND_SUBNETS=192.168.1.0/24
.
You can then use any of the proxy servers built-in Gluetun (such as Shadowsocks) to access your LAN.