Click to See Complete Forum and Search --> : How do I.....?


linxnoob
03-29-2002, 02:19 AM
Here is my network configuration:

Computer running Redhat 7.2
NIC eth0
modem

Computer running Win XP:
NIC

Both are connected to a hub.

I would like to use my Linux machine to dial out for my Windows machine . I have read many posts on how to do this with a cable modem, but I can't get it to work on my setup. I can dial out and surf the web on my Linux machine so I am almost there, I think. I am having trouble configuring my XP machine to "talk" to my Linux box.

Please help.

J-Tek
03-29-2002, 02:39 AM
1st, Try using something descriptive instead of "How do I?" You'll get more help that way.

2nd, lookup gShield. Im using this on my machine right now. works really well w/ 2 nics. Installation is almost like a questionaire.

Basically you will be using your firewall (iptables) to forward all the traffic from your XP box out to the internet.

Your LinBox will act as a gateway. Your dialin will have some ip recongized by the outside world. however your nic will have a 'private' IP. something like 192.168.0.1

then you will set your XP to use it as the gateway but make sure to use a real DNS server. You should set your Linux and XP boxes up so they can at least ping/share files between each other first, and be able to dial out. then setting up gShield will be a snap.

Hope that helps.

linxnoob
03-29-2002, 03:11 AM
I used neat to configure eth0 to 192.168.0.1 and the subnet mask to 255.255.255.0. I left the gateway address blank since I dont know what it is.

I used 192.168.0.2 and same subnet mask on XP machine. For the gateway I used 192.168.0.1. For DNS, I used 192.168.0.1 too. What should I be using for a computer name and workgroup in XP.

How do I use a real DNS server. Where do I get that IP from?


As you can see I am new at all this. Please be as detailed as you can.

Thanks again.

yard21
03-29-2002, 01:03 PM
Read this for details on NAT (Network Adress Translation):
http://netfilter.samba.org/documentation/HOWTO//NAT-HOWTO.html

everything's explained there how to set up a linux gateway.