-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathss.html
More file actions
22 lines (22 loc) · 14.2 KB
/
ss.html
File metadata and controls
22 lines (22 loc) · 14.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!doctype html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><title>Ss - Frank Wang's Coding World</title><meta name=renderer content="webkit"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1"><meta http-equiv=Cache-Control content="no-transform"><meta http-equiv=Cache-Control content="no-siteapp"><meta name=theme-color content="#f8f5ec"><meta name=msapplication-navbutton-color content="#f8f5ec"><meta name=apple-mobile-web-app-capable content="yes"><meta name=apple-mobile-web-app-status-bar-style content="#f8f5ec"><meta name=author content><meta name=description content="In order to surf the Internet more conveniently and scientifically, use Google Cloud Platform free trial service to build a Shadowsocks ladder"><meta name=keywords content="Google Cloud Platform,Shadowsocks,Scientific Internet"><meta name=generator content="Hugo 0.157.0 with theme even"><link rel=canonical href=http://frankwang0909.github.io/ss.html><link rel=apple-touch-icon sizes=180x180 href=/apple-touch-icon.png><link rel=icon type=image/png sizes=32x32 href=/favicon-32x32.png><link rel=icon type=image/png sizes=16x16 href=/favicon-16x16.png><link rel=manifest href=/manifest.json><link rel=mask-icon href=/safari-pinned-tab.svg color=#5bbad5><link href=/sass/main.min.af7fd1da18d66c2b017df5b4cae508ef44cfcac3fb4c7c7a327fe4f4f9e28b08.css rel=stylesheet><link href=/lib/fancybox/jquery.fancybox-3.1.20.min.css rel=stylesheet><meta property="og:url" content="http://frankwang0909.github.io/ss.html"><meta property="og:site_name" content="Frank Wang's Coding World"><meta property="og:title" content="Ss"><meta property="og:description" content="In order to surf the Internet more conveniently and scientifically, use Google Cloud Platform free trial service to build a Shadowsocks ladder"><meta property="og:locale" content="en_US"><meta property="og:type" content="article"><meta property="article:section" content="post"><meta property="article:published_time" content="2017-07-09T11:37:11+08:00"><meta property="article:modified_time" content="2017-07-09T11:37:11+08:00"><meta property="article:tag" content="Shadowsocks"><meta itemprop=name content="Ss"><meta itemprop=description content="In order to surf the Internet more conveniently and scientifically, use Google Cloud Platform free trial service to build a Shadowsocks ladder"><meta itemprop=datePublished content="2017-07-09T11:37:11+08:00"><meta itemprop=dateModified content="2017-07-09T11:37:11+08:00"><meta itemprop=wordCount content="737"><meta itemprop=keywords content="Google Cloud Platform,Shadowsocks,Scientific Internet"><meta name=twitter:card content="summary"><meta name=twitter:title content="Ss"><meta name=twitter:description content="In order to surf the Internet more conveniently and scientifically, use Google Cloud Platform free trial service to build a Shadowsocks ladder"><!--[if lte IE 9]><script src=https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js></script><![endif]--><!--[if lt IE 9]><script src=https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js></script><script src=https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js></script><![endif]--></head><body><div id=mobile-navbar class=mobile-navbar><div class=mobile-header-logo><a href=/en/ class=logo>Frank Wang’s Coding World</a></div><div class=mobile-navbar-icon><span></span>
<span></span>
<span></span></div></div><nav id=mobile-menu class="mobile-menu slideout-menu"><ul class=mobile-menu-list><a href=/en/><li class=mobile-menu-item>Home</li></a><a href=/en/post/><li class=mobile-menu-item>Archives</li></a><a href=/en/tags/><li class=mobile-menu-item>Tags</li></a><a href=/en/categories/><li class=mobile-menu-item>Categories</li></a><a href=/><li class=mobile-menu-item>中文</li></a></ul></nav><div class=container id=mobile-panel><header id=header class=header><div class=logo-wrapper><a href=/en/ class=logo>Frank Wang’s Coding World</a></div><nav class=site-navbar><ul id=menu class=menu><li class=menu-item><a class=menu-item-link href=/en/>Home</a></li><li class=menu-item><a class=menu-item-link href=/en/post/>Archives</a></li><li class=menu-item><a class=menu-item-link href=/en/tags/>Tags</a></li><li class=menu-item><a class=menu-item-link href=/en/categories/>Categories</a></li><li class=menu-item><a class=menu-item-link href=/>中文</a></li></ul></nav></header><main id=main class=main><div class=content-wrapper><div id=content class=content><article class=post><header class=post-header><h1 class=post-title>Ss</h1><div class=post-meta><span class=post-time>2017-07-09</span><div class=post-category><a href=/en/categories/tools/>tools</a></div><span class=more-meta>737 words </span><span class=more-meta>4 mins read</span></div></header><div class=post-toc id=post-toc><h2 class=post-toc-title>Contents</h2><div class="post-toc-content always-active"><nav id=TableOfContents><ul><li><ul><li><a href=#1-register-and-log-in>1. Register and log in:</a></li><li><a href=#2-create-project>2. Create project:</a></li><li><a href=#3-create-a-vm-instance-computing-engine--vm-instance>3. Create a VM instance: Computing Engine –> VM instance.</a></li><li><a href=#4-bind-external-ip-address>4. Bind external IP address:</a></li><li><a href=#5-firewall-settings>5. Firewall settings:</a></li><li><a href=#6-install-and-configure-ss-on-the-server>6. Install and configure SS on the server:</a></li><li><a href=#6win7-is-configuring-client-ss>6.Win7 is configuring client SS:</a></li><li><a href=#7-android-mobile-ss-client-configuration>7. Android mobile SS client configuration:</a></li></ul></li></ul></nav></div></div><div class=post-content><p>In view of the fact that scientific Internet access has become more and more inconvenient recently, many previously strong VPNs have been forced to stop their services, so they have to do it themselves and build a ladder. After searching for information online, I accidentally discovered that <a href=https://cloud.google.com/>Google Cloud Platform</a> has a free trial service (in fact, Amazon Cloud also has a one-year free trial). New users will be given $300 for registration, which is valid for one year and can be used to build a ladder for fun.</p><p>There probably aren’t many people doing this right now, because there are at least two thresholds. First, Google’s services are basically blocked in China, so you must first be able to circumvent the wall and register a Google account before you can log in to Google Cloud. Second, domestic users must have a dual-currency or multi-currency credit card to pass verification.</p><p>Here is my process for building a ladder:</p><h3 id=1-register-and-log-in>1. Register and log in:</h3><p>First use the free blue light to go over the wall <a href=https://cloud.google.com/>Google Cloud</a>, click the blue “TRY IT FREE” button, you need to log in with a Google account, and then fill in some personal information. During the process, you need to bind a real credit card. They may also send you an email asking you to upload photos of your ID and credit card for identity verification. After successful verification, a fee of US$1 will be withheld to verify the validity of the card, and it will be automatically returned later.</p><h3 id=2-create-project>2. Create project:</h3><p>You can fill in the project name as you like.</p><h3 id=3-create-a-vm-instance-computing-engine--vm-instance>3. Create a VM instance: Computing Engine –> VM instance.</h3><ol><li><p>Region: You can select nodes in Asia;</p></li><li><p>Machine type: I chose the lowest configuration, micro.</p></li><li><p>Boot disk: I chose CentOS7 operating system</p></li><li><p>Network: Remember to create a new static IP address, which needs to be bound to the instance later.</p></li></ol><h3 id=4-bind-external-ip-address>4. Bind external IP address:</h3><p>Network –> Bind External IP Address –> Reserve Static Address (Static IP addresses not attached to an instance or load balancer will be billed hourly!!!)</p><h3 id=5-firewall-settings>5. Firewall settings:</h3><p>Since the default firewall has too many restrictions, SS, etc. may not be able to be used, so we open the corresponding ports in the firewall.</p><p>Network –> Firewall Rules –> New Firewall Rule –> Source filtering selection “Allow traffic from any source” –> Set protocol and port: “tcp: your port number”</p><h3 id=6-install-and-configure-ss-on-the-server>6. Install and configure SS on the server:</h3><ol><li><p>Use Google Cloud’s built-in SSH tool to connect to the server.</p></li><li><p>Enter the command: <code>sudo -i</code> to obtain <code>root</code> permissions;</p></li><li><p>Then enter <code>yum install -y emacs python python-pip</code> to install the Emacs editor and Python (the editor is used to edit the SS configuration file, and Python is used to run SS).</p></li><li><p>Wait for a while and then the installation is completed. Then enter the command <code>pip install shadowsocks</code> to install SS;</p></li><li><p>Enter the command <code>emacs /etc/ss.json</code> to open the editor, and open a configuration file named <code>ss.json</code> and save it in the <code>/etc/</code> directory. The following is the official default configuration of SS:</p></li></ol><div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none><code class=language-json data-lang=json><span style=display:flex><span> {
</span></span><span style=display:flex><span><span style=color:#f92672>"server"</span>:<span style=color:#e6db74>"Your server static IP address"</span>,
</span></span><span style=display:flex><span><span style=color:#f92672>"server_port"</span>: <span style=color:#960050;background-color:#1e0010>port</span> <span style=color:#960050;background-color:#1e0010>number</span>, <span style=color:#75715e>// The port number needs to be consistent with the one set in step 5
</span></span></span><span style=display:flex><span><span style=color:#f92672>"password"</span>:<span style=color:#e6db74>"your password"</span>,
</span></span><span style=display:flex><span> <span style=color:#f92672>"timeout"</span>:<span style=color:#ae81ff>600</span>,
</span></span><span style=display:flex><span> <span style=color:#f92672>"method"</span>:<span style=color:#e6db74>"rc4-md5"</span>,
</span></span><span style=display:flex><span> <span style=color:#f92672>"auth"</span>: <span style=color:#66d9ef>true</span>
</span></span><span style=display:flex><span> }
</span></span></code></pre></div><ol start=6><li><p>After the configuration is completed, press <code>ctrl + x</code> and then <code>ctrl + s</code> to save the file, then press <code>ctrl + x</code> and then <code>ctrl + c</code> to exit the editor.</p></li><li><p>Finally enter the command <code>ssserver -c /etc/ss.json -d start</code> to start the Shadowsocks server.</p></li></ol><p>To stop the SS server (for example, if you need to change the configuration file), enter <code>ssserver -d stop</code>.</p><p>To enable the SS service to run in the background, enter <code>ssserver -p your port number -k your password -m rc4-md5 --user nobody -d start</code>. So far, the server-side configuration has been completed.</p><h3 id=6win7-is-configuring-client-ss>6.Win7 is configuring client SS:</h3><ol><li><p>Download and unzip <a href=https://github.com/shadowsocks/shadowsocks-windows/releases>ss client</a>;</p></li><li><p>Run <code>Shadowsocks.exe</code>, the icon will appear in the lower right corner of the desktop.</p></li><li><p>Right-click the icon –> Click “System Proxy” –> Select “PAC Mode” for “System Proxy Mode” –> Select “Server” –> “Edit Server” –> Fill in the server address, port number, password, encryption method and other information –> OK.</p></li></ol><p>At this point, you can enjoy the real Internet.</p><h3 id=7-android-mobile-ss-client-configuration>7. Android mobile SS client configuration:</h3><ol><li><p>Download “Shadow Shuttle”</p></li><li><p>Fill in the corresponding server address, port number, password, encryption method and other information.</p></li></ol></div><footer class=post-footer><div class=post-tags><a href=/en/tags/shadowsocks/>Shadowsocks</a></div><nav class=post-nav><a class=prev href=/js-number.html><i class="iconfont icon-left"></i>
<span class="prev-text nav-default">Js Number</span>
<span class="prev-text nav-mobile">Prev</span>
</a><a class=next href=/mysql_notes_3.html><span class="next-text nav-default">Mysql Notes 3</span>
<span class="next-text nav-mobile">Next</span>
<i class="iconfont icon-right"></i></a></nav></footer></article></div></div></main><footer id=footer class=footer><div class=social-links><a href=mailto:frankwang0909@gmail.com class="iconfont icon-email" title=email></a><a href=https://www.twitter.com/frankwang0909 class="iconfont icon-twitter" title=twitter></a><a href=https://www.github.com/frankwang0909 class="iconfont icon-github" title=github></a><a href=http://frankwang0909.github.io/en/index.xml type=application/rss+xml class="iconfont icon-rss" title=rss></a></div><div class=copyright><span class=power-by>Powered by <a class=hexo-link href=https://gohugo.io>Hugo</a>
</span><span class=division>|</span>
<span class=theme-info>Theme -
<a class=theme-link href=https://github.com/olOwOlo/hugo-theme-even>Even</a>
</span><span class=copyright-year>©
2016 -
2026<span class=heart><i class="iconfont icon-heart"></i></span><span></span></span></div></footer><div class=back-to-top id=back-to-top><i class="iconfont icon-up"></i></div></div><script type=text/javascript src=/lib/jquery/jquery-3.2.1.min.js></script><script type=text/javascript src=/lib/slideout/slideout-1.0.1.min.js></script><script type=text/javascript src=/lib/fancybox/jquery.fancybox-3.1.20.min.js></script><script type=text/javascript src=/js/main.min.4ae89da218555efa0e7093a20b92017d2e1202b66fff9fc2edf4cb8d44b44c6e.js></script><script type=text/javascript>window.MathJax={tex:{}}</script><script async src=https://cdn.jsdelivr.net/npm/mathjax@3.0.5/es5/tex-mml-chtml.js integrity="sha256-HGLuEfFcsUJGhvB8cQ8nr0gai9EucOOaIxFw7qxmd+w=" crossorigin=anonymous></script></body></html>