Use a single DD-WRT to create a wired and wireless private network and wireless public network (wifi hotspot).



Similar documents
DSL-G604T Install Guides

Configuring Routers and Their Settings

NETVIGATOR Wireless Modem Setup Guide. (TG789Pvn)

This section will focus on basic operation of the interface including pan/tilt, video, audio, etc.

N300 WiFi Range Extender WN2000RPT User Manual

Quick Start Guide. WRV210 Wireless-G VPN Router with RangeBooster. Cisco Small Business

Chapter 4 Management. Viewing the Activity Log

How to configure your Thomson SpeedTouch 780WL for ADSL2+

1:1 NAT in ZeroShell. Requirements. Overview. Network Setup

How To Use 1Bay 1Bay From Awn.Net On A Pc Or Mac Or Ipad (For Pc Or Ipa) With A Network Box (For Mac) With An Ipad Or Ipod (For Ipad) With The

Chapter 1 Configuring Internet Connectivity

D-Link DAP-1360 Repeater Mode Configuration

Chapter 6 Using Network Monitoring Tools

MN-700 Base Station Configuration Guide

Chapter 3 Management. Remote Management

SOHO 6 Wireless Installation Procedure Windows 95/98/ME with Internet Explorer 5.x & 6.0

BASIC INSTRUCTIONS TO CONFIGURE ZYXEL P8701T CPE USING THE WEB INTERFACE

Hands-on MESH Network Exercise Workbook

Half Bridge mode }These options are all found under Misc Configuration

PePWave Surf Series PePWave Surf Indoor Series: Surf 200, AP 200, AP 400

OSBRiDGE 5XLi. Configuration Manual. Firmware 3.10R

NBG2105. User s Guide. Quick Start Guide. Wireless Mini Travel Router. Default Login Details. Version 1.00 Edition 1, 11/2012

WiFi-SB-L3 300M WiFi Router WiFi Bridge WiFi Repeater. WiFi Router WiFi Repeater WiFi Bridge WiFi-SB-L3 Quick Setting Guide

Linksys Wireless G WRT54G

User guide for NANOSTATION 2

Chapter 6 Using Network Monitoring Tools

DV230 Web Based Configuration Troubleshooting Guide

Chapter 1 Configuring Basic Connectivity

Steps for Basic Configuration

Preparing the Computers for TCP/IP Networking

