Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 centos 5.3 with squid with 2 lancard installed on eth0 local lan is connected and eth1 isp line is connected.
i configured one window pc on which i configured Internet Data card
i want when my isp line connected to squid server having 2 lan card is down then i want to provide internet through my window xp pc on which i configured data card but filter is through squid server ,for that i use cache peer tag in server , the clients are able to open google page but unable to ping google or any other website
Hi
I have centos 5.3 with squid with 2 lancard installed on eth0 local lan is connected and eth1 isp line is connected.
i configured one window pc on which i configured Internet Data card i want when my isp line connected to squid server having 2 lan card is down then i want to provide internet through my window xp pc on which i configured data card but filter is through squid server ,for that i use cache peer tag in server , the clients are able to open google page but unable to ping google or any other website
pls suggest what to do
First, we will AGAIN TELL YOU to stop using text-speak and spell out your words, and QUIT BUMPING YOUR OWN THREADS after short times. Don't come back after two hours, saying "Hurry and answer me"...you do it all the time, and it DOES NOT make anyone want to hurry up and help you.
And do you realize what Squid actually IS? It is a web-proxy server...ping packets are NOT http packets, but ICMP packets, so they will not, of course, be sent through Squid. There is NOTHING TO FIX in the 'problem' you described above.
Start obeying the rules and conventions for this site; until you do, the responses that you get will be different from the responses that you want.
This thread is very closely related to http://www.linuxquestions.org/questi...-proxy-917682/
and, while it is a close decision, you would probably have been best to only start one thread. At least then, if you were going to break the site rules by bumping your thread, you would have only had one thread to bump (in contravention of the site's own scheme, which would automatically bump a qualifying post at an appropriate time).
Secondly, start writing clearly. When I see something like
Quote:
Originally Posted by amartlk
i want when my isp line connected to squid server having 2 lan card is down then i want to provide internet through my window xp pc on which i configured data card but filter is through squid server ,for that i use cache peer tag in server , the clients are able to open google page but unable to ping google or any other website
my first reaction is 'Oh no, another sentence mangler, with no idea how to present the problem clearly...it will be too much effort to get an exact explanation of the real problem, I'll just move on'. You may argue that this reaction is unfair, that it is not what should happen, but it is the reaction that first comes to mind.
While I cannot say how many of the people who could have helped you with your problem, whichever part is the actual problem, have had a similar reaction, it could easily be that you are bumping your thread because you haven't taken the effort to explain the problem clearly enough. That is unhelpful.
1)i have squid installed on centos 5.3 with to Lancard eth0 eth1 on eth1 isp line is connected.
2} i have configure one internet data card on window pc .
3} i make cache_peer setting in my squid server and enter ip address of this windows xp pc.
4} i want when my isp connected to my squid server is down then my squid uses the internet from data card configured on my window pc
5} By cache_peer configuartion i am able to browse some website but not ping any website.
Being picky, why not just put up another Centos instead of that windows pc?
Ok, taking a stab in the dark here but who knows perhaps it might help:
a. on the windows pc, did you allow icmp echo to pass through? or try shutting the windows firewall altogether
b. if i'm guessing it right, on windows pc you'd probably have 2 interfaces as well, one connecting to the LAN/Centos and the lan card to the internet, perhaps you might want to enable tcp forwarding on that windows box
When you say Lan card do you mean a network interface card?
Hmm.. Wont it be easier just to configure windows Internet connection sharing? i dont think you even need squid on windows or cache_peer on Centos squid.
Use the script provided by one of the poster (the one in posted in your other thread), cron it every 5 mins, when centos internet goes down, it'd switched its default gateway to the windows LAN ip.
Should forward the packets through windows out via the usb to the internet.
Probably need to run a dns daemon on windows but maybe not.
1)i have squid installed on centos 5.3 with to Lancard eth0 eth1 on eth1 isp line is connected.
2} i have configure one internet data card on window pc .
3} i make cache_peer setting in my squid server and enter ip address of this windows xp pc.
4} i want when my isp connected to my squid server is down then my squid uses the internet from data card configured on my window pc
5} By cache_peer configuartion i am able to browse some website but not ping any website.
Ok..and did you bother reading my VERY FIRST REPLY?? Ping IS NOT HTTP...they are two different protocols, so you would NOT be able to ping anything. There is NO PROBLEM in that scenario...Squid is behaving exactly like it should. One connection goes down, it routes http traffic to another, like you told it to. You CAN script iptables to forward ICMP packets, and (if you have firewall and other things set up right on Windows), it will act as a pass-through.
Also, why do you always ignore parts of posts?? You don't say anything about your self-bumping your own threads, text speak, etc., or reply to the moderator when they brought it up either.
There was no issue or problem in what you described. And you STILL ignore what folks have mentioned to you...perhaps you think that no one notices. You don't say anything about your self-bumping your own threads, text speak, etc., or reply to the moderator when they brought it up either.
Why should anyone here continue to try to help you, when you behave like that?
i am not bumping thread intentionally, as i am new to linux i face problem that first i try to solve by myself and then i post threads, i am here for getting solution of problems from genuis not harras anyone.
So, when you wrote post 2 in this thread, two hours and thirteen minutes after the first, you did that accidentally? Difficult to believe.
Quote:
Originally Posted by amartlk
i am here for getting solution of problems from genuis not harras anyone.
I won't speak for anyone else, but I make no claims of genius. However, you have been told in posts 3 & 4 about things that make it less likely for you to get good answers, and still you write:
Quote:
Originally Posted by amartlk
Hi guru
i am not bumping thread intentionally, as i am new to linux i face problem that first i try to solve by myself and then i post threads, i am here for getting solution of problems from genuis not harras anyone.
AMar
Something wrong there, surely? You are no longer on your first few posts, and it really is well about time that you tried to make it easier for people to help you. What you are currently doing will not help you.
Hi guru
i am not bumping thread intentionally, as i am new to linux i face problem that first i try to solve by myself and then i post threads, i am here for getting solution of problems from genuis not harras anyone.
Never said you were harassing or bothering anyone...just that you continue to do things that folks ask you not to do, then either ignore requests to stop, or claim ignorance/'newbie' status when you're asked. We're happy to help you, but when you continue to do these things and ignore requests to stop, it's hard to come up with reasons to answer your questions, when you ignore ours.
You've bumped MANY of your own threads, used text-speak, etc., so this is nothing new. And you've been here more than a year now...hardly a 'newbie' anymore.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.