/free-server

From Paul Lan's Blog

Primary LanguageShell

free-server

Gain more freedom with my free-server for Chinese (mainland), Iranians, North Koreans, and the kind.

News and Change logs

  • 2016-04-15 [Warning] Paul has received some information that may be relevant to free-server from Chinese policeman. I may delete this Github source code if I get pressure from government executive force. Please consider fork to keep the free-server long living till the day of death of G,FW.
  • 2016-04-02 [Milestone] Add OpenConnect Cisco AnyConnect VPN support for iOS, as substitution of IPSec.
  • 2016-04-02 [Milestone] Add Let's Encrypt SSL Cert auto generation for SPDY and Open Connect
  • 2016-04-02 [Enhancement] Update nghttpx to 1.9.1

  • 2016-03-05 [Bug] Fix locale issue of perl
  • 2015-12-30 [Enhancement] Update nghttpx to 1.6.0
  • 2015-12-15 [Bug] Important Fix: Now iPSec/nghttpx+Squid (HTTP2/SPDY)/Shadowsocks supports Amazon EC2 Ubuntu again.
  • 2015-12-15 [Enhancement] Add Stderr Logging / Stdout Logging control to log files, and "Stop on Critical Error".
  • 2015-11-06 [Enhancement] Replace spdyproxy (NPM module) to nghttpx(C)+Squid.
  • 2015-11-03 [Platform] Add support to Amazon EC2 Ubuntu 14.04.2 LTS. Tested pass with EC2 Singapore Data Center
  • 2015-11-02 Milestone: [Feature] Add IPSec for IOS devices
  • 2015-10-30 Important fix: [Bug] fix restart dead processes bug (for SPDY and Shadowsocks process healthy monitoring, tested passed on Ubuntu 15, Digital Ocean)
  • 2015-08-12 Testing passed on Digital Ocean Ubuntu Server 15
  • 2015-08-10 Many datacenters of Linode are getting unstable due to China GFW policies. Digital Ocean or Amazon EC2 may be better candidates.
  • 2015-08-10 Shadowsocks and SPDY installation is well tested on Linode Ubuntu 15 now.
  • 2015-08-10 Will work on IPSec later

Description

  • This script is to assist you setup a Linux Server hosting proxy/VPN service of Shadowsocks, HTTP2/SPDY and Cisco AnyConnect VPN (iOS), within Ubuntu Server 14.
  • It has been tested on Amazon EC2 Ubuntu 14. Should be running well on Digital Ocean Ubuntu 15 / Linode Ubuntu Server 15, as well as all latest Ubuntu Server releases.

Package installed

Installation

rm -f install-shadowsocks-spdy-ocserv.sh
wget --no-cache -q https://raw.githubusercontent.com/lanshunfang/free-server/master/install-shadowsocks-spdy-ocserv.sh
bash install-shadowsocks-spdy-ocserv.sh

Note that, the script could be redeployed/reinstalled on your Ubuntu without worries on losing any old Shadowsocks, HTTP2/SPDY and iPSec account or password. It backs them up if found any before execute re-installation.

Create User

Shadowsocks+HTTP2/SPDY+Cisco AnyConnect VPN: ${freeServerRoot}/createuser User Pass ShadowsocksPort SPDYPort

Shadowsocks Only: ${freeServerRoot}/createuser-shadowsocks Port Pass 

HTTP2/SPDY Only: ${freeServerRoot}/createuser-spdy-nghttpx-squid User Pass Port

Cisco AnyConnect VPN (Ocserv) Only: ${freeServerRoot}/createuser-ocserv User Pass

How to setup clients

Donation

  • Please consider donation to Paul so that he will be encouraged by your favor. Paypal: lanshunfang#gmail.com (replace # to @). Thank you :)

More

  • Cisco AnyConnect VPN (Ocserv) instances are running on Port 443 and Port Range from 3000 to 3010 for better stability and less average transfer rate per port.
  • This script will add several crontab configurations to /etc/cron.d to monitor Shadowsocks / HTTP2 (nghttpx, squid) / Cisco AnyConnect VPN / demo web server service status.
  • For more stability, both Shadowsocks and HTTP2/SPDY are running in multiple instances, one per user, not single process.