In this article, I will first tell the story of the not very long life of one anonymizer, and then I will teach you how to make an anonymizer from the source codes, even without special programming or administration skills. It was decided to post my source code in open access after my anonymizer got on the Roskomnadzor's list and was blocked ... But first things first.
How it all began
Back in 2013, on one of the forums, I argued with an opponent that in the evening I would write from scratch to a ++ server distributing static pages. Stupid argument, I don’t remember where I started, but in order not to lose face I had to win this argument ...
After this story, the server's sources were lying on the back of the hard drive for about six months, until the ever-increasing Internet censorship in Russia led to the idea of ​​making your own anonymizer. But there are a lot of anonymizers and all known to me worked according to the principle: “enter the address on our website and we will show this page”, I wanted to do something original. The basic idea is to make visiting the anonymizer site optional ... But how to make it convenient?
Idea
The decision came by chance and at the beginning I didn’t even have enough technical knowledge to understand - would it work? It turned out - it works! The idea is simple: we take any site and we add the ending to it in the form of anonymizer domain name. For example, instead of
habrahabr.ru we write
habrahabr.ru.3s3s.org
')
(Later completed for https: instead of
habrahabr.ru we write
h_t_t_p_s.habrahabr.ru.3s3s.org )
True pioneer, I felt not for long. Good people suggested that the idea has long been implemented and is called
CoralCDN .
Well, I tried this CoralCDN and he did not inspire me either with its speed or stability. Therefore, all the same, I decided to write my own version.
Embodiment
1. We buy the cheapest VDS. You can find for $ 10 a year, but I still advise something more impressive. Personally, I chose DigitalOcean for $ 5 a month and was pleased as an elephant.
2. We buy a short domain, preferably beautiful and not controlled by censorship from a foreign registrar. I bought 3s3s.org from GoDaddy. $ 20 per year
3. Make two “A” entries in the DNS zone settings:
times: "@ .3s3s.org -> [VDS IP Address]"
two: "* .3s3s.org -> [VDS IP Address]"
4. We write the code for the anonymizer, we load it onto our server and it’s ready ...
Crying Yaroslavna
Well, here I got close to the moment for which I started writing this article. The most important thing is that only trusted people know about your anonymizer. Because despite the fact that there is no direct prohibition in the laws of the Russian Federation on anonymizers, in fact, prosecutors, who apparently have nothing more to do, occasionally sue, and the courts decide on the blocking of these services for a pattern.
My anonymizer lasted for two years, but two weeks ago I received a letter from the host saying that Roskomnadzor is going to block my site ... A search on the Internet showed that the site was already blacklisted due to a court decision, and the time for appeal was already out ...
Of course, I’ll try to fight and restore the term somehow, then try to file an appeal, but the site is already blocked and most likely it will remain so blocked, so it was decided to post the source code and instructions for using it
in open access.
Instruction
So, if you decide to make your anonymizer, then after the purchase of the server and the domain you have to do quite a bit.
4.1 Install the operating system on the server. My anonymizer worked under CentOS 6, but I decided to sharpen the source on the githaba under Ubuntu 16
4.2 Enter the console and execute the following commands:
apt-get update
apt-get install build-essential
apt-get install zlib1g-dev
apt-get install libcurl4-openssl-dev
apt-get install openssl libssl-dev
apt-get install libc-ares-dev
git clone https://github.com/3s3s/3s3s.org.git
cd 3s3s.org
./compile.sh
. ,
nohup ./test_server.exe &
. , … : () log.h!
#define DNS_NAME "3s3s.ru"
, ? ,
./compile.sh
nohup ./test_server.exe &
. !
P.S. 100 3s3s.ru :
3s3s.ru
P.P.S. , .
1. , ".3s3s.org" ( ".3s3s.ru")
www.kasparov.ru www.kasparov.ru.3s3s.ru
2. .
3. ,
, .
, .. . — .
4. , . ,
www.kasparov.ru kasp.3s3s.ru
...
, VDS . , , .
ru 100 , .
, , , , :
1. ( ) .
2. A IP ( 104.131.65.219 , ). :
: "@.. -> 104.131.65.219"
: "*.. -> 104.131.65.219"
!
DNS , :
.../-/.html
, . , - . , . , IP ( , ), IP — 10 .
, . , .