{{Header}} {{Title| title=Lantern: Alternative Censorship Circumvention Tool }} {{#seo: |description=Alternative Censorship Circumvention. Lantern over Tor. Combining {{project_name_long}} with Lantern. Connecting to Lantern before Tor (UserLanternTorInternet). ''Possible'' alternative to Tor bridges. |image=Lanterns-111003640.jpg }} [[image:Lanternlogo.png|Lantern Logo|thumb]] {{intro| Alternative Censorship Circumvention. Lantern over Tor. Combining {{project_name_short}} with Lantern. Connecting to Lantern before Tor. UserLanternTorInternet ''Possible'' alternative to Tor bridges. }} = Introduction = [https://lantern.io/ Lantern] is a censorship circumvention tool which can provide an alternative to Tor [[bridges]]. The design is similar to a VPN and encrypts all of a user's data through their servers and then proxies blocked sites. Note that Lantern in isolation is not an anonymity tool because it is ''technically'' possible to spy on user activity under this model. Another downside is that bandwidth limits also exist for non-subscribers: https://getlantern.org/en_US/faq.html
Lantern is designed to provide you with fast unfettered access to information online. Lantern is secure and encrypts your connection to blocked sites, but it is not an anonymity tool, so if you need or would like to be anonymous online, please use Tor. Otherwise, Lantern will give you faster access to blocked sites. ... To keep our free version running, we implemented a bandwidth limitation of 500 MB/ month. When the bandwidth limit is reached, the connection is slowed down and Free users are prompted to upgrade to Lantern Pro.
After bandwidth limits are reached the connection slows down to approximately 20KB/s, making Lantern virtually unusable. In order to remove this restriction, users must pay for the 'Lantern Pro' service. In early-2019, this costs $32 (USD) for one year, or $48 (USD) for two years. The available options mean any payment is likely traceable, but this is not necessarily any more 'damaging' to privacy and/or anonymity than connecting to Lantern in the first place. This is because advanced adversaries can discover that a user connected to Lantern (via logs), and [[Hide Tor from your Internet Service Provider|pluggable transports]] are incapable of successfully hiding Tor use in all cases. Therefore, a payment trail simply acts as another confirmation mechanism and is not necessarily 'worse' under the circumstances. Interested readers can learn more at the [https://groups.google.com/g/lantern-users-en Lantern forums] and [https://lantern.io/faq Q&A]. = Warning = {{project_name_short}} developer madaidan has expressed [https://forums.whonix.org/t/lantern-alternative-censorship-circumvention-tool-warning/7763 serious concerns about the Lantern software]: * There is limited documentation available describing how Lantern functions. Although it states it unblocks websites, this mechanism is undocumented. Further, the developer FAQ is empty. * Lantern developers state they are based in Los Angeles, but their GitHub repositories, Twitter accounts and the Terms of Service have a lot of Chinese text. * The primary GitHub repository has numerous stars and forks (even though it seems to be a small project) from what appears to be bot accounts, as many have no activity. The GitHub account also has hundreds of repositories that are completely irrelevant to Lantern. * Links are provided to a forum which does not even exist. * The privacy policy allows for logging of IP addresses, visited websites, device IDs, local files and much more; see footnote. [https://en.wikipedia.org/wiki/Lantern_%28software%29#Privacy_policy Wikipedia] notes the privacy policy states:
When you use our Services, we collect information sent to us by your computer, mobile phone or other access device. The information sent to us includes, but is not limited to, the following: data about the pages you access, computer IP address, device ID or unique identifier, device type, geo-location information, computer and connection information, mobile network information, statistics on page views, traffic to and from the sites, referral URL, ad data, and standard web log data and other information. We also collect information through our use of cookies and web beacons.
The Wikipedia Lantern entry also notes: https://en.wikipedia.org/wiki/Lantern_%28software%29#Privacy_policy * User information can be shared with various third parties, including advertisers. * Content blockers like uBlock Origin are ineffective in preventing data collection because Lantern operates at the TCP/IP stack layer. * Personally identifiable information may be subject to disclosure to governments in the country of operation. In summary, Lantern is not recommended unless the user has limited other options for censorship circumvention. = Connecting to Lantern before Tor = {{mbox | image = [[File:Ambox_warning_pn.svg.png|40px]] | text = Testers only! [[Qubes|{{q_project_name_long}}]] only! [[Non-Qubes-Whonix|{{non_q_project_name_short}}]] is [[unsupported]] at present. }} It is possible to configure Tor to use Lantern as a proxy to establish the following tunnel: UserLanternTorInternet Before applying the following instructions, it is recommended to first read: * The [[#Warning|warning]] section above. * [[Tunnels/Introduction|Combining Tunnels with Tor]]. * Current limitations discussed in [https://www.whonix.org/blog/connecting-to-lantern-before-tor this blog post / forum discussion]. {{Box|text= '''1.''' Create a new standalone ProxyVM called Lantern-Gateway based on the Debian-{{Stable project version based on Debian version short}} template. '''2.''' Unload all firewall rules in Lantern-Gateway ProxyVM. {{Firewall_Unload_Home_Folder}} '''3.''' Disable IP Forwarding in the Lantern-Gateway ProxyVM. This should be disabled since it is not required. {{CodeSelect|code= sudo sysctl -w net.ipv4.ip_forward=0 }} '''4.''' Install a missing Lantern dependency. https://github.com/getlantern/lantern/issues/4836 - Lack of a dependency declaration when installing Lantern on Debian (broken link). {{CodeSelect|code= sudo apt install libappindicator3-1 }} '''5.''' Download and install Lantern. Check if the path to the downloadable deb file is still correct. Navigate to https://getlantern.org/ and check for Linux desktop downloads. {{CodeSelect|code= curl {{Curl_Secure}} https://s3.amazonaws.com/lantern/lantern-installer-beta-64-bit.deb --output ~/lantern-installer-beta-64-bit.deb }} Install Lantern. * Proper Debian deb package: https://github.com/getlantern/lantern/issues/4837 * Debian APT repository with Lantern: https://github.com/getlantern/lantern/issues/4837 * Add Lantern to official Debian repositories: https://github.com/getlantern/lantern/issues/4837 * Debian Lantern [https://wiki.debian.org/RFP RFP (request for packaging)]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=828932 {{CodeSelect|code= sudo dpkg -i ~/lantern-installer-beta-64-bit.deb }} '''6.''' Launch Lantern and configure HTTP proxy requests. Start Lantern while listening on all, not just the internal network interfaces so it is reachable from {{project_name_gateway_vm}}. Let Lantern listen for HTTP proxy requests. {{CodeSelect|code= lantern -addr 0.0.0.0:8787 }} Or let Lantern listen for SOCKS5 proxy requests which is preferred. {{CodeSelect|code= lantern -socksaddr 0.0.0.0:8788 }} '''7.''' Test Lantern's HTTP or SOCKS port is functional. In Lantern-Gateway, check if Lantern's HTTP port is functional. {{CodeSelect|code= curl {{Curl_Secure}} --proxytunnel --proxy 127.0.0.1:8788 https://check.torproject.org }} Alternatively, in Lantern-Gateway, check if Lantern's SOCKS port is functional. {{CodeSelect|code= curl {{Curl_Secure}} --socks5-hostname socks5h://127.0.0.1:8788 https://check.torproject.org }} '''8.''' Change {{project_name_gateway_vm}} NetVM settings. * Shut down {{project_name_gateway_vm}} if it is running. * Set the {{project_name_gateway_vm}} NetVM to Lantern-Gateway. * Restart {{project_name_gateway_vm}}. '''9.''' Test if Tor can connect to Lantern's HTTP or SOCKS port. In {{project_name_gateway_vm}}, test if Tor is able to connect to the HTTP proxy that Lantern is providing. {{CodeSelect|code= {{Curl_Plain}} {{Curl_Secure}} --proxytunnel --proxy 10.137.11.1:8788 https://check.torproject.org }} Alternatively, in {{project_name_gateway_vm}}, test if Tor is able to connect to the SOCKS proxy that Lantern is providing. {{CodeSelect|code= {{Curl_Plain}} {{Curl_Secure}} --socks5-hostname socks5h://10.137.11.1:8788 https://check.torproject.org }} '''10.''' Edit the Tor configuration file in {{project_name_gateway_vm}}. {{Open_/usr/local/etc/torrc.d/50_user.conf}} Depending on the proxy type configured at step 6, add the relevant setting below. SOCKS is considered to be better. According to this issue (broken link https://github.com/getlantern/lantern/issues/2075), Lantern already has SOCKS support. Open issues: https://github.com/getlantern/lantern/issues/4838
Socks5Proxy 10.137.11.1:8788
Setup should now be easier (less need for IP changes) because Qubes has implemented [https://github.com/QubesOS/qubes-issues/issues/1477 optional static IP addresses]. 10.137.11.1 is just an example and it must be replaced with the IP of the Lantern-Gateway ProxyVM. To discover the Lantern-Gateway ProxyVM IP, run the following command in {{project_name_gateway_vm}}: {{CodeSelect|code= qubesdb-read /qubes-gateway }}
HTTPSProxy 10.137.11.1:8787
Socks5Proxy 10.137.11.1:8788
'''11.''' {{Reload_Tor}} The procedure is complete and Tor will now use Lantern as a proxy. }} = Footnotes = {{reflist|close=1}} {{Footer}} [[Category:Documentation]]