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 09-15-2006, 01:28 AM   #1
centosnewbie
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Rep: Reputation: 0
Angry simple networking problem can ping gateway but not out


so...i had everything working and of course i had to move onto messing with apache and opening port 82 to run it.

it seems somewhere in the middle of this i lost my access to the internet via all my client computers. i can still ping the gateway, access it via telnet, open it in samba...i just cannot access the outside.

i've tried restarting dns, network, so on. i just cannot figure it out this time. i know i had this happen before but i cannot remember the fix.

please help me! lol
 
Old 09-15-2006, 02:12 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
first try to find where the problem lies: gateway -> internet, or client -> internet

if the gateway can get to the internet, then there is a problem with either:
iptables on gateway
ipforwarding state on gateway
routing table on client
dns settings on client

if the gateway cannot get into the internet check:
routing table on gateway,
check dns settings on gateway
iptables on gateway (esp. Policies)
or something between gateway and internet (ADSL ROUTER/MODEM)
 
Old 09-15-2006, 02:32 AM   #3
centosnewbie
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Original Poster
Rep: Reputation: 0
thanks

it seems all the client-side stuff hasn't changed (i'm not exactly newb with wind0ze) and the forwarding is enabled...as for iptables, what would i look for?

oh yeah, the gateway can access the internet. my bad in forgetting to state that in the first post.
 
Old 09-15-2006, 02:51 AM   #4
centosnewbie
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Original Poster
Rep: Reputation: 0
god i'm an idiot...

PHP Code:
/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE 
there...done...i guess i'm tired.
 
Old 09-15-2006, 04:01 AM   #5
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
just in case you have a static ip: the man pages for iptables state it is better to use the target SNAT rather than MANGLE (again: only if you have a static ip)
 
Old 09-15-2006, 08:25 AM   #6
centosnewbie
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Original Poster
Rep: Reputation: 0
seems the server went down...still looking through messages why...but somehow i cannot connect to the internet again. gah, this is getting annoying.

and yeah, my ip is dynamic. dhcp external/internal.

any ideas?
 
  


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
Simple question about command syntax ping/log ping results ohalnet Linux - Networking 1 07-25-2006 04:46 AM
DHCP and gateway routing problems (simple noob problem) michaelsanford Linux - Networking 4 04-13-2005 02:17 PM
Simple Ping problem bkesting Linux - Networking 11 11-30-2004 02:53 PM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
dhcp client can't ping gateway but can ping other local hosts dirty_forks Linux - Networking 7 10-08-2004 10:54 AM

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

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