Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-08-2002, 12:22 PM   #1
LQ Newbie
Registered: Feb 2002
Posts: 1

Rep: Reputation: 0
how do i use my linux machine to be a gateway for a windows machine?

hi guys, i'm completely new to this. i'm running mandrake 8.1 on an old system i want to experiment with. and i am running windows xp (don't curse me) on this machine. so what is the procedure to set up my linux as a gateway?

basically my idea is to have a net connection on my linux machine as well as my windows machine, and my windows machine to have full internet functionality (games, morpheus etc). basically a direct port map (i just dunno how to do it)

is there any thing i need to set up on my windows machine as well?

now my linux machine is at the internet and network config screen (it's a brand new install, i just left the system there at that page of the wizard) so what do i do?
Old 02-09-2002, 01:56 AM   #2
Registered: Dec 2001
Location: Orange County, CA
Distribution: RedHat 7.2, 7.3, 8.0
Posts: 66

Rep: Reputation: 15
I don't use Mandrake, so I can't tell you the exact answers. Conceptually though, here is what you need to do:

- Put 2 NIC's in the Linux box
- 1 NIC should be configured to connect to your ISP (external)
- 1 NIC should be configured with a private address (internal)
(192.168.x.x, 172.16.x.x, or 10.x.x.x)
- Enable IP Masquerading and NAT (search for HOWTO's, check
- set the Default Gateway on the Windows machine to the internal interface on the Linux box

Another variation would be to setup an internal DHCP server so you don't have to manually configure any machines you plug in to your internal network.

That should get you up and running if you can figure it all out!

Old 02-09-2002, 05:29 AM   #3
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
hopefully i won't regret continually recommending this program at some point in the future... but i suggest you get firestarter to sort out all the IP masq gunk for you, and also to give you a nice firewall while you're at it. just search google for it. That is IF you don't want to set your iptables by hand.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sharing internet from a windows 98 machine to a Red Hat Linux machine ritwiksolutions Linux - Newbie 7 03-14-2006 11:20 AM
ssh connection from a Windows machine to a Linux machine pistachio Linux - Networking 1 08-30-2005 11:45 AM
how to access internet from a linux machine via a linux machine as gateway b0nd Linux - Newbie 5 03-21-2005 12:59 PM
copy from windows machine to a linux machine s_deepblue Linux - Networking 3 03-12-2005 02:43 PM
using windows machine as gateway Uberfish Linux - Networking 8 08-12-2001 08:38 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration