You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Docker base image that routes all outbound traffic through Lantern via a transparent proxy stack (Redsocks + iptables). Import it into your Dockerfile to run any application behind Lantern's censorship circumvention network.
Features
Ubuntu 24.04 variant (Dockerfile.ubuntu)
Multi-stage build — copies Lantern binary from getlantern/lantern-headless:latest
Redsocks for transparent TCP proxying
iptables rules redirect all outbound traffic through Lantern
Lantern SOCKS5 exposed on 0.0.0.0:40001 for external hosts
Automatic monitoring and restart on failure (3 consecutive failures)
Readiness indicator: /tmp/redsocks.ready
Files
File
Description
__setup_proxy.sh
Proxy setup and monitoring script (Lantern + Redsocks + iptables)
Dockerfile.ubuntu
Ubuntu 24.04-based image
Usage
1. Import into your Dockerfile
FROM ghcr.io/techroy23/docker-lantern-redsocks:ubuntu
COPY . /app
RUN chmod +x /app/*.sh
ENTRYPOINT ["/app/your_program.sh"]
This project provides a Docker base image that automatically sets up a transparent proxy stack using Lantern and Redsocks, with iptables redirection. It is designed to be imported into your own Dockerfile, so you can run your application behind a monitored global proxy.