LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-28-2010, 12:20 PM   #1
nikonaum
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Rep: Reputation: 0
Squid 2.6 dynamic IP host name resolving problem


In SQUID I have an ACL with a host "somename.no-ip.org" which looks like this:
"acl bo src somename.no-ip.org"
"http_access allow bo"

And everything works fine until the IP address (which is dynamically assigned) of the host "someone.no-ip.org" changes. And to give access to the proxy to this host I have to restart the squid server.

So my question is: How to make SQUID to auto-sense the new IP address of the host without manually restarting it?
 
Old 07-28-2010, 06:44 PM   #2
lxf
LQ Newbie
 
Registered: Jul 2010
Posts: 22

Rep: Reputation: 2
You can't. If you rely on a dynamic IP here, you have to make sure that the IP time outs very fast (verify your TTL), which restricts the underlying name resolving library in glibc to reload the IP address.

Squid itself doesn't care.
 
Old 07-29-2010, 03:14 AM   #3
nikonaum
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Original Poster
Rep: Reputation: 0
So, there is no way to give access to my proxy server to an outside client who has a dynamically changing IP and just writing down his DNS name which is one of "no-ip.org " to my access list in squid.conf file. Any suggestions for a workaround.
 
Old 07-29-2010, 09:50 AM   #4
lxf
LQ Newbie
 
Registered: Jul 2010
Posts: 22

Rep: Reputation: 2
You may authenticate privileged users to your web cache (see here for example). This doesn't require you to know client IPs in advance.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Error resolving host name through transparent squid amitkush Linux - Networking 9 09-17-2009 04:38 AM
Error resolving host name hrough transparent squid amitkush Red Hat 2 06-22-2009 05:37 AM
resolving host problem Veteq Linux - Newbie 4 06-03-2004 01:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration