LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-08-2002, 11:22 AM   #1
Sanjuro
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, 12:56 AM   #2
ryandelany
Member
 
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 http://www.linuxquestion.org)
- 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!

Ryan
 
Old 02-09-2002, 04:29 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
  


Reply


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 10:20 AM
ssh connection from a Windows machine to a Linux machine pistachio Linux - Networking 1 08-30-2005 10:45 AM
how to access internet from a linux machine via a linux machine as gateway b0nd Linux - Newbie 5 03-21-2005 11:59 AM
copy from windows machine to a linux machine s_deepblue Linux - Networking 3 03-12-2005 01:43 PM
using windows machine as gateway Uberfish Linux - Networking 8 08-12-2001 07:38 AM


All times are GMT -5. The time now is 05:39 PM.

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