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 03-22-2004, 10:13 PM   #1
zovres
Member
 
Registered: Sep 2002
Posts: 184

Rep: Reputation: 30
how to share internet with a cable modem?


I'm gonna get a cable connection with comcast this wednesday, my linux box was connected to the internet with an internal dialup modem before and it was forwarding the internet to 2 other machines.
I'm just wondering how to forward the internet from one of the network card of the linux box (tha twill have the cable modem pluged into) to the other network card that is connected to the reste of the lan.

any help appreciated
 
Old 03-23-2004, 07:44 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Add another masquerade rule to iptables that masquerades the nic interface as an output.

-A POSTROUTING -o eth0 -j MASQUERADE
 
  


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
cant get to internet through cable modem biblpshnman Linux - Networking 7 10-01-2005 08:41 AM
Nic card -> cable internet modem no internet connection zeshan_b Mandriva 21 09-26-2004 11:48 AM
Cable T V modem... Want internet Datalus Linux - Hardware 6 11-28-2003 04:34 PM
Can't share a cable modem over more then 2 network cards KingofBLASH Linux - Networking 1 11-01-2003 11:07 PM
Share internet between windows and linux over serial cable Nemlet Linux - Software 3 09-14-2003 11:20 AM

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

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