Posts

Trojan-GFW on Ubuntu 20.04 Server

Image
Trojan is popular in China because it's easier to configure than V2Ray. The diagram below explains how it works. (Source: https://trojan-tutor.github.io/2019/04/10/p41.html ) Traffic arrives at port 443 or port 80 . Port 443 is handled by Trojan. Good passwords goes to the Trojan server. Bad passwords go to Nginx on localhost port 80 . Port 80 is handled directly by Nginx. The server runs Ubuntu 20.04. A DNS record type A points from host.example.com to the server's IP address. Install and Configure Nginx apt install nginx -y Edit the configuration file: vi /etc/nginx/sites-available/default Change the contents to read as follows. Nginx listens on port 80 . Change host.example.com in the example below to your actual server name. server {         listen 80 default_server;         root /var/www/html;         index index.html;         server_name host.example.com;         location / {                 try_files $uri $uri/ =404;         } } Save the file. Restart Nginx with the n

SSH over Tor from Windows

Image
Install PuTTY Download the latest Windows installer from https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html . Run the installer. On the Welcome screen, click Next . On the Destination Folder screen, click Next . On the Product Features screen, click Install . If the User Account Control screen appears, click Yes . Click Finish . Optionally Get Bridges If you are in a country that censors Tor, you may need to connect to the Tor network via a bridge. You can get bridge lines on the web from https://bridges.torproject.org/options . Alternatively you can write from a Gmail account to bridges@torproject.org putting get transport obfs4 in the email's message body. If you need an unlisted bridge, create your own private obfs4 bridge. Install Tor Browser Download Tor Browser for Windows from https://www.torproject.org/download . Run the installer. It has a name that looks like torbrowser-install-win64-9.5.3_en-US.exe . On the Language screen, select English or any other langu

Shadowsocks with V2Ray Plugin for Windows and Android Clients

Image
Domain Take out a domain name, e.g. example.com . Add A and/or AAAA DNS record(s) for server, e.g. my.example.com . Add domain example.com to Cloudflare. Set nameservers to Cloudflare nameservers. Initially, set Cloudflare SSL/TLS Encryption mode Off . Server Nginx These instructions are for Debian 10 logged in as root user. apt update && apt upgrade -y apt install nginx -y apt install wget zip unzip -y wget https://github.com/arcdetri/sample-blog/archive/master.zip unzip master.zip cp -rf sample-blog-master/html/* /var/www/html/ Edit /etc/nginx/sites-available/default . Replace my.example.com with actual server name. server {         listen 80 default_server;         listen [::]:80 default_server;         root /var/www/html;         index index.html;         server_name my.example.com;         location / {                 try_files $uri $uri/ =404;         } } systemctl restart nginx apt install certbot python-certbot-nginx -y certbot --nginx certbot renew --dry-run Now you

Tor 浏览器 Windows

Image
https://www.youtube.com/watch?v=iW-tgqVohYs 防止你被追踪和监视。 避开网络审查。tor网桥 https://www.chromeba.net/tor网桥.html 1. 下载 Tor 浏览器 https://www.torproject.org/download/languages 2. 安装 3. 输入网桥地址 4. 检查 https://check.torproject.org/?lang=zh_CN tor,obfs4,gfw,china,windows

Tor Browser Ubuntu

Image
https://www.youtube.com/watch?v=OD1qxaV1s68 Defend yourself against tracking and surveillance. Circumvent censorship. Download Tor Browser from the official website at https://www.torproject.org/download/languages Our example here is for Linux, but Tor Browser also works for Windows and macOS. Open a terminal and unpack the archive: cd Downloads tar -xf tor-browser-linux64-9.5.3_zh-CN.tar.xz cd tor-browser_zh-CN Use the provided script to install the app: ./start-tor-browser.desktop --register-app Start Tor Browser. On Ubuntu, you can right-click on the dash and select Add to Favorites so that Tor Browser sticks to the GNOME dash. If you are behind the GFW of China, click the Configure button. Check the box to say that Tor is censored in your country. Select bridge type meek-azure . If you know an obfs bridge line, you can alternatively select obfs4 and enter details for the bridge. Check that Tor is working by visiting: https://check.torproject.org/?lang=zh_CN Read More Find out mo

Shadowsocks Manager

Image
Shadowsocks Manager offers a graphical user interface (GUI) for managing Shadowsocks and Wireguard nodes and users. This tutorial is for a Debian 10 virtual private server (VPS). All commands are issued as root. Add DNS and rDNS Records If you have not already done so, add a DNS A record pointing from your hostname (e.g. yourhost.yourdomainname.tld ) to your server IP address. Since we will be sending email, add a DNS record of type MX pointing from your naked domain to your hostname (such as yourhost.yourdomainname.tld ). The naked domain is often represented by a commercial at sign in control panels. Add a Sender Policy Framework (SPF) TXT record for your domain. The name of the entry is the naked domain. The value of the text field is: v=spf1 mx -all This specifies that you will allow the domain's MX server(s) to send email for the domain, but you want to prohibit all other servers from sending email on your behalf. Some email recipients will check your that

Set Up a Tor Node on Windows 10

Tor relays can be either guard/bridge nodes, middle nodes, or exit nodes. It is recommended that you do not run an exit node from home. For a bridge you should have at least 1 Mbit/s (Mbps) of bandwidth to spare, and for a guard node or middle node you should have at least 10 Mbit/s (Mbps) of bandwidth to spare. You will also need at least 200 GB of traffic to donate (100 GB upload and 100 GB download). You should also have at least 1 GB of free RAM on your computer to run Tor. You will need a public IPv4 address that remains fixed for at least several hours at a time. If you are behind a router that does Network Address Translation (NAT), you will need to be able to port forward Tor-related ports (e.g. your ORPort) from your router to the machine that runs Tor. Your computer clock needs to be set to the correct time. When you have met all the requirements, proceed as follows. Download Tor Expert Bundle to your Windows machine: Open a browser and visit https://www.torproject