-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_wifi_access_point_for_lan
93 lines (64 loc) · 2.32 KB
/
create_wifi_access_point_for_lan
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Relayd Wireless Bridge in OpenWRT
=================================
Sets up a wireless bridge in OpenWRT using relayd.
Steps:
Collect Info
------------
* Router WIFI SSID & password
* Router IP address, subnet mask: Fritzbox `192.168.178.1 / 255.255.255.0`
* Choose an IP address in the router's subnet for the bridge: Example `192.168.178.4`
* Choose an IP address in a different subnet for the bridge lan (used to configure the bridge itself): Example `192.168.8.1`
Set Bridge LAN IP Address
-------------------------
* Menu -> Network -> Interfaces
* LAN -> Click `Edit`
* IPv4 address: Example `192.168.8.1`
* DHCP Server -> General Setup -> Ignore Interface [X]
* Click `Save & Apply`
* Configure client PC to manually use 192.168.8.x address on ethernet and reconnect
Connect Bridge to Router WLAN
-----------------------------
* Menu -> Network -> Wireless
* Click `Scan`
* Click `Join Network`
* WPA passphrase: `your wifi password`
* Click `Submit`
* Click `Save & Apply`
Test Connection to Internet
---------------------------
* Menu -> Network -> Diagnostics
* Click `Ping`
Install Relayd
--------------
* Menu -> System -> Software
* Click `Update lists`
* Filter: `relay`, Click `Find Package`
* Look for `luci-proto-relay` and `relayd`
* Check in installed packages - see if they're already installed.
* Check in available packages - click `Install`
Add Bridge Interface
--------------------
* Menu -> Network -> Interfaces
* Click `Add new interface...`
* Name of the new interface: `stabridge`
* Protocol of the new interface: `Relay bridge`
* Click `Submit`
* Relay between networks: `lan:` and `wwan:`
* Local IPv4 Address: Example `192.168.178.1` and in some cases main routers use ips like `192.168.0.1`
* Click 'Save and Apply'
Update LAN Interface
--------------------
* Menu -> Network -> Interfaces
* LAN -> Click `Edit`
* IPv4 Gateway: Example for fritzbox `192.168.178.1` or for other routers `192.168.0.1`
* Custom DNS: Example for fritzbox `192.168.178.1` or for other routers `192.168.0.1`
* DHCP: Ignore Interface [X]
Add Firewall Zone
-----------------
* Menu -> Network -> Firewall
* Zones: Click `Add`
* Name: `bridgezone`
* Forward: `accept`
* Covered networks: `lan:` and `wwan:`
* Click 'Save and Apply'
Reboot bridge, change PC ethernet port back to automatic (DHCP)