Skip to content

Instantly share code, notes, and snippets.

@kigawas
Created June 22, 2018 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kigawas/220a8b5bcfdc042cd4ed8fe25ba15e28 to your computer and use it in GitHub Desktop.
Save kigawas/220a8b5bcfdc042cd4ed8fe25ba15e28 to your computer and use it in GitHub Desktop.
搭建Shadowsocks服务

系统版本

Ubuntu 18.04 LTS

防火墙规则

打开80 443和4000端口

Apache配置

打开/etc/apache2/ports.conf

# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf

Listen 4000  # 这里改成4000

<IfModule ssl_module>
	Listen 443
</IfModule>

<IfModule mod_gnutls.c>
	Listen 443
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

ss配置

监听80端口,其他和https://github.com/Unbinilium/Twist/blob/master/twist 一致

Google bbr配置

参考http://blog.leanote.com/post/quincyhuang/google-bbr

#twist配置

参考https://medium.com/@unbiniliumm/%E5%A6%82%E4%BB%8A%E6%88%91%E8%BF%99%E6%A0%B7%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91-95187ef07ced

手动启用Google BBR以后BBR="disable"防止更新内核

打开混淆

twist默认打开

域名配置(可选)

添加DNS A record指向服务器公网ip

证书配置(可选)

用certbot自动配置

https://certbot.eff.org/lets-encrypt/ubuntutzesty-apache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment