LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 06-04-2005, 04:14 PM   #1
farnell_mark
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Rep: Reputation: 0
internet connection sharing between two debian Sarge computers using crossover cable


I have two computers installed with Debian Sarge. The first computer has two ethernet ports and one of the port is connected to an ADSL modem. The other ethernet port of the first computer is connected to the second computer via a crossover ethernet cable. The first computer can have access to the internet but not the second computer.

In Debian Sarge, how should I set both computer up so that the second computer can share the internet access as well as the printer service of the first computer? (the first computer is connected to a printer via the USB port, has both CUPS server and client installed and can print successfully)


Thanks!

Mark

Last edited by farnell_mark; 06-04-2005 at 04:23 PM.
 
Old 06-04-2005, 04:44 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
you essentially need to enable ipforwarding. personally i would suggest using a firewall configuration tool todo this for you, such as firestarter. you can also do it yourself with just a couple of lines, which i *think* are:
Code:
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o ppp0 -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
Internet sharing through crossover cable iamtux Linux - Networking 3 09-01-2005 07:53 AM
Win98 and RedHat 6.0 Internet Connection Sharing with a crossover cable lorisdaboris Linux - Networking 3 03-13-2005 10:24 AM
Sharing internet connection between Slackware and XP via crossover cable islord Linux - Networking 3 01-24-2005 10:38 AM
Crossover cable network between XP and Gentoo to shace internet connection rcbarnes Linux - Networking 2 12-24-2004 10:49 PM
Slackware 9, Windows XP, crossover cable and an internet connection dxdad Linux - Networking 37 11-11-2003 08:45 PM


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