{"id":31702015,"url":"https://github.com/getlantern/ats","last_synced_at":"2025-10-08T21:11:02.608Z","repository":{"id":144926346,"uuid":"41684136","full_name":"getlantern/ats","owner":"getlantern","description":"Lantern chained server implemented using Apache Traffic Server","archived":false,"fork":false,"pushed_at":"2015-09-21T19:33:03.000Z","size":316,"stargazers_count":18,"open_issues_count":0,"forks_count":10,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-04-15T03:25:38.142Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getlantern.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-31T15:36:36.000Z","updated_at":"2020-09-08T13:22:47.000Z","dependencies_parsed_at":"2023-04-08T02:16:41.845Z","dependency_job_id":null,"html_url":"https://github.com/getlantern/ats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/getlantern/ats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlantern%2Fats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlantern%2Fats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlantern%2Fats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlantern%2Fats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getlantern","download_url":"https://codeload.github.com/getlantern/ats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlantern%2Fats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000716,"owners_count":26082837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-08T21:10:59.508Z","updated_at":"2025-10-08T21:11:02.593Z","avatar_url":"https://github.com/getlantern.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Lantern chained server implemented using [Apache Traffic Server](http://trafficserver.apache.org/).\n\n### Installation\n\nPrerequisites\n\n```\nsudo apt-get update\nsudo apt-get install -y git libtool tcl openjdk-7-jre-headless openssl\n```\n\n\nBe sure to generate private key along with certificate before install ATS.\n\n```\nCERT_PASS=MY_VERY_OWN_PASSWORD\nIP=`ifconfig eth0 | grep \"inet addr\" | awk -F ':' '{print $2}' | awk '{print $1}'`\nkeytool -genkeypair -keystore keystore.jks -alias ats -keypass \"$CERT_PASS\" -storepass \"$CERT_PASS\" -ext san=ip:$IP -dname 'CN=Seacoasts Furtwngler, O=Poising Parched, L=Bin, S=California, C=US' -startdate -3m-27d -keyalg RSA -keysize 2048 -validity 730\nkeytool -v -importkeystore -srckeystore keystore.jks -srcalias ats --srcstorepass \"$CERT_PASS\" -destkeystore keystore.p12 -deststoretype PKCS12 --deststorepass \"$CERT_PASS\"\nopenssl pkcs12 -in keystore.p12 -passin pass:\"$CERT_PASS\" -out key.pem -passout pass:\"$CERT_PASS\" # key.pem will be used by ATS\nkeytool -export -alias ats -keystore keystore.jks --storepass \"$CERT_PASS\" -rfc -file cert.pem # cert.pem will be the in chained server config\n```\n\nThen install the chained server powered by ATS\n\n```\ngit clone https://github.com/getlantern/ats\ncd ats\nsudo AUTH_TOKEN=xxx CERT_FILE=\u003cpath of key.pem\u003e CERT_PASS=xxx ./install.sh\n```\n\nFinaly, configure your Lantern client to use this server\n\n```\n  chainedservers:\n    my-fallback-server:\n      addr: \u003cip\u003e:443\n      pipelined: true\n      cert: \"\u003ccontent of cert.pem here\u003e\"\n      authtoken: \"\u003cAUTH_TOKEN here\u003e\"\n      weight: 1000000\n      qos: 10\n      trusted: true\n```\n\n### Development\n\nThe simple auth plugin, lantern-auth.so, is built on a 64bit Ubuntu 14.10 box. Addition packages are required to compile it.\n\n```\nsudo apt-get -y install autoconf libtool pkg-config libssl-dev tcl-dev libxml2-dev libpcre3-dev\n(cd ~; wget http://mirror.bit.edu.cn/apache/trafficserver/trafficserver-5.3.1.tar.bz2 \u0026\u0026 tar jxvf trafficserver-5.3.1.tar.bz2)\n# To generate headers required by plugin\n(cd ~/trafficserver-5.3.1 \u0026\u0026 autoreconf -if \u0026\u0026 ./configure --prefix=/opt/ts)\ntsxs -I ~/trafficserver-5.3.1/lib/ts/ -o lantern-auth.so -c lantern-auth.c\n```\n\nThen take it into effect.\n```\ncp lantern-auth.so /opt/ts/libexec/trafficserver\nsudo service trafficserver reload\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetlantern%2Fats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetlantern%2Fats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetlantern%2Fats/lists"}