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 am in the process of setting up Squid proxy-server on my linux computer but squid doesn't start. I tried to run it with default configuration that comes with squid*.rpm and got below error.
root@RH80 deepika]# service squid start
init_cache_dir /var/spool/squid... /etc/init.d/squid: line 162: 3764 Aborted
$SQUID -z -F 2>/dev/null
Starting squid: /etc/init.d/squid: line 162: 3765 Aborted $SQUID $SQUID_OPTS 2>/dev/null
[FAILED]
Hi, I discovered the problem was because I hadn't specified 'visible_hostname' option. After I set this option to my m/c hostname it doesn't give this error any more. But I don't understand why does one HAS TO specify this since according to below statement in "squid.conf" file
Quote:
# TAG: visible_hostname
# If you want to present a special hostname in error messages, etc,
# then define this. Otherwise, the return value of gethostname()
# will be used. If you have multiple caches in a cluster and
# get errors about IP-forwarding you must set them to have individual
# names with this setting.
It doesn't seem necessary if gethistname() can get it.
Well that's not due to the problem that u are specifying..
I will tell you why the problem due to if give the content of cache.log here.. found in logs directory under the /etc/squid/
I also found that I hadn't set my hostname to IP address mapping in /etc/hosts file. Once I specified my hostname there it no longer needed my to define visible_hostname in 'squid.conf' file.
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Rep:
I believe they make you set it because if gethostname fails and for some reason your proxy is exposed to the Internet (as an open proxy), they want people on the net to be able to contact you and tell you your an open proxy. That is just a guess but it makes sense to me. :-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.