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 12-10-2004, 02:25 AM   #1
mrpc_cambodia
Member
 
Registered: Jun 2004
Posts: 131

Rep: Reputation: 15
Can't connect to the internet


I have 3 pcs: A (Redhat 9.0), B(Redhat 9.0), C (windows XP pro).

PC A has 2 interfaces: one to the internet and another to PC B.

PC B has 2 interfaces: one to PC A and another on to PC C. On PC B, I run squid as proxy and set the gateway to the ip of PC A.

PC C has one interface connecting to PC B. i set PC B as proxy for PC C (No gateway).

My PC B can connect to the internet by using PC A as gateway.
MY PC C can see webpage from PC A by using Proxy which is set to PC B ip (I have apache running on PC A).


On PC A, there is no firewall or something that block packet from PC C.

My problem is why PC C can't connect to the internet?


Thanks,
 
Old 12-10-2004, 05:21 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
fist, what error message do u get on PC C, while u r trying to browse internet trou proxy? i mean, do u get squid error page? or get default xp host not found message?

if u dont have to run squid on PC B, try followings:
on PC B:
echo "1" > /proc/sys/net/ipv4/ip_forward

on PC C
set PC B as gateway
set your ISP nameserver as DNS

on PC A
check iptables if it has POSTROUTING rule for PC C. and make sure it doesnt block PC C ip adress in FORWARD chain.


good luck.
 
Old 12-10-2004, 09:20 PM   #3
mrpc_cambodia
Member
 
Registered: Jun 2004
Posts: 131

Original Poster
Rep: Reputation: 15
Thanks, now it works.

i just need to set on pc B the dns name.


Thanks,
 
Old 12-11-2004, 11:41 PM   #4
Doug.Gentry
Member
 
Registered: Aug 2003
Location: Enumclaw, Washingtion. USA
Distribution: Suse 9.2, Fedora 3, wifes XP
Posts: 143

Rep: Reputation: 15
algebra??

Holy yikes, I'm glad you figured it out.... I got lost somewhere in PC B..... why don't ya get a router for the same amount of money you spent on all the network cards.
 
  


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
When i connect on the internet I want root not to access the internet !! skouket Linux - Security 12 07-10-2005 12:17 PM
Messed up my Internet Settings (can't connect to the internet) Almazick Linux - Wireless Networking 0 09-07-2004 06:23 PM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM
Can connect broadband but can't connect Internet satimis Linux - Networking 4 01-31-2004 07:58 PM
Can't connect to Internet Galphar Linux - Newbie 13 08-24-2003 03:14 PM

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

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