blob: 4631a856b8f24ddffba5912eb85edcae1162da84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
---
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.
<!--more-->
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.
|