LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't connect to the internet (https://www.linuxquestions.org/questions/linux-networking-3/cant-connect-to-the-internet-264752/)

mrpc_cambodia 12-10-2004 02:25 AM

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,

maxut 12-10-2004 05:21 AM

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.

mrpc_cambodia 12-10-2004 09:20 PM

Thanks, now it works.

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


Thanks,

Doug.Gentry 12-11-2004 11:41 PM

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.


All times are GMT -5. The time now is 01:43 AM.