> For the complete documentation index, see [llms.txt](https://wxg.gitbook.io/linux/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wxg.gitbook.io/linux/shadowsocks.md).

# shadowsocks

some tips about shadowsocks and vpn

## proxychains

the problem that in terminal you cann't access socks

You can use [proxychains](https://github.com/rofl0r/proxychains-ng) to fix this problem. you can configure your proxy in `/etc/proxychains.conf`

```
[ProxyList]
socks5 127.0.0.1 your_port
```

Then you should only use the command just like `sudo proxychains4 apt-get update`

## polipo

use polipo to turn socks proxy to httpproxy

```
$sudo apt-get install polipo
```

Edit the config file at `/etc/polipo/config`, and append the following two lines:

```
socksParentProxy = "localhost:1080"
socksProxyType = socks5
```

start and stop

```
$sudo service polipo stop
$sudo service polipo start
```

Now command as folows is alright:

```
$http_proxy=http://localhost:8123 curl ip.gs
```

Now we need to add the http\_proxy setting into bashrc.If you are using zsh then edting `~/.zshrc` and add the following:

```
export http_proxy=http://localhost:8123
export https_proxy=http://localhost:8123
```

At last you need to add the http\_proxy and https\_proxy and ip port settings to the system proxy setting.

## shadowsocks corrupt

try restart the service, or stop then start

```
$sudo service shadowsocks restart
```
