Sean Finney on Tue, 24 Sep 2002 07:40:06 +0200 |
hi dan, yeah, that's definitely do-able, and i've done it myself a while back. basically, you need to set up some iptables rules that forward port 80 on your firewall box to port 80 on the webserver inside your interior network. i've never had to do this in linux (my firewall runs with netbsd and ipf), but it should be just a single rule or two. for reference, i'd suggest man iptables, and /usr/share/doc/iptables, or wherever your distribution keeps docs on how to do stuff with iptables. chances are that they even already have an example that does exactly what you need --sean On Mon, Sep 23, 2002 at 11:16:29PM -0400, Dan Roberts wrote: > ladies and gentlemen, > > i have a question for all of you on setting up a webserver.. i didnt feel > that it was basic and couldnt figure out the answer on my own, so i > therefore turned to you all for your respected opinions on the matter. let > me summarize my hw situation to give you a background. > > i have a static IP dsl connection, with a red hat box running as a > firewall/gateway. i have another linux box that i would like to be my > webserver, however it is currently part of my interior private network. > > > that out of the way - is there anyway that i can have my firewall pass an > http request through it to the webserver so that an outsider could access it > as if it were not part of my internal network? if not, is there any way that > i could connect both the boxes to my router so that http requests only go to > the one, and all others go to the current firewall? > > any help on the matter would be much appreciated. > > thanks, > dan roberts > 2L, villanova school of law > fboston@hotmail.com > > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > _________________________________________________________________________ > Philadelphia Linux Users Group -- http://www.phillylinux.org > Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce > General Discussion -- http://lists.netisland.net/mailman/listinfo/plug > Attachment:
pgpJWVyckrDhZ.pgp
|
|