ip

I have three computers on my lan.
Two running Win98 and one linux machine.
I got a cable modem and want to share the connection between all the computers.
How do I set up Ip-Masquerade on the linux machine?
I run redhat 6.0 2.2.5.
The ip adresses are 172.16.1.32, 31, 22.
My cablemodem connects through a gateway to the internet (172.16.2.254).
I'm new to linux, so I would appreciate the instructions to be stepwise.
PsychoFoxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RobWMartinCommented:
Your better off just reading the HOWTO:

http://www.linuxdoc.org/HOWTO/IP-Masquerade-HOWTO.html

Rob
0
maxchowCommented:
1) Go to Linuxconf
2) Select firewall
3) Select forwarding
4) Select IP Masquerade
5) From 172.16.1.0, mask 255.255.255.224 Interface Any
6) To 0.0.0.0, Interface Any

Make sure you setup the network cards correctly and can ping outside from the Linux before you go for the steps

If you cannot found the Firewall option under the Server configuration section, add the module "Firewall" under the linuxconf modules.

The internal network address can be 175.16.1.1-255

Regards

Max

0
PsychoFoxAuthor Commented:
hmm..I can't find the firewall option in linuxconf. Any  ideas?
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

maxchowCommented:
You should add the "firewall" module in linuxconf under:

Control -> Control File ans System -> Configure Linuxconf Modules

Then next time you will see it under:
Config -> networking -> server tasks

Regards

Max
0
maxchowCommented:
You should add the "firewall" module in linuxconf under:

Control -> Control File ans System -> Configure Linuxconf Modules

Then next time you will see it under:
Config -> networking -> server tasks

Regards

Max
0
PsychoFoxAuthor Commented:
The linuxconf tool says that it does not support firewall options for kernels above 2.1. What should i do?
0
PsychoFoxAuthor Commented:
The linuxconf firewall-tool doesn't work for kernels above 2.1...
0
NickCommented:
Are you running KDE?  If so, leave the painful bits I went through.  www.tucows have a freeware Linux page.  Try Kfirewall, it works a treat (and says that it will work without KDE installed)  Uses IPChains etc.  There are a few other criteria that needs meeting, but it's nice and easy.

Nick
0
EatEmAndSmileCommented:
All you gotta do is to put a /etc/rc.d/rc.firewall file containing the following:

 /sbin/ipfwadm -F -f
 /sbin/ipfwadm -F -p reject
 /sbin/ipfwadm -F -a accept -S 192.168.1.0/255.255.255.0 -b -m

 Then add a call to this file from inside your /etc/rc.d/rc.local file, or any other you'd please. Don't forget to chmod +x /etc/rc.d/rc.firewall

 Note that the sample above is for a 192.168.1.0 IP address network. You can adapt it for your IP addresses, but I'd really recommend you to use these standard local IP addresses. Anyway, if you've got real IP addresses you wouldn't need masquerading.

 Good luck!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
EatEmAndSmileCommented:
Sorry, it was intended to be a comment, not an answer...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.