In 2022 a lot of russian web-services, government particularly, hided themselves behind a firewall restricting access from outside of Russia. This disgraceful decision broke habits of russians living abroad disabling them using essential services. This repo aims to ease the suffering.
The repo contains the code for spinning up a very basic http proxy server in Yandex Cloud in just one command allowing
to access desired websites.
A typical pattern for using this proxy consists of
- creating the server
- using the server
- killing the server
This allows to keep spendings for just ₽2 per hour.
Download repo
git clone --depth 1 https://github.com/y-popov/rus-proxy.git
Download Terraform
Cloud is here.
Go to the page. Copy your cloud-ID and folder-ID.
If you struggle here are help pages: [1-cloud] [2-folder]
Paste cloud details into your tfvars
-file. Template is in the repo.
At first, we need your Yandex OAuth-token. Copy it from here.
Then exchange it on IAM-token:
curl -d "{\"yandexPassportOauthToken\":\"<OAuth-token>\"}" "https://iam.api.cloud.yandex.net/iam/v1/tokens"
Copy iamToken
value and paste it into tfvars
-file.
Just type
terraform init
As easy as
terraform apply -auto-approve -var-file="my.tfvars"
The previous step will report you IP address of your very own proxy server. Use it along with port 3128. No credentials required.
In the end of your session kill the server:
terraform destroy -var-file="my.tfvars"
Type yes
when prompted.