summaryrefslogtreecommitdiff
path: root/content/tech/raspberry-pi-router.md
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2016-05-24 19:46:37 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2016-05-24 19:46:37 +0200
commitbd8464abb8deee0d31bb84cc47cd3335c0e688d5 (patch)
treecea507ae72e1b5fda03ae6dc5c6d3cae2436a7cc /content/tech/raspberry-pi-router.md
parent55439cd6455232057c9c08202c853c1f5201d79f (diff)
downloadblog-bd8464abb8deee0d31bb84cc47cd3335c0e688d5.tar.gz
blog-bd8464abb8deee0d31bb84cc47cd3335c0e688d5.zip
move posts into 'tech' section
Diffstat (limited to 'content/tech/raspberry-pi-router.md')
-rw-r--r--content/tech/raspberry-pi-router.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/content/tech/raspberry-pi-router.md b/content/tech/raspberry-pi-router.md
new file mode 100644
index 0000000..8e51d6f
--- /dev/null
+++ b/content/tech/raspberry-pi-router.md
@@ -0,0 +1,30 @@
+---
+categories:
+- software
+date: 2014-08-05
+title: Use your Raspberry Pi as WiFi router
+---
+
+Using [this guide](http://www.daveconroy.com/turn-your-raspberry-pi-into-a-wifi-hotspot-with-edimax-nano-usb-ew-7811un-rtl8188cus-chipset/) I successfully turned my Raspberry Pi with an Edimax WiFi dongle into a WiFi hotspot.
+Here's how:
+
+- setup customized hostapd
+- setup dhcp server
+- configure NAT
+
+My network layout looked like this:
+
+``` c
+internet - router - Pi - tablet
+ |
+ |---- PC
+```
+
+Now the tablet is able to connect to the PC, but not the other way round.
+To fix this, add a route to the PC's IP configuration:
+
+``` bash
+ip route add -net $PI_NETWORK netmask 255.255.255.0 gw $PI_IP
+```
+
+Replace `$PI_NETWORK` and `$PI_IP` with your own values.