badsgroup.blogg.se

Raspberry pi as tor router
Raspberry pi as tor router









raspberry pi as tor router

It consists just of 4 ip addresses from 16,777,216 possible addresses using the private subnet 10.0.0.0/8 so it is very unlikely that this 4 ip addresses are just used by the hotspot. We will make the wired subnet to connect the laptop very small from a big address range. But because it is quite complicated I will present the routing solution. For your mobile RasPi we need a dynamic setup of proxy arp as shown in Workaround for a wifi bridge on a Raspberry Pi with proxy arp. With proxy arp you can make a pseudo bridge that behaves like a real bridge. That's not supported by the on-board wifi chip from the Raspberry Pi. For it you need WDS (wireless distribution service) using 4addr. With bridging you have to bridge eth0 with wlan0 used as client connection to a remote access point (hotspot). In this case your Tor proxy will not work. Because you don't know what subnet ip addresses you get from the hotspot on wlan0 it may conflict with the subnet you configure for eth0. With routing you have to use different subnets for eth0 and wlan0. In general there are two methods doing it: routing or bridging. But with a proxy between hotspot and laptop you have to transfer ethernet packets between eth0 and wlan0. Connecting as normal WiFi client you will use DHCP (or link-local addresses) to get an ip address from the hotspot. So first you have to setup the networking.īut with a mobile Tor proxy there is a problem, because you don't know what ip addresses (subnet) are used by the hotspot you are connect to. It has the advantage that it is independent from the underlaying network configuration.











Raspberry pi as tor router