Click to See Complete Forum and Search --> : port forwarding and dhcp


chaytah
12-22-2000, 03:41 PM
OK... I just sifted through abunch of articles on ipchains and firewalls and am the dumber for it. Every article I open up tells me to modify some other file.

All I want to do is one simple thing and I would appeciate it if someone just lets me know what it is instead of forwarding me to some URL, or telling me to look up <blah>.

I have 2 computers. One is a Win2K box, and the other is running Mandrake 7.2 with a dual boot with win2k.

I have internet connection sharing going on my linux box through my DSL. The other computer (win2k) on my network gets it IP via dhcp, both while I'm in windows or Linux. So it's 92.168.0.x, where x is between 2-255.
If I try to give a static IP (eg: 192.168.0.2) to the machine and set 192.168.0.1 as the gateway, it's connection stops working wether I am in in Linux or windows.

All I want to be able to do for starters, is to forward my port 81 to the other computer's port 80, so another webserver can be setup on that computer.

After that is done, I want to know WHY I can't give this computer that static IP address (192.168.0.2) either when I'm in wondows or in linux. Does internet connections sharing under both OSs require that the other hosts get their IP via DHCP?

Help. Prefereably without pointing me to some other site. It's been 4 days using linux, and I really don't want to quit because of some simple thing getting on my nerves.

Thanks,

[This message has been edited by chaytah (edited 22 December 2000).]

Nailz
12-22-2000, 04:31 PM
Yes. When using Win2K's ICS (Internet Connection Sharing) you have to setup any (and all) clients as DHCP. I had the same problem on my home network.

What I wound up doing was setting up my Linux box on the live network connection (in my case a cable modem). ETH0 receives it's IP address via DHCP. ETH1 is setup w/ a static IP of 192.168.0.1 and goes out to my 5 port hub. All other PC's (regardless of OS) and my printer have private network addresses (192.168.0.x) and connect to my hub. All PC's point back to my linux box as the gateway (192.168.0.1)

On the linux box I used an app called PMFIREWALL (search for it on Freshmeat) which is essentially a script to configure IPCHAINS and such to forward info. Works GREAT.

------------------
$> cd /pub
$> more beer

chaytah
12-22-2000, 04:47 PM
Alright... I'll get that program you're talking about.

But before I start messing up what I have working right now, would you know why ICS stops working if I set the win2K machine up with a static IP (192.168.0.2). What do I have to change on my Linux box to get that working? Then I'll go ahead an install that program you're talking about.

Thanks again,