LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2004, 09:53 PM   #1
Julian_Thong
LQ Newbie
 
Registered: Aug 2004
Posts: 23

Rep: Reputation: 15
What must i do in order to be able to share internet connection with RedHat 9?


What must i do in order to be able to share internet connection with RedHat 9?

I have been trying different solutions for a week now, but it still doesn't seem to work. I am planning to start all over again.

I have a linux Redhat 9.0 connected to a xDSL connection (PPPoE) using the interface ppp0. THe Redhat linux has got 3 nics, eth0, eth1, eth2. Eth0 has been used for the PPPoE connection

I want to use the Redhat 9.0 as a gateway for my other two Windows XP systems.

Both Windows XPs are connected to the RedHat directly using cross cables.

One Win XP connected to eth1, the other connected to eth2.

Whats the first thing i have to do ?

THANKS!!!!
 
Old 08-20-2004, 10:27 PM   #2
Julian_Thong
LQ Newbie
 
Registered: Aug 2004
Posts: 23

Original Poster
Rep: Reputation: 15
i found this on the internet. I'll try it first and see if it works.

http://www.start-linux.com/articles/article_70.php
 
Old 08-20-2004, 10:47 PM   #3
psdan
LQ Newbie
 
Registered: Aug 2004
Distribution: Redhat 8.0
Posts: 6

Rep: Reputation: 0
Have a look here, it helped me to get mine working

http://tldp.org/HOWTO/IP-Masquerade-HOWTO/

Cheers
psdan
 
Old 08-20-2004, 10:48 PM   #4
Julian_Thong
LQ Newbie
 
Registered: Aug 2004
Posts: 23

Original Poster
Rep: Reputation: 15
thanks

Ill try that too.
 
Old 08-21-2004, 12:38 AM   #5
Julian_Thong
LQ Newbie
 
Registered: Aug 2004
Posts: 23

Original Poster
Rep: Reputation: 15
How do i add two interfaces into the following firewall script? I have two interfaces that i use to connect to my Windows XPs, eth1, eth2.

Will it still work?

Code:
#Setting the EXTERNAL and INTERNAL interfaces for the network
#
#  Each IP Masquerade network needs to have at least one
#  external and one internal network.  The external network
#  is where the natting will occur and the internal network
#  should preferably be addressed with a RFC1918 private address
#  scheme.
#
#  For this example, "eth0" is external and "eth1" is internal"
#
#  NOTE:  If this doesnt EXACTLY fit your configuration, you must 
#         change the EXTIF or INTIF variables above. For example: 
#
#            If you are a PPPoE or analog modem user:
#
#               EXTIF="ppp0" 
#
EXTIF="eth0"
INTIF="eth1"
echo "  External Interface:  $EXTIF"
echo "  Internal Interface:  $INTIF"
echo "  ---"
Link to the complete script -----> http://tldp.org/HOWTO/IP-Masquerade-...FIREWALL-2.4.X
 
Old 08-21-2004, 01:03 AM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Quote:
Originally posted by Julian_Thong
How do i add two interfaces into the following firewall script? I have two interfaces that i use to connect to my Windows XPs, eth1, eth2.

Will it still work?

Code:
#Setting the EXTERNAL and INTERNAL interfaces for the network
#
#  Each IP Masquerade network needs to have at least one
#  external and one internal network.  The external network
#  is where the natting will occur and the internal network
#  should preferably be addressed with a RFC1918 private address
#  scheme.
#
#  For this example, "eth0" is external and "eth1" is internal"
#
#  NOTE:  If this doesnt EXACTLY fit your configuration, you must 
#         change the EXTIF or INTIF variables above. For example: 
#
#            If you are a PPPoE or analog modem user:
#
#               EXTIF="ppp0" 
#
EXTIF="eth0"
INTIF="eth1"
echo "  External Interface:  $EXTIF"
echo "  Internal Interface:  $INTIF"
echo "  ---"
Link to the complete script -----> http://tldp.org/HOWTO/IP-Masquerade-...FIREWALL-2.4.X
could u pleae specify how do u use 2 interfaces to interact with windows Xp
regards
 
Old 08-21-2004, 01:11 AM   #7
Julian_Thong
LQ Newbie
 
Registered: Aug 2004
Posts: 23

Original Poster
Rep: Reputation: 15
2 Windows XPs, each connected to a seperate nic (eth1 and eth2) using cross cables.

thx

Julian Thong
 
Old 08-21-2004, 01:24 AM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi
u r getting this wrong
the script u r using is describing about 2 interfaces
one interface is the internet (untrusted)
other is local network (trusted)

so here they are dioscusing a case where u have a proxy server in betwwen two networks
which is connected betwen the both networks
so it differnciates between the both networks by naming then as trusted and untrusted
i may happen that since u r using modem to connect to the internet then the modem becomes ur untrusted and the eth0 card becomes ur trusted devioce for ur LAN
 
Old 08-21-2004, 01:42 AM   #9
Julian_Thong
LQ Newbie
 
Registered: Aug 2004
Posts: 23

Original Poster
Rep: Reputation: 15
If only one nic is specified as trusted, does it mean that i can only use that card for LAN and require a switch hub to connect the two Windows XPs to that one nic interface ?

Thanks!

Julian Thong
 
Old 08-21-2004, 01:55 AM   #10
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi
yes
i understand from that , u have 3 machines
one running linux and two on XP
so there is modem on the linuxmachine (untrusted)
and the NIC on it used for the network with the 2 XP machines

also u need switch/hub to connect the 3 machines

regards
gaurav
 
Old 08-21-2004, 02:34 AM   #11
Julian_Thong
LQ Newbie
 
Registered: Aug 2004
Posts: 23

Original Poster
Rep: Reputation: 15
Oh, ok!

I just feel like asking this last question. It is possible to use 2 nics for LAN with that script?

Thank you for your replies!

Julian Thong
 
Old 08-21-2004, 02:58 AM   #12
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

what do u mean by two nics for LAN
this configuration is for ur machine with one untrusted device and one trusted device
it does not matter how many other machines u have other than this on the network

regards
gaurav
 
Old 08-21-2004, 03:05 AM   #13
Julian_Thong
LQ Newbie
 
Registered: Aug 2004
Posts: 23

Original Poster
Rep: Reputation: 15
Oh ok, Thanks for the help .

Im off to buy a hub switch.
 
  


Reply



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
Share Internet Connection sam_casperson Linux - Networking 3 02-03-2005 06:07 PM
Help! Cannot share my Internet connection... Domiriel Linux - Networking 2 11-25-2003 01:27 PM
how to share internet connection digihall7 Linux - Networking 2 09-23-2003 03:42 PM
How do I share the Internet connection? Valeria Linux - Networking 4 07-19-2003 11:28 AM
share internet connection on redhat 7.1 rocael Linux - Networking 3 09-28-2001 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:53 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration