HackPig520

HackPig520 的博客

我是HackPig520,一个前端工程师,喜欢Web3和Minecraft。
github
gitlab
bilibili
tg_channel
keybase
email
twitter
zhihu
pixiv

Quickly set up a Tor network hidden service with .onion.

Preface#

.onion is a domain suffix specifically for the Tor browser, which allows access to Tor websites through this domain in the Tor browser. The purpose of Tor websites is to maintain the anonymity of servers and avoid leaking information about the source server.

  1. What are the advantages and disadvantages of setting up a Tor website?
  • The traffic to the website is encrypted through the Tor network, so your IP address is invisible.
  • The Tor network uses multiple encryption mechanisms to effectively protect website and user data.
  • It allows users to access websites anonymously and protect their privacy.
  • Websites can only be accessed through the Tor browser, making access more difficult.
  • The number of nodes in the Tor network is limited, so the speed of websites is usually slow.
  • Such websites are often used for illegal activities, so there is a risk of abuse.
  1. This article will introduce how to set up a Tor website on Linux.

Preparation#

  • A running Linux server (must be a clean overseas server)
  • A running web server (using Nginx as an example)

Install Tor network node#

Use the following command to install the Tor network node:

apt install tor

Configure Tor network node#

To configure your server as a Tor network node, edit the etc/tor/torrc file and add the following lines:

HiddenServiceDir /var/lib/tor/hidden_service # Specify the directory to store Onion Service information. This directory will be automatically created after Tor is running.
HiddenServicePort 80 127.0.0.1:8080 # Traffic on port 80 will be routed through Tor to 127.0.0.1:8080

Start Tor network node#

To start the Tor network node, run the following command:

sudo tor

Access Tor website#

To access your Tor website, use the Tor browser! Traffic will be routed through the Tor network node to 127.0.0.1:8080.


Conclusion#

In areas with internet censorship, the Tor network may be blocked. To bypass internet censorship, you can use bridges to connect to the Tor network. Bridges are special nodes in the Tor network and are usually operated by volunteers. The IP addresses of bridges are usually not blacklisted by internet censorship systems, so you can use bridges to connect to the Tor network.

So, let me share some available bridge addresses with you~

Manual Get← Note that this is an onion service address!
obfs4 209.250.251.53:33497 F7C5065D8018E0D59E600DF70680385E6B58FBD4 cert=wvXlAILkkCByYxMq5kSfSe25NiZjNExjHOp2yJurULVCi3gjFKH7pcpwT2PSPlq+ZeKhZg iat-mode=0
obfs4 89.40.206.104:33333 BD9281F81514F40AA0B2B657C03EFD3C2AB5228B cert=BTTB4RFCk7dSY+2vK3GViQdzeIcTUlhh/LLMBer/o41vD9AZ5Ej1tEGL5yQGk4irj5l/BQ iat-mode=0
obfs4 195.64.158.223:9003 D434F1BBB283B01116574F460E94A8FE05D0B26C cert=vi74OYCsh4tTokyqnud63mwMgxws3TL7kTyJMAds+xzAlluTaN8OmfMKDGm9wTwn3AlDOQ iat-mode=0
144.76.90.89:44644 BA68F17C0036E25661448A238FA5D0EADD2EBD6F
45.130.22.85:9992 CBA95DD7EEA4EB23B97B033C28FEC240677A07A8
obfs4 89.40.206.104:33333 BD9281F81514F40AA0B2B657C03EFD3C2AB5228B cert=BTTB4RFCk7dSY+2vK3GViQdzeIcTUlhh/LLMBer/o41vD9AZ5Ej1tEGL5yQGk4irj5l/BQ iat-mode=0
obfs4 195.64.158.223:9003 D434F1BBB283B01116574F460E94A8FE05D0B26C cert=vi74OYCsh4tTokyqnud63mwMgxws3TL7kTyJMAds+xzAlluTaN8OmfMKDGm9wTwn3AlDOQ iat-mode=0
obfs4 [2001:19f0:4401:87c:5400:3ff:feb7:8cfc]:4444 55346F385B6FB7069D1588CE842DBE88F90F90C5 cert=fbtptOz8dA1Sz6Fl4i0k8KNqBVt8ueGmBHUBixB1/0QCyxwct9w4TwyXJe9kjwQCeR9SVw iat-mode=0

If you still can't connect, you can configure a SOCKS5 proxy as shown in the diagram (using Clash as an example).

Go to about:preferences#connection in the Tor browser and scroll to the bottom of the page.

image

Click on Settings...

image

Configure as shown in the image.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.