Configuring DD-WRT firmware

Purpose of this document

  • This document should be used in conjunction with DD-WRT user guide for configuring your DD-WRT gateways in WiFiLAN. Please refer to WiFiLAN administrator guide and DD-WRT user guide for detail information.
  • It is assumed that the user has basic knowledge of networking including configuring subnet mask, RADIUS setting, default gateway and DNS configuration.
  • In order to configure DD-WRT you will need a static IP address, Subnet mask, default gateway and DNS information given to you by your Internet Service Provider. Please keep this information handy while setting up your gateway.
  • Configuring WiFiLan you will need the WAN public IP address, AP MAC address, RADIUS secret, serial number and public IP address of your DD-WRT gateway.
  • You need an active WiFiLan account. Please contact Wifi-soft sales to create your WiFiLan account.

 

 

WiFiLAN Setup

Add Hotspot:

  1. Open a web browser and type http://w1.wifi-soft.net/wifilan/ and press Enter. Welcome screen of WiFiLan appears.
  2. Click the Hotspot link under Authentication section.
  3. Click the Add New Hotspot tab. The New Hotspot page appears.

Fields and Buttons

Description

Hotspot Plan

Select the plan for the hotspot based on number of concurrent users.

Hotspot Name

Enter the name of the hotspot in the Hotspot Name field.

Address

Enter the address of the location in the Address field.

City

Enter the name of the city of the location in the City field.

State

Select the name of the state from the State drop down list.

Zip Code

Enter the zip code of the location in the Zip Code field.

Latitude

Enter the Latitude of the location in the Latitude field.

Longitude

Enter the Longitude of the location in the Longitude field.

Type

Select the type of location from the Type drop down menu.

Is Paid

Click Is Paid check box if the location is charged.

Auto MAC Register

Select Auto MAC Register check box to enable the auto login feature in WiFiLan.

Submit

Click Submit button to save the changes.


Then, enter the details of the gateway

Fields & Buttons

Description

Device Type

Select DD-WRT from the Device Type drop down menu.

Public IP Address

Enter Public IP Address of the gateway in the IP Address field.

Secret

Enter the RADIUS secret configured in the gateway in the Secret field.

NAS ID

Enter an Unique NAS Identifier for the device in the NAS ID field.

MAC Address

Enter the MAC address of the WAN port in the MAC Address field.

Description

Enter a short description for the device

Once the hotspot is added, WiFiLAN will be ready to start accepting AAA requests from the gateway/controller. When the hotspot is added, WiFiLAN will automatically add a user group for that hotspot. The space in the hotspot name is replaced with underscore for the user group name.

Now you will need to design a captive portal for your hotspot and generate a URL that can be configured in the gateway/controller's settings.

Please refer to the captive portal design guide for steps to design your custom captive portal.

 

DD-WRT Setup

It is assumed that you have properly connected your DD-WRT gateway with broadband connection that has a static public IP address. Your DD-WRT gateway admin interface is accessible either via LAN interface or via public WAN interface.

To setup DD-WRT

  1. Open web browser, and enter DD-WRT web address in the address bar, and press Enter.
  2. Enter Username, and Password.
  3. Click Login. DD-WRT welcome appears.

Click Basic Setup tab under Setup tab (top left corner). The Basic Setup page appears.

Fields & Buttons

Description

Internet Setup

Internet Connection Type

Connection Type

Select the type of internet connection from the Connection Type drop down menu.

STP

Select Enable radio button for STP.

Optional Settings (required by some ISPs)

Router Name

Enter router name in the Router Name field.

Host Name

Enter host name in the Host Name field.

Domain Name

Enter domain name in the Domain Name field.

MTU

Select the MTU from the drop down menu.

Network Setup

Router IP

Local IP Address

Enter Local IP address in the Local IP Address field.

Subnet Mask

Enter Subnet Mask address in the Subnet Mask field.

Gateway

Enter the gateway IP address in the Gateway field.

Local DNS

Enter the local DNS address in the Local DNS field.

Network Address Server Settings (DHCP)

DHCP Type

Select DHCP Server from the DHCP Type drop down menu.

DHCP Server

Select Disable radio button for DHCP Server.

Start IP Address

Enter the start IP address in the Start IP Address field.

Save

Click Save to save the changes.

Apply Settings

Click Apply Settings to apply the settings you configured.

Hotspot Setup

Click Hotspot tab under Administration tab. You need to enable Chillispot on this page. Chillispot is a software program that redirects the unauthenticated users to the login page. This program should be running on the router for the login page to work correctly.

Configure Chillispot with the RADIUS server settings

Fields & Buttons

Description

Chillispot

Chillispot

Select Enable radio button for Chillispot.

Separate Wifi from the LAN Bridge

Select Enable radio button for Separate Wifi from the LAN Bridge. If you need to separate the LAN portion of the router from WLAN, select Enable radio button for Separate Wifi from the LAN bridge.

Primary RADIUS Server IP/ DNS

Enter the primary RADIUS server IP address 166.78.136.12 in the Primary RADIUS Server IP/ DNS field.

Backup RADIUS Server IP/ DNS

Enter the secondary RADIUS server IP address 74.208.78.152 in the Backup RADIUS Server IP/ DNS field.

DNS IP

Enter DNS IP address of ISP’s DNS server in the DNS IP field.

Redirect URL

Enter the URL of the login page in the Redirect URL field. Contact Wifi-soft to design custom portal page designs for your hotspots.

Shared Key

Enter the shared key in the Shared Key field. Shared key is the secret key between the Radius server and the router. It should match the one configured in the router. Shared secret should match the secret in WiFiLan.

DHCP Interface

If you want to enable login page redirection for WLAN (wireless) only, then select WLAN from the drop-down list for DHCP Interface menu.

RADIUS NAS ID

Enter the NAS Id for the router in the RADIUS NAS ID field. NAS Id is the friendly name used to identify the router.

UAM Secret

Leave the UAM Secret field blank.

UAM Any DNS

Enter 0 in the UAM Any DNS field.

UAM Allowed

Enter www.wifi-soft.net,www.wifi-soft.com,74.208.78.152, 166.78.136.12 (values separated by comma)

MACauth

Select Disable radio button for MACauth.

Additional Chillispot Options

Leave Additional Chillispot Options field blank.

HTTP Redirect

HTTP Redirect

Select Enable radio button for HTTP Redirect.

HTTP Destination IP

Keep HTTP Destination IP address to default.

HTTP Destination port

Enter 3128 in HTTP Destination Port field.

HTTP Source Network

Keep HTTP Source Network to default.

Save

Click Save to save the changes made.

If chillispot is configured correctly, you will get an IP address in subnet: 192.168.182.X when you connect to WLAN.

 

Troubleshoot DD-WRT

If you enable SSH (secure shell) access to DD-WRT, you will be able to login to the firmware installed on the router. The username and password is same as the one for your admin page. Please make sure that you connect to the router using the wired port.

Please execute ps command to determine whether chillispot is working correctly. . The login page will only work if “chilli” process is running in the router and chilli.conf file is created in the /etc directory. If the ‘chilli’ process is not running, then you need to verify your chillispot configuration once again.

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.