Lantern
Configuration (Remote)
Important Security Note
Supported Installation Methods
When installing Lantern on a remote server, there are two options:
Docker
RecommendedFastest and easiest method. Hosts local web configuration tool at localhost:8080.
Binary
Direct binary saves memory. Transfer config file from local setup.
Docker Install
When installing using Docker, it hosts its own local version of the web configuration tool. You'll need to connect to this instead of the public configurator . Make sure your VPS has port 8080 open to you — check your firewall rules.
We strongly recommend using an IP whitelist to control access. Otherwise, anyone with your VPS IP can reconfigure Lantern and extract your API key.
An alternate method is setting up a proxy using an SSH tunnel, avoiding opening port 8080 entirely. Some useful information on this is available here .
Once you can load the web configuration tool, instructions are the same as for running Lantern locally .
Binary Install
When you execute the Lantern binary the first time, it will wait to receive a valid configuration file.
The web configuration tool will not work in this case, since it's designed for local configuration.
The simplest solution is to run the Lantern binary on your local computer and configure it as desired. The configuration is saved to config.json in the same directory. Copy that file to your server in the same directory as the Lantern binary.
When you run Lantern on the server, it will use that config file and work normally.
scp command to copy files to your server. chmod +x lantern-linux-amd64 Security Reminder