net neutrality

Save net neutrality in the US

VPN – Virtual private network


Raspberry Pi (PiFi) – WiFi hotstop router

Let’s Get It Started:


  • INTERFACES(5) – /etc/network/interfaces – network interface configuration for ifup and ifdown
$ cat /etc/network/interfaces.d/wlan0 
iface wlan0 inet static
$ sudo apt-get -qq update && apt-get -qq install dnsmasq
$ cat /etc/dnsmasq.d/dhcp-range 
$ sudo systemctl restart dnsmasq
$ sudo systemctl status dnsmasq
  • HOSTAPD(8) – hostapd – IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
$ sudo apt-get -qq update && apt-get -qq install hostapd
$ sudo gzip --stdout --decompress /usr/share/doc/hostapd/examples/hostapd.conf.gz > /etc/hostapd/hostapd.conf
$ sudo sed --in-place 's|DAEMON_CONF=|DAEMON_CONF=/etc/hostapd/hostapd.conf|' /etc/hostapd/hostapd.conf
$ sudo editor /etc/hostapd/hostapd.conf
$ sudo systemctl daemon-reload
$ sudo systemctl restart hostapd
$ sudo systemctl status hostapd
  • IPTABLES(8) – iptables/ip6tables — administration tool for IPv4/IPv6 packet filtering and NAT
iptables --table nat --append POSTROUTING --out-interface wlan0 --jump MASQUERADE
  • SYSCTL(8) – sysctl – configure kernel parameters at runtime
$ sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1

boom shakalaka

mount unknown filesystem type ‘exfat’ raspberry

mount unknown filesystem type ‘exfat’

pi@igla:~ $ sudo apt-get -qq update
pi@igla:~ $ sudo apt-get -qq install exfat-fuse
Selecting previously unselected package exfat-fuse.
(Reading database ... 136219 files and directories currently installed.)
Preparing to unpack .../exfat-fuse_1.1.0-2+deb8u1_armhf.deb ...
Unpacking exfat-fuse (1.1.0-2+deb8u1) ...
Selecting previously unselected package exfat-utils.
Preparing to unpack .../exfat-utils_1.1.0-2+deb8u1_armhf.deb ...
Unpacking exfat-utils (1.1.0-2+deb8u1) ...
Processing triggers for man-db ( ...
Setting up exfat-fuse (1.1.0-2+deb8u1) ...
Setting up exfat-utils (1.1.0-2+deb8u1) ...
pi@igla:~ $


dd *very* slow write speed on Mac OS X?

simply use /dev/rdiskX instead of /dev/diskX, like following:

$ time sudo dd if=~/Downloads/kali-2.1.2-rpi2.img of=/dev/rdisk2 bs=1m
7000+0 records in
7000+0 records out
7340032000 bytes transferred in 435.829733 secs (16841513 bytes/sec)

real 7m18.005s
user 0m0.039s
sys 0m5.829s

… about ~7G in ~7min, not bad huh?)