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 09-13-2008, 04:19 AM   #1
Quads
Member
 
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203

Rep: Reputation: 34
Can't share internet connection


I am running Mandriva 2008 on my machine with two NICs...one connected to the internet DHCP and a second manually configured and connected to another pc with a crossover cable specifically to share the internet connection. I have the network operational, as I have directories shared between the machines, and everything is working, but for some reason I cannot share the internet connection. When I run the wizard for it and it asks which card is connected to the internet I tell it eth0, which is right. Then it pops up and says that no ethernet adapter has been detected on the system and to run the hardware configuration tool. So what gives? I know this will work because I have done it before and I'm still quite a noob. Somebody help me out
 
Old 09-14-2008, 02:28 PM   #2
KinnowGrower
Member
 
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 347

Rep: Reputation: 34
YOu have to setup your linux box as router

here is link how i did it. I have fedora 9.

http://www.linuxquestions.org/questi...router-662311/

Hopefully it help
 
Old 09-14-2008, 05:21 PM   #3
apnicservices
LQ Newbie
 
Registered: Jul 2008
Location: London, UK
Distribution: Debian
Posts: 23

Rep: Reputation: 16
IPTABLES="/sbin/iptables"
EXTIF="ppp0"
INTIF="eth0"
LOCALNETWORK="192.168.1.0/24"

$IPTABLES -P INPUT ACCEPT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -P FORWARD DROP
$IPTABLES -t nat -A POSTROUTING -s $LOCALNETWORK -o $EXTIF -j MASQUERADE

$IPTABLES -A FORWARD -i $INTIF -s $LOCALNETWORK -o $EXTIF2 -j ACCEPT

$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -m state --state ESTABLISHED,RELATED -j ACCEPT

echo 1 > /proc/sys/net/ipv4/ip_forward
 
Old 09-14-2008, 08:03 PM   #4
Quads
Member
 
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203

Original Poster
Rep: Reputation: 34
Hmmmm...I will work on this some more, but it wasn't so complicated before...I'll give it a try and see what happens
 
  


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
Can not share internet connection bradshoults Linux - Networking 3 08-15-2007 10:10 PM
Share internet connection Braynid Linux - Newbie 12 05-27-2006 03:10 PM
Share Internet Connection sam_casperson Linux - Networking 3 02-03-2005 06:07 PM
how to share internet connection digihall7 Linux - Networking 5 10-22-2003 11:53 PM
how to share internet connection digihall7 Linux - Networking 2 09-23-2003 03:42 PM

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

All times are GMT -5. The time now is 11:13 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