setting up a webserver behind a linux machine

topquark

Junior Member
Sep 10, 2000
1
0
0
i have a static ip
i want to have a pc(1) with linux mandrake and have it as a firewall
then with my linksys switch network them and run a webserver on the other pc(2).
is this possible with ip mascarading ...
willi be able to see teh web site from outside hte network.
thanks
topquark
 

andri

Senior member
Aug 12, 2000
339
0
0
Hm, lets see how I understood your message :)

Easiest solution would be to run the webserver on Linux box. If you really want to run it on the PC behind Linux, you'll have to use a port forwarder - a little program that listens on port 80 of your Linux box and acts as a proxy forwarding connections to port 80 of the real server. There are many ways of doing this; the Right Way(tm) would be to use Linux kernel, but the easiest is to download and compile proute.c program. With proute, setting up that forwarding is pretty straightforward, just READ THE FINE MANUAL!