wiki'd

by JoKeru

3proxy - Free Proxy Server

[cc lang="bash"]
\$ apt-get install make gcc -y
\$ cd /usr/src/
\$ wget http://3proxy.ru/0.6.1/3proxy-0.6.1.tgz
\$ tar -xzf 3proxy-0.6.1.tgz
\$ cd 3proxy-0.6.1
\$ make -f Makefile.Linux
\$ cp src/3proxy /usr/local/bin/

\$ mkdir /etc/3proxy
\$ mkdir /var/log/3proxy
\$ vi /etc/3proxy/3proxy.cfg

\$ 3proxy /etc/3proxy/3proxy.cfg
[/cc]

/etc/3proxy/3proxy.cfg - socks config
[cc lang="bash"]
#!/usr/local/bin/3proxy

daemon
pidfile /etc/3proxy/3proxy.pid

# if 3proxy.cfg is executable, a config file is needed
config /etc/3proxy/3proxy.cfg

# rotate log daily
log /var/log/3proxy/access D
# gzip logs
archiver gz /bin/gzip %F
# retain 30 log files
rotate 30

# monitor files for changes
monitor /etc/3proxy/3proxy.cfg

# define users - cleartext password
users "user1:CL:pass1" "user2:CL:pass2"

internal 10.20.30.41
external 10.20.30.41
auth strong
allow user11 * * * * * *
socks -p6969
flush

internal 10.20.30.42
external 10.20.30.42
auth iponly
allow * 50.60.70.81,50.60.70.82 * * * * *
socks -p6969
flush
[/cc]
user & pass auth works only on SOCKSv5 and HTTP proxy

Comments