This article will tell you that how to use the Raspberry Pist to create onion routing, which can help you build a secure network environment.
Usually, I feel that others are monitoring you, don't worry, now you can use Onion Pi Tor to be anonymous to swim in the network world. Below we will use a few little stuffs such as Raspberry Pieces, Wireless Net Cards, and the network cable to create a small low-power portable privacy tool.
The use of this device is still very convenient, you only need to insert the network cable above, and connect it to the power supply with the USB cable. Finally, there will be a new wireless hot point after starting it. At this time, we only need to connect from the computer to your hotspot, you can surf the anonymous Tor.
What is TOR
Tor is a kind of onion routing service - each network package needs to pass through the 3-layer relay before reaching your designated destination. This will let the servers you visit or probes you, making it harder to find your source address and identity. In addition, this is a good BYPASS means for those who are blocked by IP.
According to the TOR official website:
The reporter can communicate more conveniently to the documentation and people who have different political views. Non-governmental organizations can use Tor to allow their employees to visit their own pages in foreign countries.
For example, IndyMedia is recommended to use Tor to maintain employees' security and privacy. In addition, the radical organization EFF also recommends that you will safeguard the freedom of citizens by using Tor.
Enterprises can use Tor as a safety tool to prevent competitors from scratching procurement programs. They also use Tor instead of traditional VPN, which will leak communication-related sensitive information. Which places have employees working very late, which places have employees in consulting a job site, which research departments communicate with patent lawyers?
A US Naval Segment use Tor to open source intelligence collections, and one of them has recently used Tor when they were deployed in the Middle East. For law enforcement departments, when they use Tor to browse the website and the information sprouting operation, it will not disclose the government's IP.
Before you use the agent, you need to understand that even if your IP is random, others will have many ways to identify you. Delete and block your browser from cache, record cookie and history, some browsers are allowed to have anonymous mode. Try not to log in any account that may reveal personal information (unless this is your own purpose), read here you may learn more.
Below, we will build a small and beautiful thing with the Raspberry Pist, but we can't guarantee that it is absolute anonymity and security, please use your Tor rationally.
Materials that need to be prepared
Raspberry Pie 2 Generation B
cable
Wireless network card (specific model)
SD card with raspbian (more than 4G) - you can copy the raspbian mirror, or buy a good SD card
Power supply and USB cable
USB Console Line (optional) - can make debugging work more easily
Raspberry
SD or MicroSD card reader (optional)
You need to set these things, or go to buy in the links we provide.
Ready to work
Before the following tutorial, assume that you have already set a good restay.
Load the system into the SD card, if you bought the WHEEZY in advance, you can skip these steps.
Guide the Raspberry Party, configure it, don't forget to change the password of the Raspberry Pass Default Account.
Remember to put the system on the entire hard drive, otherwise the space will be insufficient:
Set and test network connection conditions
Check if the Raspberry Pie can ping the ping, if you can enter ifconfig -a, you can identify the wireless network card (WLAN0).
Connect using the USB Console line (optional)
It can be used to debug a hotspot berry
Related microcontroller development board recommended:
P1600-DK02 development board is an open source, high energy efficiency, excellent performance and only credit card size, and its price of pro-ownership is dedicated to development, implementing high performance parallel processing applications.
AVR-CAN Development Board AT90CAN128 processor is used to learn Atmel microcontroller AT90can128 to allow customers to make the bridge between UART and CAN networks.
The Chipkit Pro MX4 development board is a single-chip developing board based on Microchip PIC32MX460F512L, 32-bit PIC32 microcontroller series.
Now you get a Raspbian raspberry that runs Raspbian, you can connect it with a USB Console line and then go in.
Let's take a look at the tutorial of the Raspberry Pist as a hotspot and build it as a wireless routing hotspot.
After doing the following work, you can connect to the Raspberry Picking by the hotspot and start online surfing.
We can make the following configuration by connecting the Ethernet port (or the console port).
If you use the console line, we recommend that you switch through the power adapter, keep the connection of black, white, and green.
Install the onion routing Tor agent
The following settings can refer to the Tor "Anonymous Agent Tutorial".
Let's start install TOR below, which is onion routing software.
Logger into your Raspberry Pie through the Ethernet port or console line, run:
Run the following command editing profile:
Sudo nano / etc / tor / torrc
Write content:
Log NOTICE FILE /VAR/LOG /TOR/Notices.log
VirtualAddrNetwork 10.192.0.0/10
Automaphostssuffixes .onion, .exit
AutomaphostsonResolve 1
Transport 9040
TranslistenAddress 192.168.42.1
DNSPORT 53
DNSListenaddress 192.168.42.1
Let's follow the basic information of DIY, renamed the onion pi, and of course don't forget to set strong passwords.
Below we want to change the IP routing table, walking WLAN0 (WiFi) traffic will be forwarded to TOR.
Enter the following command to brush out the old IP NAT table rules:
Sudo iptables -f
Sudo iptables -t nat -f
Enter the following command, forward all DNS (UDP 53) Request from the WLAN0 interface to the Internal Port 53 (DNSPORT in our Torrc)
Sudo iptables -t nat -a preording -i wlan0 -p udp --dport 53 -j redirect - TO-PORTS 53
Enter the following command, forward all TCP traffic from the WLAN0 interface to 9040 port (Transport inside Torrc)
Sudo iptables -t nat -a preording -i wlan0 -p tcp --syn -j redirect - TO-PORTS 9040
Related microcontroller development board recommended:
P1600-DK02 development board is an open source, high energy efficiency, excellent performance and only credit card size, and its price of pro-ownership is dedicated to development, implementing high performance parallel processing applications.
AVR-CAN Development Board AT90CAN128 processor is used to learn Atmel microcontroller AT90can128 to allow customers to make the bridge between UART and CAN networks.
The Chipkit Pro MX4 development board is a single-chip developing board based on Microchip PIC32MX460F512L, 32-bit PIC32 microcontroller series.
Below, you can use the command to check the IP table:
Sudo iptables -t nat -l
If everything is running OK, we will deposit it into the old NAT storage file:
Sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
After the network settings are restarted, iptables will be loaded automatically:
Below we will create a log file (easy to debug):
Sudo touch /var/log/tor/notices.log
Sudo Chown Debian-Tor /Var/log/tor/notices.log
Sudo chmod 644 /var/log/tor/notices.log
Check using the following command:
LS -L / VAR / LOG / TOR
Manually start TOR service:
Sudo Service Tor Start
Check if it is running (this command can run at any time when you need to check):
Sudo Service Tor Status
Finally, let it start when booting:
Sudo Update-rc.d Tor ENABLE
Test Tor WiFi
X We can see the online signal that has appeared on the computer:
Connect with a set password:
You can ping 192.168.42.1, check whether the Raspberry Pie can pass. Note that you are ping that is not available, because ping traffic does not take the agent.
In order to verify that the agent is available, we can open a website that measure IP, such as http://www.ipchicken.com, see if our IP has become anonymous IP.
Search for "Love Bo.com" to pay attention, daily update development board, intelligent hardware, open source hardware, activities, etc., you can make you master. Recommended attention!
[WeChat scanning picture can be directly paid]
Related Reading:
In 2016, the most dazzled 10 kinds of home black technology will be so long after your home!
Related microcontroller development board recommended:
P1600-DK02 development board is an open source, high energy efficiency, excellent performance and only credit card size, and its price of pro-ownership is dedicated to development, implementing high performance parallel processing applications.
AVR-CAN Development Board AT90CAN128 processor is used to learn Atmel microcontroller AT90can128 to allow customers to make the bridge between UART and CAN networks.
The Chipkit Pro MX4 development board is a single-chip developing board based on Microchip PIC32MX460F512L, 32-bit PIC32 microcontroller series.
Our other product: