LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   "stand-alone" internet (http://www.linuxquestions.org/questions/linux-networking-3/stand-alone-internet-462972/)

kscott121 07-11-2006 10:01 AM

"stand-alone" internet
 
I am trying to set up a "stand-alone" internet lab environment where my web server will be on the internet side of a router serving up a training website. The clients will only be able to access those web pages, not the "Real" internet. It would best if users were routed to that web page regardless of whatever internet address they entered (except for server management screens). I'm thinking the following:

Requested website Destination page served up
cnn.com myserver/index.html
whatever.com myserver/index.html
myserver:8081 myserver/management.html
cnn.com:8081 myserver/management.html

I'm think maybe appropriate entry(s) in iptables will do this or maybe resolv.conf or is a doctored DNS server the answer?
Is this feasible or is there a better way? Thanks

ramram29 07-11-2006 12:41 PM

You can use iptables to redirect all port 80 to one web page or you can use squid to proxy all requests to one web page. You can use on or the other or you can even use both.


All times are GMT -5. The time now is 11:20 PM.