LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-05-2005, 03:51 PM   #1
Doug Hammond
LQ Newbie
 
Registered: Feb 2003
Distribution: rehdat 8.0
Posts: 14

Rep: Reputation: 0
linux router


further to my thread a few days ago, i've now set up my box with gentoo and it's all fitting together nicely.... except for the one thing i really want to get working.....

it's the usual story: i want to be sharing my cable broadband to another PC thus:

cable modem ->(usb)-> PC1 (gentoo) ->(ethernet)-> PC2 (XP)

the networking all seems to be working fine.

on PC1, the broadband is eth1, and the LAN is eth0.
both have valid addresses.
dhcp works for eth1
PC2 can get an IP via dhcp from PC1 (ie. dhcpd is working fine on PC1)

PC1 is happliy on the internet (i'm using it now).

PC2 can ping PC1, and can access services on PC1 no problem.

what remains is this:

PC2 doesn't show a gateway, like it does when XP is running on PC1.
PC2 cannot access the internet.

i am running shorewall/iptables on PC1.

the firewall is working, i can verify this by blocking access to PC1 from PC2 for the services running on PC1.

i have never managed to get any linux install working as a router. there's obviously something i'm missing.

i have followed just about every tutorial/how-to/guide etc out there and it still won't work.

i'm dead sure i have ip_forwarding enabled and support for this in the kernel.

please please someone give me some help. this has been driving me crazy for months now.

i can supply any further details if needs be.


any advice you be much appreciated.

cheers.

Last edited by Doug Hammond; 02-05-2005 at 03:52 PM.
 
Old 02-05-2005, 05:29 PM   #2
Doug Hammond
LQ Newbie
 
Registered: Feb 2003
Distribution: rehdat 8.0
Posts: 14

Original Poster
Rep: Reputation: 0
ok i have managed to get PC2 to acquire a gateway and a domain name.
i'd missed two lines out of dhcpd.conf

i feel i'm getting closer, however, it still won't connect to the internet.
 
Old 02-05-2005, 06:13 PM   #3
Doug Hammond
LQ Newbie
 
Registered: Feb 2003
Distribution: rehdat 8.0
Posts: 14

Original Poster
Rep: Reputation: 0
panic over.

it's working.

can't explain how happy this makes me. it's been a long struggle.

turns out i also needed a domain-name-server statement in dhcpd.conf and that PING was lying to me.

PC2 doesn't like pinging the internet, but all services (or rather the critical ones, dns, http, smtp and pop3) are working fine.

 
  


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
Small Linux Router/firewall behind D-Link Hardware router dleidlein Linux - Networking 6 04-30-2007 05:12 AM
Linux as a router Pratik H Pandya Linux - Networking 2 07-05-2005 12:49 PM
Linux Router & Netgear Wireless Router DMaCATO Linux - Wireless Networking 1 04-30-2004 09:16 AM
/etc/resolv.conf configuration when behind a router(not a linux router) rmanocha Linux - Networking 2 04-28-2004 01:52 AM
ADSL Router + Linux Router + LAN = HELP!!! linuxlois Linux - General 2 09-16-2003 08:24 AM

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

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