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

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.

WidyWifiList.png

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

WidyEthernetGatewayWifiSettings.png

Under DHCP server, make sure that you enable a DHCP server. No other configuration is necessary.

WidyEthernetGatewayDHCPSettings.png

End result will look like this:

WidyEthernetGatewayInterfaces.png

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.

WidyEthernetGatewayLanDhcp.png

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:

DropbearFirewallZones.png

Flags