└── README.md /README.md: -------------------------------------------------------------------------------- 1 | Relayd Wireless Bridge in OpenWRT 2 | ================================= 3 | 4 | Sets up a wireless bridge in OpenWRT using relayd. 5 | 6 | Steps: 7 | 8 | 9 | Collect Info 10 | ------------ 11 | 12 | * Router WIFI SSID & password 13 | * Router IP address, subnet mask: Example `192.168.100.1 / 255.255.255.0` 14 | * Choose an IP address in the router's subnet for the bridge: Example `192.168.100.4` 15 | * Choose an IP address in a different subnet for the bridge lan (used to configure the bridge itself): Example `192.168.8.1` 16 | 17 | 18 | Set Bridge LAN IP Address 19 | ------------------------- 20 | 21 | * Menu -> Network -> Interfaces 22 | * LAN -> Click `Edit` 23 | * IPv4 address: Example `192.168.8.1` 24 | * DHCP Server -> General Setup -> Ignore Interface [X] 25 | * Click `Save & Apply` 26 | * Configure client PC to manually use 192.168.8.x address on ethernet and reconnect 27 | 28 | 29 | Connect Bridge to Router WLAN 30 | ----------------------------- 31 | 32 | * Menu -> Network -> Wireless 33 | * Click `Scan` 34 | * Click `Join Network` 35 | * WPA passphrase: `your wifi password` 36 | * Click `Submit` 37 | * Click `Save & Apply` 38 | 39 | 40 | Test Connection to Internet 41 | --------------------------- 42 | 43 | * Menu -> Network -> Diagnostics 44 | * Click `Ping` 45 | 46 | 47 | Install Relayd 48 | -------------- 49 | 50 | * Menu -> System -> Software 51 | * Click `Update lists` 52 | * Filter: `relay`, Click `Find Package` 53 | * Look for `luci-proto-relay` and `relayd` 54 | * Check in installed packages - see if they're already installed. 55 | * Check in available packages - click `Install` 56 | 57 | 58 | Add Bridge Interface 59 | -------------------- 60 | 61 | * Menu -> Network -> Interfaces 62 | * Click `Add new interface...` 63 | * Name of the new interface: `stabridge` 64 | * Protocol of the new interface: `Relay bridge` 65 | * Click `Submit` 66 | * Relay between networks: `lan:` and `wwan:` 67 | * Local IPv4 Address: Example `192.168.100.1` 68 | * Click 'Save and Apply' 69 | 70 | 71 | Update LAN Interface 72 | -------------------- 73 | 74 | * Menu -> Network -> Interfaces 75 | * LAN -> Click `Edit` 76 | * IPv4 Gateway: Example `192.168.100.1` 77 | * Custom DNS: Example `192.168.100.1` 78 | * DHCP: Ignore Interface [X] 79 | 80 | 81 | Add Firewall Zone 82 | ----------------- 83 | 84 | * Menu -> Network -> Firewall 85 | * Zones: Click `Add` 86 | * Name: `bridgezone` 87 | * Forward: `accept` 88 | * Covered networks: `lan:` and `wwan:` 89 | * Click 'Save and Apply' 90 | 91 | 92 | Reboot bridge, change PC ethernet port back to automatic (DHCP) 93 | --------------------------------------------------------------------------------