Polipo 的小筆記


Install application

1
2
sudo apt-get install polipo
sudo apt-get install screen

Stop the polipo first

1
service polipo stop

Start the polipo for testing with public ip and port

1
polipo proxyAddress=119.180.188.18 proxyPort=8124

Make the polipo run in the screen command

1
screen -dmS polipo-name polipo proxyAddress=119.180.188.18 proxyPort=8124

Check the screen list

1
screen -ls

Enter to the target screen

1
screen -r polipo-name

Exit from the screen

1
ctrl+a ctrl+d

Change shadowsocks to HTTP in server side

1
2
sslocal -c /path/to/shadowsocks.conf
polipo socksParentProxy=127.0.0.1:1080 socksProxyType=socks5 proxyAddress=119.180.188.18 proxyPort=8124

Support the multiple ip address for outgoing

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Clone the repo first
git clone https://github.com/jech/polipo.git
cd polipo/

# Path the repo
wget https://github.com/nochkin/polipo/commit/853ed5420c992ff28932471c2132c17e31c308ec.patch
patch -p0 < 853ed5420c992ff28932471c2132c17e31c308ec.patch

# If can not perfect path, follow the PR to modify file maunlly
https://github.com/nochkin/polipo/commit/853ed5420c992ff28932471c2132c17e31c308ec

# Install the tools
sudo apt-get install texinfo
sudo apt-get install info

# Make script
make all

# Install script without man file
su -c "make install.binary"

# Test the polipo
/usr/local/bin/polipo -v

# Try to start the proxy server with specified out going ip
/usr/local/bin/polipo proxyAddress=119.180.188.18 proxyPort=8124 proxyOutgoingAddress=119.180.188.18

# Test the proxy server in local machine
http_proxy=http://119.180.188.18:8124 curl http://ifconfig.co/