Widy/Ethernet Gateway
From charlesreid1
This describes how to configure Widy and OpenWrt for the following configuration:
Client1 : : (wireless connection) : Widy ------------------------------------------------ Internet Source : (ethernet connection) : : (wireless connection) : Client2
Contents
Steps
These instructions proceed from the point of pressing the reset button on Widy, which will reset OpenWrt to its default factory settings.
Start by setting the password for the web interface, and setting the hostname.
Start by setting up the wifi.
Wifi
Delete the existing wifi client or access point, and create a new one.
The wireless interface configuration should let you set the name of the network near the bottom (ESSID) and password (Wireless Security tab).
For the "network" to connect to, create a new network, and call it "wifinet" or something similar. This is the network that anyone connecting to the Widy wifi network will be joining.
Next, set up the lan and wireless interfaces.
Interfaces
When you first start out, there will likely only be a br-lan device. You will need to create a wireless interface and modify the lan interface.
Wireless interface
Create a wireless interface "wifinet" that will represent the interface used to create/connect to clients on the wifi network.
This should follow the configuration:
- Protocol: static address
- IPv4 address: 192.168.125.1
- Netmask: 255.255.255.0
- everything else blank
Under DHCP server, make sure that you enable a DHCP server. No other configuration is necessary.
End result will look like this:
LAN interface
Modify the LAN interface so that it acts as a client rather than a server. The ethernet cable will be plugged into an internet-providing device (such as another router), and will be assigned an IP accordingly, so tell the LAN interface to act as a DHCP client.
Firewall
Set up the zones of the firewall as follows:
- you should have a lan interface corresponding to the ethernet adapter
- you should have a wan interface corresponding to the wireless card
Now set a firewall rule that will allow traffic to pass between these devices:
- Go to Network > Firewall > Settings
- Zones > ADd
- Name: lan2wan
- Input: accept
- Output: accept
- Forward: accept
- Masquerading: X
- Covered networks: lan X, wan X
For Inter-Zone Forwarding:
- Allow forward to destination zones: lan X, wan X
- Allow forward from source zones: lan X, wan X
Final result should look like this:
Flags
Widy running OpenWRT on a router to make it into a wearable wireless ear
The Widy Device: Widy installation: Widy/Installing · Widy/Redux Widy Wireless Internet Gateway: Widy/Wireless Gateway Widy Ethernet Internet Gateway: Widy/Ethernet Gateway Widy post-installation: Widy/Post-Install Widy configuration: Widy/Configuration
Using tools on the Widy: Widy/Toolbox Using tcpdump on Widy: Widy/Tcpdump Using aircrack on Widy: Widy/Aircrack Python/Scapy on Widy: Widy/Scapy
Scripting the slider button on the Widy: Widy/Configuration#Slider Button Configuration Using widy as a wireless access point: Widy/Access_Point Debugging some SSH problems: Widy/Access_Point/SSH Bridging widy wireless and ethernet connections: Widy/Bridging Widy startup services: Widy/Startup Services Create a hard-wired serial/TTL connection: Widy/Serial
|