
The article is based on my
personal experience . For successful repetition
, PayPal is required , it is available for shipment from Russia and Ukraine.
Long before the sad events with torrents.ru, I decided to ensure my anonymity and at the same time use the Demonoid tracker. Since I am from Ukraine, access has been closed for me there.
Then I decided to spend a small amount (up to $ 50) and rent a server from which it was possible to download torrents, surf from the server IP (goodbye to the Demonoid problem), and quietly download the files I needed while maintaining anonymity.
First of all - the server. A low-powered server is enough for my needs, but the traffic and disk should be enough. Searching, I found the cheapest option -
only $ 39 per server for this configuration:
')
- Atom processor Dual-Core 1.6Ghz
- Memory 1GB Ram 800mhz
- 250GB disk
- 2000GB traffic
- 5 IP addresses (alas, from one subnet)
- Channel 100MB (but only in the USA)
You can order a server through
this link , but note that their number is limited and it may not be enough for everyone.
I ordered the server without any control panels with a clean CentOS 5 distribution. You will receive a password to the root user in your inbox and you will need an ssh client for management. For Windows, you can take it
here , in Linux, FreeBSD & MacOS, it comes in the kit.
I advise you to change the ssh port to some non-standard:
echo "Port 30022" >> /etc/ssh/sshd_config
service sshd restart
In order to climb from the server IP on the sites need a proxy. I advise you to take 3proxy, but unfortunately it is not included in the CentOS kit. As well, and many other useful software. It is very easy to fix by putting additional repositories:
RpmForge ,
CentALT and Epel .
With the help of yum, now you can install the necessary software:
yum install 3proxy
Here is the working config for 3proxy, it should be placed in /etc/3proxy.cfg:
nserver IP /etc/resolv.conf
nscache 65536
timeouts 1 5 30 60 180 1800 15 60
users anon:CL:
daemon
log /dev/null
auth strong
allow * * * 80-88,8080-8088 HTTP
allow * * * 443,8443 HTTPS
external IP
internal
auth strong
deny * * 127.0.0.1,192.168.1.1
allow * * * 80-88,8080-8088 HTTP
allow * * * 443,8443 HTTPS
proxy -n
auth strong
flush
allow anon
maxconn 4
socks
auth strong
flush
allow anon
maxconn 4
admin
It creates an anon user with a password, the proxy settings for the browser will be the server IP and port 3128.
Now for the torrents. There is a very simple client with console management. Of course, if you wish, you can also connect the web interface, but this desire quickly disappears on 1GB RAM;)
In fact, there is nothing complicated, it just needs to be run from some user and do it in the screen:
yum install screen rtorrent
Now create a user, for example kachalka, and give it a password.
adduser kachalka
passwd kachalka
The fastest way to download or download a file from a server is FTP. Personally, I use proftpd, especially as it picks up our created user kachalka on the fly.
yum install proftpd
Since the server has 1GB of RAM, you need to free up the maximum. Run
ntsysv
and leave only these services enabled:
- 3proxy
- haldaemon
- irqbalance
- mcstrans
- microcode_ctl
- network
- proftpd
- sshd
Let's check the server operation by rebooting:
reboot
If everything is done correctly, then in a couple of minutes it will be possible to enter and everything will work. Except rtorrent. About him - more:
Usually, I upload all torrents through a browser to a separate directory, so it would be wise to make the user kachalka exactly the same and upload all the files there and upload downloaded via FTP.
And now the most important thing is exactly how to manage rtorrent via ssh:
First create the screen:
screen
. This is an additional console that can be left hanging when closing the connection to the server.
In the screen, we become the user kachalka:
su - kachalka
And run rtorrent by sicking it on our torrents:
rtorrent -p 20000-30000 directory-with-torrents / *. torrent
The rtorrent control menu appears. The control is very simple, with the up / down arrows we go through downloads, left / right - we enter the detailed information for each download.
Additional key combinations:
- CTRL + q - the first press sends a signal to the trackers about the completion of work, re-turns off the client without sending.
- CTRL + s - starts the download
- CTRL + d - stops the download, pressing again deletes
You can learn about the remaining less important combinations from the documentation:
man rtorrent
or by asking me in the comments.
And finally, on the management of the screen. In order to leave the console alive and make a return to the main, a combination is used:
CTRL + ad - first Control and a, and then just d. If you played Mortal Combat, this combination of problems will not create;)
And you can return from the main console with the command:
screen -r
That's all. Since the server works without stopping, it will also be distributed constantly, which is very good for your rating!
PS If you still have the torrents downloaded from the torrents.ru tracker, then you can enter the “magic lines” in the / etc / hosts file, you can not re-download the torrents and continue the download and distribution:
195.82.146.114 torrents.ru
195.82.146.114 www.torrents.ru
195.82.146.120 bt.torrents.ru
195.62.63.163 bt1.torrents.ru
195.82.146.121 bt2.torrents.ru
195.62.62.241 bt3.torrents.ru
195.82.146.123 bt4.torrents.ru