Link to home
Start Free TrialLog in
Avatar of scrutchfield
scrutchfield

asked on

IP Masquerading

I am using Caldera Open Linux Base which uses the 2.0.29 kernel and I have compiled the needed stuff into the kernel. I have a direct ethernet connection to my ISP. I am far from being a Linux guru and it would probably be a stretch to even call me a novice with linux but I do learn quick so bear with me. Ambrose Au's mini how to isn't quite specific enough for me to completely understand although I have accomplished what little I have by using it. Here's the problem:

1. If I type: ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0 and give a client machine the address 192.168.1.3 referring to 206.155.118.65 (linux box's true inet ip) then neither machine can see each other.

2. If I ifconfig eth0 to be 192.168.1.1 and change my client machine to refer to that address as its router then the machines see each other but neither can reach the internet.

3. I guess my question is how do I get eth0 to act as both 192.168.1.1 so that my internal net can see it and also act as 206.155.118.67 so that it can still reach the internet to forward the masq'ed traffic?

This may take a little interaction by e-mail if the responder wouldn't mind. Thanks
ASKER CERTIFIED SOLUTION
Avatar of sauron
sauron

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of scrutchfield
scrutchfield

ASKER

You were exactly right, installing a second ethernet card solved my problem.  From what I gather from you and some others, I could use just one card but I open a whole new can of worms because I would then have to configure IP aliasing.  Had I known in the beginning I needed 2 network cards to set this up, I could have had the whole masquerading setup done in 2 or 3 hours.  Oh well, we learn from our mistakes.  Thanks for your help.