# 科学上网

## 服务端

* 安装python
* 安装pip
* pip install shadowsocks
* 编写配置文件

```javascript
{
       "server":"your.server.ip",
       "server_port":"yourserverport",
       "local_address": "127.0.0.1",
       "local_port":1080,
       "password":"yoursspassword",
       "timeout":300,
       "method":"aes-256-cfb",
       "fast_open": false
}
```

随便保存在某个地方，命名为"自定义名字.json"

* 启动ss服务端：

```
ssserver -c /path/to/your/config.json
```

## 客户端

* 安装python
* 安装pip
* pip install shadowsocks
* 编写配置文件（和服务端的文件一模一样）
* 启动ss客户端

```
sslocal -c /path/to/your/config.json
```

注意配置文件中的local port是你本地连接的sock代理服务器端口, local\_address是你本地连接的sock代理服务器ip

## 需要上网的软件配置

* Chrome：协议选择SOCK5，设置代理服务器ip为127.0.0.1，端口为1080即可，
* 如果希望国内网站不走代理服务器，可以装一下switchomega插件，直接使用X-Tunnel自动切换模式
* ubuntu或mac可以配置全局代理


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://blog.cweihang.io/kit/ss.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
