Thanks everyone for your inputs! Here is what I ended up doing, please let me know if any of you notice anything off or out of the ordinary:
Please let me know if you guys notice anything that is just plain wrong or out of the ordinary:
Got a WRT54GL V1.1 and reset it to its default settings (30-30-30). Following are the steps I took to get mine going with DD-WRT.
This WRT54GL has 5 ports on the rear once called Internet and four others numbered 1, 2, 3, & 4. Connect the Internet Port to a cable that is connected to your existing LAN, and connect a cable from your Desktop/Laptop to port 1 of the WRT54GL. Power everything up and let the Desktop/Laptop get its IP Address from the WRT54GL.
Web Browse to 192.168.1.1 from the Desktop/Laptop.
You should be prompted to set your username and password - do so now.
Log into the router.
Click Setup TAB
Wan Connection Type
Change to Static IP (Set this to an available Address on your LAN)
192.168.2.56
255.255.255.0
192.168.2.253
208.67.222.222
208.67.220.220
STP Disable
Click Save then Apply
Optional Settings
Router Name: openWIFI
Host Name: openWIFI
Domain Name: “your domain name”
rest default
Click Save then Apply
Network Setup
Local Address: 10.0.0.1 (this subnet should be different than yours)
Subnet Mask: 255.255.255.0
Gateway: 0.0.0.0
Local DNS: 0.0.0.0
Click Save then Apply
Unplug your computer from the Router (network cable) and wait for a few seconds, then plug it back in. This will allow for your computer to change to the subnet you just configured above so you can continue with the setup.
Open your Web Browser back up and browse to the address you just set, for this document it would be 10.0.0.1.
Log back in.
SetUp TAB
Network Address Server Settings DHCP
DHCP Type: DHCP Server
DHCP Server: Enable
Start: 10.0.0.100
Max: 20 (I keep this low as I can)
Rest Defaults
Click Save then Apply
WireLess TAB
Wireless SSID: openWIFI
rest Default
Click Save then Apply
Advanced Settings (Under Wireless TAB)
AP Isolation: Enable
rest default
Click Save then Apply
Services TAB
SSHd Enable
rest Default
Click Save then Apply
Administration TAB
Management
Enable SSH Management
rest Default
Click Save then Apply
Click Reboot Router
Right now, you should have an operational openWIFI access point, but it is NOT secure by any means. Anyone with any networking sense could get into your private LAN as well as the Internet. So we need to lock it down some.
Log back into the Web Interface
Administration TAB
Commands
Place the following in the commands window (this is the meat and potato):
iptables -I FORWARD -d 192.168.2.0/24 -j DROP
iptables -t nat -A PREROUTING -i br0 -p udp --dport 53 -j DNAT --to $(nvram get lan_ipaddr)
iptables -t nat -A PREROUTING -i br0 -p tcp --dport 53 -j DNAT --to $(nvram get lan_ipaddr)
iptables -I FORWARD -p tcp -s 10.0.0.0/24 -m connlimit --connlimit-above 50 -j DROP
iptables -I FORWARD -p ! tcp -s 10.0.0.0/24 -m connlimit --connlimit-above 25 -j DROP
What these do (or so I read from the awesome fellows at http://cavewall.jaguardesignstudio.com) where I found these commands are as follows:
Line 1 - Blocks access from the router to the private Subnet
Line 2 & 3 - Blocks the users on the openWIFI from modifying the DNS Settings
Line 4 & 5 - Prevent the users on openWIFI from hogging the bandwidth.
Click Save Firewall
Administration TAB
Click Reboot Router
Should be pretty locked down and ready to deploy, but I also like to disable the web Interface from the openWIFI side. This will also test out the ssh setup.
Close the web browser and if your on Windows get putty to ssh to the ip address of the router. (Since you should still be connected with the cable, you're still on the openWIFI side of the router - so with either putty or console - execute the following commands):
ssh [email protected]
Log in should give you a prompt
root@openWIFI:~# nvram set httpd_enable=0
root@openWIFI:~# nvram set http_enable=0
root@openWIFI:~# nvram commit
root@openWIFI:~# reboot
If you need to turn the web interface back on, just ssh to it again and set everything to 1 and reboot again.
And that should be it. We should now have a simple WiFi Hotspot in the facility that does not allow access to our private LAN, but will use the existing established LAN.