From 2ae741947d822c0dd16198a684318e4a5ed310cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Cezar=20Mois=C3=A9s?= Date: Sun, 20 Oct 2024 20:19:51 +0000 Subject: [PATCH] Upload files to "/" --- LEIA-ME.md | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- torando.sh | 5 ++++ toroff.sh | 5 ++++ 4 files changed, 180 insertions(+), 2 deletions(-) create mode 100644 LEIA-ME.md create mode 100644 torando.sh create mode 100644 toroff.sh diff --git a/LEIA-ME.md b/LEIA-ME.md new file mode 100644 index 0000000..cb31756 --- /dev/null +++ b/LEIA-ME.md @@ -0,0 +1,86 @@ +# TORANDO - TOR VPN +

+ +

+

+ +### Você precisa do pacote do tor instalado! Vamos instalar! + +> DEBIAN: + + apt update && apt upgrade && apt install tor torsocks -y +> GENTOO: + + emerge tor torsocks + +> ARCH: + + pacman tor torsocks -Syu + +> OPENSUSE: + + zypper install tor torsocks -y + +## PRIMEIRO PASSO! ALTERE A CONFIG +Clone o repositório então edite _torando.sh_ e mude USERAQUI para o seu nome de usuário. +Faça o mesmo em _toroff.sh_ + + git clone https://github.com/cristiancmoises/torando + cd torando + chmod +x * + nano torando.sh + +## EDITE O TORRC + + nano /etc/tor/torrc + +E cole este código no final: + + VirtualAddrNetwork 10.192.0.0/10 + AutomapHostsOnResolve 1 + TransPort 9040 + DNSPort 53 + +## AGORA EDITE O RESOLV.CONF + + nano /etc/resolv.conf + +## REMOVA TUDO E COLE + nameserver 127.0.0.1 + +## POR SEGURANÇA + chattr +i /etc/resolv.conf + + +## FIREFOX CONFIG - SEM VAZAMENTO DE DNS +_Vá para o firefox e digite *about:config* e pressione enter._ +![image](https://github.com/cristiancmoises/torando/assets/86272521/149b910f-baab-44c8-b11d-35ca0b409a52) + + about:config + +> #### OK, Agora na pesquisa digite o comando e altere: +![image](https://github.com/cristiancmoises/torando/assets/86272521/2951cc34-501a-4ffb-8eb8-07299fd83a92) + +| COMANDO | VALOR | +|------------------------|----------------------------------| +|network.proxy.socks_remote_dns | True | +|browser.safebrowsing.enabled | True | +|browser.safebrowsing.malware.enabled | False | + +## AGORA VOCÊ JÁ PODE INICIAR O TORANDO.SH! + cd torando + ./torando.sh +## PARA DESATIVAR + cd torando + ./toroff.sh + +## BONUS! EDITE SEU BASHRC/FISH OU OUTRO... + nano .bashrc +### INCLUA NO FINAL: + alias torando="./torando.sh" + alias toroff="./offtor.sh" + +## ISTO É TUDO! +![anon](https://github.com/cristiancmoises/torando/assets/86272521/d02ee4f6-83ee-4a43-abd9-a11c9e37c77d) + + diff --git a/README.md b/README.md index 19e7ef7..db24aa2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,85 @@ -# torando +# TORANDO - TOR VPN +

+ +

+

+ +> 🇧🇷 Para o tutorial em português clique [aqui](https://github.com/cristiancmoises/torando/blob/main/LEIA-ME.md) +_____________________________________________ +## Do you need the tor package to run this. Instal tor first! +> DEBIAN: + + apt update && apt upgrade && apt install tor torsocks -y +> GENTOO: + + emerge tor torsocks + +> ARCH: + + pacman tor torsocks -Syu + +> OPENSUSE: + + zypper install tor torsocks -y + +## FIRST STEP - CHANGE THE CONFIG +Clone the repo and open the _torando.sh_ and change USERAQUI for your username. +Do the same on _toroff.sh_ + + git clone https://github.com/cristiancmoises/torando + cd torando + chmod +x * + nano torando.sh + +## EDIT TORRC + + nano /etc/tor/torrc + +Then paste in the end: + + VirtualAddrNetwork 10.192.0.0/10 + AutomapHostsOnResolve 1 + TransPort 9040 + DNSPort 53 + +## NOW EDIT THE RESOLV.CONF + + nano /etc/resolv.conf + +## FOR SECURITY + + chattr +i /etc/resolv.conf + +## THEN REMOVE ALL AND PASTE + nameserver 127.0.0.1 + +## FIREFOX CONFIG - NO DNS LEAK +_Go to the firefox and digit *about:config* then press enter._ + + about:config + +> #### OK, Now paste the command and search, then change the value: +| COMMAND | VALUE | +|------------------------|----------------------------------| +|network.proxy.socks_remote_dns | True | +|browser.safebrowsing.enabled | True | +|browser.safebrowsing.malware.enabled | False | + +## NOW YOU CAN TURN ON THE TORANDO.SH! + cd torando + ./torando.sh +## FOR DISABLE + cd torando + ./toroff.sh + +## BONUS! EDIT YOUR BASHRC/FISH OR WHATEVER... + nano .bashrc +### INCLUDE: + alias torando="./torando.sh" + alias toroff="./offtor.sh" + + +## THAT'S ALL! +![anon](https://github.com/cristiancmoises/torando/assets/86272521/9df06b1d-cff7-4c02-a6fb-c7add5ef27e3) + -Tor like VPN \ No newline at end of file diff --git a/torando.sh b/torando.sh new file mode 100644 index 0000000..7c74f57 --- /dev/null +++ b/torando.sh @@ -0,0 +1,5 @@ + sudo iptables -t nat -A OUTPUT -p tcp -m owner --uid-owner USERAQUI -m tcp -j REDIRECT --to-ports 9040 + sudo iptables -t nat -A OUTPUT -p udp -m owner --uid-owner USERAQUI -m udp --dport 53 -j REDIRECT --to-ports 53 + sudo iptables -t filter -A OUTPUT -p tcp -m owner --uid-owner USERAQUI -m tcp --dport 9040 -j ACCEPT + sudo iptables -t filter -A OUTPUT -p udp -m owner --uid-owner USERAQUI -m udp --dport 53 -j ACCEPT + sudo iptables -t filter -A OUTPUT -m owner --uid-owner USERAQUI -j DROP diff --git a/toroff.sh b/toroff.sh new file mode 100644 index 0000000..244ca78 --- /dev/null +++ b/toroff.sh @@ -0,0 +1,5 @@ + sudo iptables -t nat -D OUTPUT -p tcp -m owner --uid-owner USERAQUI -m tcp -j REDIRECT --to-ports 9040 + sudo iptables -t nat -D OUTPUT -p udp -m owner --uid-owner USERAQUI -m udp --dport 53 -j REDIRECT --to-ports 53 + sudo iptables -t filter -D OUTPUT -p tcp -m owner --uid-owner USERAQUI -m tcp --dport 9040 -j ACCEPT + sudo iptables -t filter -D OUTPUT -p udp -m owner --uid-owner USERAQUI -m udp --dport 53 -j ACCEPT + sudo iptables -t filter -D OUTPUT -m owner --uid-owner USERAQUI -j DROP