I got an Odroid C2 for testing from a work-mate. Because he told me that his initial tests with Ubuntu’s alpha version went not too well, I gave ArchLinux a try. As I use Arch as my daily driver on non-arm architectures I appreciated that option.
Installation went smooth, but I had no fancy idea to take the Odroid for a ride.
So I set up a Tor Access Point for the living room. I already had that in mind for my dated Raspberry Pi, but never was in the mood.
I came accross a quick howto in
german
a few months ago and started from there. Because I had some small pitfalls I thought it might be a good idea to write it down.
First, install the required software
Now configure the dnsmasq service in /etc/dnsmasq.conf
Next, configure the access point via /etc/hostapd/hostapd.conf
Btw, you probably want to make sure, that the wifi adapter you are using is able to enter master mode. (iwconfig wlan0 mode master)
We now need a unit file to assign a static ip to the wifi adapter. Create
/etc/systemd/system/openwifi.service
And the tor configuration itself in /etc/tor/torrc
To bind Tor to privileged ports the service must be started as root. We can modify the tor service by adding /etc/systemd/system/tor.service.d/start-as-root.conf with following content:
And to make all this work together we need to do a few more changes to the system. We have to enable ip forwarding via sysctl. Create a file like /etc/sysctl.d/99-sysctl.conf with this line
And load this configuration by
At last we need some iptables rules to redirect tcp and udp traffic and to route it from the wlan0 device to eth0:
Let’s give it a try and start all services:
And when everything is working you can enable all the services to get them started after reboot:
If it is not you have to take a further look into it.
On the Odroid C2 it performs very well and if it was any different they did something very wrong. So I am looking for some other task for the board.