Connect a wireless LAN to a WAN wirelessly
Solution 1:
Using a router for this is somewhat overcomplicated. Just throw a wifi extender/repeater with an ethernet port into the mix. This will connect to and reshare the connection with no additional work, and you can connect an ethernet device to it. It will pass through DHCP.
Technically what you're looking for is a wireless bridge - but extenders are far more common.
Solution 2:
Thanks to https://stackoverflow.com/questions/9841125/setting-up-a-repeater-with-dd-wrt for the sage advice. The recommendation was to use "client bridge" mode, first setting up client mode to test connection.
Note that at this moment I am currently connected to Router B through Router A which is connected wireless to the WAN.
Yes, it may be much easier to use a dedicated WiFi extender to do this, but if you have a couple wireless routers lying around or want to connect an existing wireless subnet to a WAN wirelessly, this may be just the thing.
So here it is, in only five simple(!) steps:
Step 1: Configure LAN-side router (Router A) as WAP
This router gets configured exactly asif it were a wired WAP. In fact, if you later find an ethernet WAN drop, you can plug in.
We assume this router has any old factory firmware.
- Under WAN settings
- Set router in dynamic or DHCP mode
- Configure DNS to automatically be assigned by WAN router
- Under wireless settings
- Wireless channel: Auto
- SSID: mysubnet
- Broadcast SSID: yes
- Security: WPA2 Personal (WPA2-PSK)
- Encryption: AES
- Wireless key (PSK):
- Wireless bridging: No
- Use as access point (WAP): No
- Connect it to an ethernet WAN drop
- Test WAN access by connecting to the mysubnet SSID
Step 2: If WAP-side router (Router B) is in an unknown or inaccessible state
This router we assume is flashed with DD-WRT firmware.
- Do a 30-30-30 factory reset
- Set your computer's static IP to 192.168.1.6 (255.255.255.0 mask, 192.168.1.1 gateway)
- Connect to router at 19.168.1.1
- Set the admin password
Step 3: Set WAP-side router (Router B) to client mode and connect to WAP
ref: https://www.dd-wrt.com/wiki/index.php/Client_Mode
Again, we assume this router is flashed with DD-WRT firmware.
- Set your computer to static IP in same subnet as router (last 192.168.3.7)
- Turn wireless off on your computer
- Connect Router B to your computer in port 3
- Login to WAP-side router running DD-WRT
- Go to Wireless > Wireless Security
- Security Mode: (likely WPA2 Personal)
- WPA Algorithms: (likely AES)
- WPA Shared Key:
- SAVE (not APPLY)
- Go to Wireless > Basic Settings
- Wireless Mode: Client
- Wireless Network Mode: (or try Mixed)
- Wireless Network Name (SSID):
- Network Configuration: Bridged
- SAVE
- Go to Setup -> Basic Setup
- Connection Type: Automatic Configuration - DHCP
- Local IP Address: 192.168.3.1 (your local subnet)
- Gateway: 192.168.3.1 (same as this router)
- SAVE
- Go to Security -> Firewall
- SPI Firewall: Disable
- APPLY
- Note that at this point Router B wll be re-IP'ed and you will lose connection to it
- Reset your computer to DHCP (it should assign you an IP in the 192.168.3.0/24 subnet
- Connect to the router at 192.168.3.1 and confirm wireless connection
Step 4: Set WAP-side router (Router B) to client bridge mode
ref: https://www.dd-wrt.com/wiki/index.php/Client_Bridge
- Connect to Router B at its new address at 192.168.3.1
- Go to Wireless > Basic Settings
- Wireless Mode: Client Bridge (from Client)
- SAVE
- Go to Security > Firewall
- Under Block Wan Requests, uncheck everything (Block Anon WAN, Filter Multicast, and Filter IDENT are checked)
- Filter Multicast: checked
- SAVE
- APPLY
- Go to Setup > Advanced Routing
- Operating Mode: Router
- APPLY
- Note that at this point you will lose connection to Router B
Step 5: Connect Router A and Router B together
- Connect ethernet to port 3 of Router A
- Connect other end of ethernet to port 3 of Router B
- Turn wireless on your computer back on
- Connect to SSID mysubnet (from Router A) with your chosen key
- You should now be connected to Router A THROUGH Router B to the WAN
- Test connection to internet