Freelancer的任务之一:多IP多重匿名代理加认证

Freelancer上有个proxy setup的任务:

1Project Description  
2Hi, I would like to create a new VPS proxy server with multiple IPs on the same VPS.  
3Are you able to that?  
4What OS do you prefer?  
5- I have 10 ips.
6- I want them to be as much anonymous as you can.
7- I would have an Username and Password as auth, but if needed the possibility to have an IP authentication too.
8My budget is: ~20$  
9Thank you in advance.  

说老实话,10个IP没必要,一个IP足够了,用Tor+polipo即可。

Tor的部分,用完全命令行加参数启动:

1$ mkdir -p /tmp/tor10001/data
2$ /usr/bin/tor SOCKSPort 10001 CONTROLPort 20001 DATADirectory /tmp/tor10001/data

Polipo的部分,也完全用命令行启动:

1$ polipo socksParentProxy="127.0.0.1:10001" proxyPort=30001 proxyAddress="0.0.0.0" authCredentials="username:password"

组合起来,弄成一个脚本:

1$ mkdir -p /tmp/tor10002/data
2$ nohup /usr/bin/tor SOCKSPort 10002 CONTROLPort 20002 DATADirectory /tmp/tor10002/data &
3$ nohup polipo socksParentProxy="127.0.0.1:10002" proxyPort=30002 proxyAddress="0.0.0.0" authCredentials="username:password" &

开100个Tor+Polipo:

 1#!/bin/bash
 2
 3a=10001  
 4b=20001  
 5c=30001  
 6n=10100
 7
 8echo "Start multiple Tors+polipo"  
 9echo "Begin port " $a  
10echo "End port " $n
11
12while [ $a -le $n ]  
13do  
14    echo "Start Tor on port" $a
15    mkdir -p /tmp/tor$a/data
16    nohup /usr/bin/tor SOCKSPort $a CONTROLPort $b DATADirectory /tmp/tor$a/data &
17    echo "Start Polipo on port" $c
18    nohup polipo socksParentProxy="127.0.0.1:$a" proxyPort=$c proxyAddress="0.0.0.0" authCredentials="username:password" &
19
20    a=$(($a + 1)) 
21    b=$(($b + 1)) 
22    c=$(($c + 1))
23done  

通杀Tor+Polipo的脚本

1#!/bin/bash
2ps aux | grep tor | awk '{print $2}' | xargs kill -9  
3ps aux | grep polipo | awk '{print $2}' | xargs kill -9  

Freelancer任务之二:建一个scramble Obfuscated Opevpn
Tomcat推荐的日志记录格式
comments powered by Disqus