Adafruit will not be shipping orders Martin Luther King Jr. Day, Monday January 21, 2019. Any expedited orders placed after 11am ET Friday January 18 will go out Tuesday January 22.
0

Shell Script To Create An Onion Router For Your @Raspberry_Pi #piday #raspberrypi

NewImage

Shell script to create an onion-router for your Raspberry Pi from a stock Moebius image. by Blufro93 via github

This is a shell script to create an onion router for your Raspberry Pi with a USB Ethernet
adapter from a stock Moebius Linux image. This will allow you to plug your Pi directly into
your network and force all TCP traffic to be directed through tor, and force all UDP traffic to
be dropped.

This script performs the following operations:

-Uninstalls the dropbear ssh server
-Upgrades all installed packages
-Installs and configures tor
-Forces all TCP traffic to go through the tor network using iptables
-Drops all UDP traffic, except DNS requests which go through tor using iptables
-Sets the root file-system to read-only to help prevent SD card issues

What You Need:

1. A Raspberry Pi
2. A USB ethernet adapter compatible with the Raspberry Pi
3. An SD card with size of at least 1 GB
4. A stock Moebius Linux Image (from here: http://moebiuslinux.sourceforge.net/ )

Directions:

1. Flash an SD card with a stock Moebius Linux Image (directions can be found here:
http://moebiuslinux.sourceforge.net/documentation/installation-guide/ )

2. Plug your ethernet cable to the internet into your Pi’s onboard NIC. Plug your ethernet
cable to your internal network into your USB NIC. Your network cables should be in this
configuration:

[Internet]—[Raspberry Pi]—[USB Ethernet Dongle]—[Internal Network]

3. Boot up your Pi and login ( username: root password: raspi )
4. Change root’s default password:

# passwd

5. Download the setup script to your Pi:

# wget https://raw.githubusercontent.com/blufro93/inline-onion-pi/master/setup-onion-pi.sh

6. Run the setup script:

# sh setup-onion-pi.sh

7. Wait until reboot!

With your Raspberry Pi set up this way, all traffic behind your Raspbery Pi which goes
through the USB ethernet adapter will be either forced through tor or blocked.

Read more

998Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!


Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, or even use Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for MakeCode, CircuitPython, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.

Join 10,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

What do you want from CircuitPython in 2019?

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Follow Adafruit on Instagram for top secret new products, behinds the scenes and more https://www.instagram.com/adafruit/


Maker Business — A field guide to designing your PCBs, learned the hard way

Wearables — 5 meter fun

Electronics — Current limiting!

Biohacking — A Gene to Predict Modafinil Response

Python for Microcontrollers — Python snakes its way on the SparkFun SAMD21 Mini, Hackaday.io, 10k thanks, and Tim’s magazine #Python #Adafruit #CircuitPython @circuitpython @micropython @ThePSF @Adafruit

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



No Comments

No comments yet.

Sorry, the comment form is closed at this time.