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 10-30-2003, 01:36 AM   #1
erycz
LQ Newbie
 
Registered: Oct 2003
Distribution: Red Hat 8.0
Posts: 3

Rep: Reputation: 0
Linux Internet Sharing


I have a few XP boxes and I am also using Red Hat 8.0 in box... I want to setup an internet connection sharing using RH8 as the gateway... What shall i do?
 
Old 10-30-2003, 02:26 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Ckeck is all machines have IP in the same subnet and the IPs are local (192.168.1.x, for example). Then download the masquerading script, for example from here: http://www.tldp.org/HOWTO/IP-Masquer...FIREWALL-2.4.X
You will need to fit it to your needs and modify
Code:
#IPTABLES=/sbin/iptables
IPTABLES=/usr/local/sbin/iptables
to
Code:
IPTABLES=/sbin/iptables
#IPTABLES=/usr/local/sbin/iptables
(because your iptbales is in /sbin, not in /usr/local/sbin).

Second thing, enter the right interfaces here:
Code:
EXTIF="eth0"
INTIF="eth1"
EXTIF is the interface connected to the Internet, INTIF is connected to your local network.

After the modificatins, start the script and your Internet connection sharing should work.

Note that it's only basic scripts. If you search the site for masquerading, you'll find many more compilicated ones, with firewalling (it's a good idea).
 
Old 10-31-2003, 12:02 PM   #3
deft0nes12
LQ Newbie
 
Registered: Jul 2003
Location: california
Distribution: slackware, suse
Posts: 14

Rep: Reputation: 0
Quote:
EXTIF="eth0" INTIF="eth1"
so are you sayin that you need to ethernet cards? what if you have a modem that dials up...what would u put for extif=??? Besides the external interface...would the fact that its a modem and not a ethernet card change anything else???
 
Old 10-31-2003, 12:59 PM   #4
mahadeva
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Rep: Reputation: 0
Put ppp0
 
Old 10-31-2003, 04:02 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
ppp0 is created when you dial up. From the user point of view, it's used exactly the same way as eth0 or eth1. Your configuration is probably
Code:
EXTIF="ppp0"
INTIF="eth0"
 
  


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 with linux props666999 Linux - Networking 4 11-01-2004 08:07 AM
linux internet connection sharing usa1234 Linux - Networking 3 10-29-2004 11:27 AM
sharing internet with XP and Linux slapnutzz Linux - Networking 3 02-02-2004 09:19 PM
Sharing Internet with Linux DonMiner Linux - Networking 2 09-19-2002 09:30 PM
internet sharing on linux from one ip zipzero Linux - Networking 4 12-11-2001 05:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:41 AM.

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