How To Check If Your Router Is Working Properly On A Nr854T Router (Wnr854) On A Pc Or Mac) On Your Computer Or Ipad (Netbook) On An Ipad Or Ipa (Networking

STATIC IP SET UP GUIDE

Configuring Static IP for your Pace Devices

CHANGE NETWORK SETTINGS Technicolor TG582n

Movie Cube. User s Guide to Wireless Function

BEGINNER S SETUP GUIDE for NANOSTATION 2 and other Ubiquity devices using AirOS firmware

Powerwifi USB Router in combination with the Powerwifi USB outdoor antenna

P-660HN n Wireless ADSL2+ 4-port Gateway DEFAULT LOGIN DETAILS. Firmware Version 1.10 Edition 1, 9/2010. IP Address:

Quick Installation Guide

Digi Connect Wan 3G Application Guide Update the firmware, backup and restore the configuration of a Digi Connect Wan 3G using a USB flash drive.

StarMOBILE Network Configuration Guide. A guide to configuring your StarMOBILE system for networking

GregSowell.com. Mikrotik Basics

Quick Installation Guide

Quick Installation Guide

1 Basic Configuration of Cisco 2600 Router. Basic Configuration Cisco 2600 Router

Quick Installation Guide

HotSpotEngine Getting Started Guide

UBIQUITI BRIDGE CONFIGURATION PROCEDURE (PowerStation & NanoStation Units ONLY)

Quick Installation Guide DAP Wireless N 300 Access Point & Router

SATO Network Interface Card Configuration Instructions

Static Business Class HSI Basic Installation NETGEAR 7550

Deployment Guide: Transparent Mode

Nighthawk AC1900 WiF Range Extender

WiFi Anywhere. Multi Carrier 3G/4G WiFi Router. IntraTec Solutions Ltd

WISP 101. The DO s and DON T s of becoming a Wireless ISP

HW550-3G. 3G Mobile Broadband plus 4-Port Wireless-N Router

Linksys E2000 Advanced Wireless-N Router. User Guide

Configuring a BEC 7800TN Wireless ADSL Modem

ASUS WL-5XX Series Wireless Router Internet Configuration. User s Guide

How To Check If Your Router Is Working Properly

Broadband Phone Gateway BPG510 Technical Users Guide

CYAN SECURE WEB APPLIANCE. User interface manual

How To Set Up A Computer With A Network Connection On A Cdrom 2.5 (For A Pc) Or Ipad (For Mac) On A Pc Or Mac Or Ipa (For Pc) On An Ipad Or Ipro (

Asterisk SIP Trunk Settings - Vestalink

User s Manual CONTENT. Nano NAS Server for USB storages. 1. Product Information Product Specifications System requirements..

WRE6505. User s Guide. Quick Start Guide. Wireless AC750 Range Extender. Default Login Details. Version 1.00 Edition 1,

IEEE a/ac/n/b/g Enterprise Access Points ECW5320 ECWO5320. Management Guide. Software Release v

Extending the range of a wireless network by using mesh topology

JMC Next Generation Web-based Server Install and Setup

11g WiFi ADSL Router. WL-AM604g ! User Manual

University of Hawaii at Manoa Professor: Kazuo Sugihara

Initial Access and Basic IPv4 Internet Configuration

DSL-2600U. User Manual V 1.0

Wireless Router Quick Start Guide Rev. 1.0a Model: WR300NQ

Quick Installation Guide DSL-2640U. Wireless N 150 ADSL2+ Modem Router

FI8910W Quick Installation Guide. Indoor MJPEG Pan/Tilt Wireless IP Camera

How to convert a wireless router to be a wireless. access point

NBG6815. User s Guide. AC2200 MU-MIMO Dual-Band Wireless Gigabit Router. Quick Start Guide. Default Login Details. Version 1.00 Edition 1, 02/2016

AC750 WiF Range Extender

BROADBAND INTERNET ROUTER USER S MANUAL. Version Page 1 of 13 -

WLAN Outdoor CPE For 2.4G. Quick Installation Guide

Installing Operating Systems

Wireless-N Mini Router Quick Installation Guide

System Area Manager. Remote Management

Configuring DrayTek Equipment With A Sky Network.

Networking Guide Redwood Manager 3.0 August 2013

Chapter 1 Installing the Gateway

User Manual. Page 2 of 38

Quick Installation Guide DIR-620. Multifunction Wireless Router Supporting GSM, CDMA, WiMAX with Built-in 4-port Switch

Quick Installation Guide

Best Practices: Pass-Through w/bypass (Bridge Mode)

EZblue BusinessServer The All - In - One Server For Your Home And Business

Quick Installation Guide

NAS SERVER FOR EXTERNAL HDD

AP6511 First Time Configuration Procedure

UAG Series. Application Note. Unified Access Gateway. Version 4.00 Edition 1, 04/2014. Copyright 2014 ZyXEL Communications Corporation

Broadband Router ESG-103. User s Guide

Configuration and Access of FTP Server

User s Manual. Grand Wi-Fi Camera Pro/IP Camera Pro. The information in this document is subject to change without notice.

Configuring Settings on the Cisco Unified Wireless IP Phone 7925G

Transcription:

DD-WRT for Hotspots From Personal This is a synopsis of a setup that has worked well for a small coffee shop. I would imagine this is a common way to want to set up a router to be used as a public wifi hotspot. Most of this information is spread out in other guides, but there were some holes. These notes were made during setup and contain elements specifically related to the hardware used, but will hopefully aid others. Contents 1 Router and Firmware 2 Goal 3 Changes 4 Flash Drive notes 4.1 References 5 NoCatSplash 5.1 References 6 Command Line Router and Firmware Model: WRTSL54G DD-WRT Version: v24 presp2 (Build13064) Goal Use a single DD-WRT to create a wired and wireless private network and wireless public network (wifi hotspot). Private and public network cannot communicate. Public network clients do not have access to other public network clients. Public network has splash page with terms of agreement button. Splash page hosted from router. 192.168.1.1 is used for the public network and something slighlty more obscure, 192.168.10.1 is used for the private. Changes

List of changes made in web GUI from default. These instructions are not specific to the WRTSL54G, and could very from router to router depending on hardware capability. Each table represents a Top Tab Bottom Tab while looking at the WebGUI. Only changes are documented (with one noted exception) and are displayed here in the same order on their respective page. Router Name Setup Basic Setup Optional Settings <whatever> Router IP Local IP Address 192.168.10.1 Network Address Server Settings (DHCP) Static DNS 1 Static DNS 2 Static DNS 3 Time Zone Server IP/Name 8.8.4.4 (Google's DNS) 208.67.222.222 (OpenDNS's DNS) 156.154.71.1 (DNS Advantage DNS) Time Settings UTC-6:00 time.nist.gov Make note the connection to the WebGUI through the web browser will be reset if the Local IP Address is changed. Feel free to replace Static DNS 3 with an ISP provided DNS. Wireless setup has to be done before going back to Setup Networking. This step creates a virtual wireless interface that will be separated from the wired and wireless LAN in subsequent steps. Wireless Basic Settings Physical Interface wl0 Wireless Network Name (SSID) <name of private wireless network> Wireless SSID Broadcast Disable Virtual Interfaces Wireless Network Name (SSID) <name of public hotspot> AP Isolation Enable This sets up encryption on the unbroadcasted SSID. Changing the WPA Shared Key and sharing it with few is recommended. Wireless Wireless Security Physical Interface wl0

Security Mode WPA2 Personal WPA Algorithms TKIP+AES WPA Shared Key <whatever> Wireless Advanced Settings Advanced Settings Bluetooth Coexistence Mode Enable Wireless GUI Access Disable Feel free to turn on Radio Time Restrictions that match the businesses hours of operation. Back to the Setup tab to separate the virtual wireless network from everything else. Reference: http://www.dd-wrt.com/wiki/index.php/separate_lan_and_wlan Setup Networking Create Bridge Bridge 0 br1 click Save at bottom of page to reveal next settings IP Address 192.168.1.1 Subnet Mask 255.255.255.0 click Apply Settings at bottom of page Assign to Bridge Assignment 0 br1 Interface wl0.1 click Apply Settings at bottom of page Multiple DHCP Server DHCP 0 br1 Max 100 So the router can be accessed with Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/). Services Services

Secure Shell SSHd Enable Telnet Telnet Disable This mounts the USB flash drive. The primary reason for the flash drive is to host the html file that make up the splash page for the public wireless network. Core USB Support USB 2.0 Support Services USB USB Support USB Storage Support ext2 / ext3 File System Support Automatic Drive Mount Disk Mount Point /mnt Disk Info should look something like this: --- /dev/discs/disc0/disc Block device, size 496 MiB (520093696 bytes) DOS/MBR partition map Partition 1: 64 MiB (67108864 bytes, 131072 sectors from 2048) Type 0x82 (Linux swap / Solaris) Linux swap, version 2, subversion 1, 4 KiB pages, little-endian Swap size 63.99 MiB (67100672 bytes, 16382 pages of 4 KiB) Partition 2: 431 MiB (451936256 bytes, 882688 sectors from 133120) Type 0x83 (Linux) Ext2 file system UUID E14C9ED5-53B3-4F97-BFBA-350C32AA6AFC (DCE, v4) Volume size 431 MiB (451936256 bytes, 441344 blocks of 1 KiB) Status: Mounted on /mnt Now for the fun stuff. All settings for NoCatSplash are displayed here. There should be more info about nocatspalsh below. Don't fret if Internet connection is lost after these settings are applied, it will come back after the firewall settings are made. WebGUI access will still be available while these changes are being made. Replace example.com with your website's domain. NoCatSplash Services Hotspot NoCatSplash Enable Gateway IP Addr 192.168.1.1

Gateway Name Interface Home Page <whatever> br1 http://example.com/ Homepage Redirection Enable Allowed Web Hosts example.com Document Root /mnt/splashd Splash URL http://example.com/splash.html Exclude Ports 25 MAC White List Login Timeout 14400 Verbosity 2 Route Only Disable Changing the Router Username and Router Password is recommended. Boot Wait should be enabled just in case (can't remember if it is enabled by default). Administration Management Router Password Router Username <whatever> Router Password <whatever> Boot Wait Boot Wait Enable Have you tried turning it off and on again? Older hardware may need to be restarted more often. Administration Keep Alive Schedule Reboot Schedule Reboot Enable At a set Time 03:00 Sunday TThese firewall rules will stop traffic between the two networks. Also there are rules that will force NoCatSplash to only work on br1 without interfering with br0. (For the record, this is new to me, feedback is appreciated) Administration Commands Command Shell Copy and paste the following into the text box.

iptables -I FORWARD -i br1 -o br0 -m state --state NEW -j DROP iptables -I FORWARD -i br0 -o br1 -m state --state NEW -j DROP iptables -A NoCat_NAT -t nat -s 192.168.10.0/24 -j MASQUERADE iptables -A NoCat_Capture -t nat -s 192.168.10.0/24 -j DNAT iptables -A NoCat -s 192.168.10.0/24 -j ACCEPT click Save Firewall Administration Backup click Backup and keep the downloaded file some place safe. Flash Drive notes There are some helpful guides about setting up the flash dirve. In this example the beginning of the flash drive is a 64mb Linux swap partition. No idea if it actually uses the swap partition. References http://www.dd-wrt.com/wiki/index.php/usb_storage#usb_guide_for_v24_and_v24sp1_mega_of_dd-wrt NoCatSplash NoCatSplash is a simple program, but in this case it is complicated by the fact we have two bridges. Current settings have customers go to a simple "I accept" splash page. Upon clicking accept they are routed to http://example.com/ and given unrestricted Internet access for 4 hours. The example page http://example.com/splash.html will have to be hosted from an accessible web server. Even though the splash.html can be copied to the flash drive manually, having it hosted will make changes easier. When the router reboots it will automagically copy the splash.html page from the web server to it's local /mnt/splashd/ folder. The down side is it only copies splash.html, not images or any other files that might be referred to. Coincidentally, because 'example.com' is in the Allowed Web Hosts box, the files splash.html link to might still work if the paths are absolute (meaning no./ or../ shortcuts, but writing out the whole http://example.com). This is something that will have to be tested more thoroughly. The splash.html page can be almost anything you want. It probably won't do PHP because that is a server side script. Any javascript or flash should work. The only requirement is the html form that makes up the Accept button which I'll copy here. <form method="post" id="login" action="http://192.168.1.1:5280/"> <input type="hidden" name="accept_terms" value="yes"> <input type="hidden" name="redirect" value="http://example.com/"> <input type="hidden" name="mode_login"> <input type="submit" value="accept Terms of Use"> </form>

My recommendation is keep the splash page simple and have it redirect to an events page or something frequently updated. References 1. Pink blog that walks through setting up: http://dev.gengar.org/2011/02/nocatsplash/ 2. Forum with firewall iptable commands to make it work with multiple bridges: http://www.ddwrt.com/phpbb2/viewtopic.php?p=417418 Command Line Show all current leases, not the greatest display: cat /tmp/nocat.leases Display network configuration, useful to show what network is what. ifconfig Retrieved from "http://perwebserver/mediawiki/index.php?title=dd-wrt_for_hotspots&oldid=498" Category: Projects This page was last modified on 24 March 2012, at 23:04. This page has been accessed 4 times.