Distribution used: Debian 6 (squeeze). Unfortunately Debian 5 (lenny) doesn’t provide dante server
In the previous post, I’ve shown you on how to create your own SOCKS5 server on localhost (on your Windows PC) using XShell 4 and a SSH server.
Now, I’ll guide you on how to create a more permanent SOCKS5 proxy server using your Debian 6 squeeze server. No need to logged-in to your SSH server each time you want to use SOCKS5 server. We will use Dante server.
Install dante-server
1 | apt-get install dante-server |
edit dante server configuration file (/etc/danted.conf). This is the minimum dante server configuration that I often use:
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | # the server will log both via syslog, to stdout and to /var/log/lotsoflogs #logoutput: syslog stdout /var/log/lotsoflogs logoutput: syslog # The server will bind to the address 10.1.1.1, port 1080 and will only # accept connections going to that address. internal: eth0 port = 2727 # outgoing connection external: eth0 # methods for socks-rules. method: username none #rfc931 user.privileged: proxy user.notprivileged: nobody user.libwrap: nobody # client IP addresses that allowed to use this service client pass { from: 114.79.0.0/16 port 1-65535 to: 0.0.0.0/0 } client pass { from: 127.0.0.0/8 port 1-65535 to: 0.0.0.0/0 } # block everyone else client block { from: 0.0.0.0/0 to: 0.0.0.0/0 log: connect error } block { from: 0.0.0.0/0 to: 127.0.0.0/8 log: connect error } #allow client to connect to all ip addres/site via this proxy pass { from: 114.79.0.0/16 to: 0.0.0.0/0 protocol: tcp udp } pass { from: 127.0.0.0/8 to: 0.0.0.0/0 protocol: tcp udp } block { from: 0.0.0.0/0 to: 0.0.0.0/0 log: connect error } |
Done. Start dante server.
1 | service danted start |
A bit explanation about the configuration:
Test your SOCKS5 proxy server. Use it as SOCKS5 proxy in Firefox and access http://reverse.vrank.org/ipinfo.php . Check if your IP address is already detected as the same as server’s IP.
:~# apt-get install date-server
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Couldn’t find package date-server
Oops sorry, it should be dante-server
apt-get install dante-server*****:~# apt-get install dante-server
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Couldn’t find package dante-server
That’s because you’re running Debian 5 (Lenny)
dante-server is available in Debian 4 (etch) and Debian 6 (squeeze)
it’s works very well , thank you
hai brother. Unfortunately i cant create a socks5 server. do u can craete it for me and send it to my email plz. God bless your father.Desperately need a socks5 . tnx again
The problem is, i have a lunix dedicated server and some additional ips.
I would like these additional ips to act as a socks-5 proxy on manually assigned ports.
To further explain this, an example would be, i have a server and these 5 additional ips
ip1 – 10.56.7.1
ip2 – 10.56.7.2
ip3 – 10.56.7.3
ip4 – 10.56.7.4
ip5 – 10.56.7.5
Now i want to manually assign/open random ports to these ips example
ip1 – 10.56.7.1:1115
ip2 – 10.56.7.1:6089
ip3 – 10.56.7.1:7785
ip4 – 10.56.7.1:10221
ip5 – 10.56.7.1:15518
A) dont know how to do this ? so need help
B) and lastly, i would like these additional ips to be able to take UDP/TCP traffic. Again dont know how to do this and your assistance / guidance.
Thanks,
Zak
the closest solution I can get is using “external.rotation: same-same” setting in dante-server 1.3.x. But this dante-server isn’t provided in Debian 6 so I can’t test it on my production server.
You may also using solution on using Xshell as SOCKS5 proxy (I already answered your question there): http://www.ahowto.net/windows/easily-create-ssh-tunneling-using-xshell-free-ssh-client
OR, you can try this: http://www.catonmat.net/blog/linux-socks5-proxy/
same concept as XShell solution, i.e. using multiple SSH sessions as SOCKS5 proxy servers.
hey Dear ,
I got the same thing and i have email you about it but didn’t see any reply from you
Hmm how can i make user & password authentication? I want to create a user and pass so just ones who know user,pass can use socks but i dont have any idea how to do that. Pls help me
Mas, kalau server kita di HTTP flood sama bot net (bisa di atasi sama iptables dan fail2ban *kalau tanpa 2 itu vps langsung down) sudah 1 mingguan ini, cara ngatasin gimana biar ga nyerang terus.Selama firewall ON, kuat sih ngatasin bot net, cuman kayak nyamuk …
Thanks
pake script csf firewall saja mas bro
simple, sudah ada bagian yang nangani masalah flooding spt itu
http://configserver.com/free/csf/install.txt
selama ini pake csf fine2 saja server2ku.. kuat2 saja
good luck
punya mas bro,juga ada botnet yg nge HTTP flood apa ?
ndak tahu juga ya namanya, ndak pernah ngecheck log firewall scr detail sih (krn ndak pernah mengalami down akibat flooding sih)
[nubi firewall juga sih aku.. wkkkk]