LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-19-2011, 01:11 AM   #1
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Rep: Reputation: 1
squid cach peer


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


Regards
Amar
 
Old 12-19-2011, 03:24 AM   #2
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi

please can anyone reply
 
Old 12-19-2011, 12:06 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,659

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by amartlk View Post
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.

Last edited by TB0ne; 12-19-2011 at 12:07 PM.
 
Old 12-19-2011, 09:02 PM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by amartlk View Post
pls suggest what to do
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 View Post
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.
 
Old 12-20-2011, 02:48 AM   #5
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi

I am try to explain problem in details as

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.


Regards
Amar
 
Old 12-20-2011, 04:57 AM   #6
aazkan
Member
 
Registered: Jan 2008
Posts: 72

Rep: Reputation: 5
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

http://support.microsoft.com/kb/315236

And no offense to you, ping and web browsing (or http) are two different protocols.
i think you need to read up a bit what's what.
 
Old 12-20-2011, 05:47 AM   #7
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi

Thanks for reply

1} i already firewall disable in windows pc

2} i have only one Lan card in window pc which is connected to switch ,i connect usb data card for internet in usb port
 
Old 12-20-2011, 07:14 AM   #8
aazkan
Member
 
Registered: Jan 2008
Posts: 72

Rep: Reputation: 5
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.

Sounds plausible?

By the way, why windows?
 
Old 12-20-2011, 08:42 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,659

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by amartlk View Post
Hi
I am try to explain problem in details as

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.

Last edited by TB0ne; 12-20-2011 at 12:19 PM.
 
Old 12-21-2011, 11:07 PM   #10
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi

Thanks all of us , the issue is solved !!!

Regards
Amar
 
Old 12-22-2011, 09:54 AM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,659

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by amartlk View Post
Hi
Thanks all of us , the issue is solved !!!
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?
 
Old 12-22-2011, 11:22 PM   #12
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
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
 
Old 12-23-2011, 03:29 AM   #13
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by amartlk View Post
i am not bumping thread intentionally
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 View Post
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 View Post
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.
 
Old 12-23-2011, 11:30 AM   #14
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,659

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by amartlk View Post
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.
 
Old 12-23-2011, 01:07 PM   #15
aazkan
Member
 
Registered: Jan 2008
Posts: 72

Rep: Reputation: 5
Amar,

Out of curiuosity, may I know how was the problem solved?
 
  


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
squid 3 and cache peer ankitsagwekar Linux - Server 0 09-13-2011 07:35 AM
squid peer Ammad Linux - Networking 0 12-06-2007 12:47 PM
squid proxy restriction on peer-to-peer? (limewire) Teomari Slackware 3 03-29-2007 08:40 PM
Squid a peer-to-peer TheIrish Linux - Security 1 01-31-2005 05:31 AM
Squid running but doesn't seem to cach pages Crasherz Linux - Software 1 06-02-2004 04:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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