[RndTbl] Routing questions

Mike Pfaiffer high.res.mike at gmail.com
Tue Jun 16 18:46:30 CDT 2009

	The set-up to the question is I picked up a decently modern wireless 
router to play with. I allow no connection to the internet (nothing in 
the WAN port). I have a couple of computers I can connect to the wired 
ports of the router (assign static IPs within the subnet but outside the 
DHCP range). These machines (both *NIX boxes) will provide services such 
as a web server and a mud/game server. The router will allow open access 
to anyone who wants to connect (I want to provide my own content for 
experimentation). Since I have physical control of the hardware I'm not 
too worried about security.

	Initially I'd like to be able to redirect all http traffic not bound 
for my web server to my web server. For example someone trying to get to 
Google will get my info page instead. But if someone were trying to 
access a different page on the same machine would still be able to connect.

	I've done the RTFM thing and got confused. The manual seems to dance 
around the issue but doesn't seem to say anything which looks to be 
appropriate. The firewall is used mainly to filter incoming (from the 
WAN port) traffic. IP filters control the outbound (to the WAN port) 
filtering. The routing page talks about routing requests to a specific 
IP outside the LAN side. Virtual servers route requests from the WAN 
side to a specific LAN address. The port forwarding section looked more 
like an extension to the firewall page.

	Here is what I'd like to do graphically.

Rule 1:
LAN requests non-192.168.X.Y web page --> Router says "You must mean 
192.168.X.Y" --> Router sends traffic to 192.168.X.Y/index.html
Rule 2:
LAN requests 192.168.X.Y/whatever.html --> Router passes along the 
request to 192.168.X.Y web server

	The question is how can I do this? I know I've missed something, but 
the manual didn't seem to help. I'll admit to not checking Google, but 
I'm not sure what search terms to use.

	This ties in with the wireless questions I was asking a couple of 
months ago. After I get this working I'll be looking at authentication 
for other services and extending the range of coverage.


More information about the Roundtable mailing list