Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.