Fedora Linux Support Community & Resources Center

Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Servers

Servers The place to discuss any Fedora server problems you may have.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2006-02-21, 12:32 AM CST
dazaau Offline
Registered User
 
Join Date: Jun 2005
Posts: 112
squid and dansguardian - problems!

Hi,
I am new to linux and quite honestly don't know what I am doing half the time. I have a server running nicely though on the network using samba with no worries. I am now trying to get a web filter running and have followed the directions at http://www.linux.com/article.pl?sid=04/07/01/1833212 and i can't get squid to start or dansguardian. Squid fails and in the squid log file it says something about setting the 'visible_hostname'

I cant figure it out, can't find anything on line either. please let me know if you know what is wrong or if you know of a setup guide that works. It is really frustrating not understanding what you are doing of course now because of the Iptables rules I can't use the internet on the server anymore, need help!

Thanks
Daniel
Reply With Quote
  #2  
Old 2006-02-21, 02:01 AM CST
foobar47's Avatar
foobar47 Offline
Registered User
 
Join Date: Nov 2005
Location: France - Lille
Posts: 413
Hi,
please put the correct error message !
Is it this one :
Quote:
FATAL: Could not determine fully qualified hostname. Please set
'visible_hostname'
?
This setting allows you to present a usuable hostname in error-messages.
visible_hostname proxy.yourhost.com
__________________
My WebPage
RHCT for the moment !
Reply With Quote
  #3  
Old 2006-02-21, 02:57 AM CST
dazaau Offline
Registered User
 
Join Date: Jun 2005
Posts: 112
yep that is it :-) Any ideas on how to make it work. I would really like to get it running as we really should have it up and running for all the users here.
Thanks
Daniel
Reply With Quote
  #4  
Old 2006-02-21, 02:59 AM CST
dazaau Offline
Registered User
 
Join Date: Jun 2005
Posts: 112
Quote:
Originally Posted by foobar47
Hi,
please put the correct error message !
Is it this one :
?
This setting allows you to present a usuable hostname in error-messages.
visible_hostname proxy.yourhost.com
what host am I supposed to put in there? my ISP? My web domain? Thanks for your help! Sorry I don't quite understand, I am quite new to servers and Linux!
Reply With Quote
  #5  
Old 2006-02-21, 03:40 AM CST
foobar47's Avatar
foobar47 Offline
Registered User
 
Join Date: Nov 2005
Location: France - Lille
Posts: 413
First, try to put your hostnaem like it is in /etc/hosts file :

[root@squid ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.1.11.156 squid squid.mydomain.com

Second, try to comment the visible_hostname option...
__________________
My WebPage
RHCT for the moment !
Reply With Quote
  #6  
Old 2006-02-21, 04:24 AM CST
dazaau Offline
Registered User
 
Join Date: Jun 2005
Posts: 112
thanks! looked in my hosts file and it just says
order hosts,bind?
Reply With Quote
  #7  
Old 2006-02-21, 04:27 AM CST
dazaau Offline
Registered User
 
Join Date: Jun 2005
Posts: 112
OK I ran it in terminal and just got 127.0.0.1 server localhost.localdomain localhost

is that what I put in?

127.0.0.1 server localhost.localdomain
Reply With Quote
  #8  
Old 2006-02-21, 04:38 AM CST
dazaau Offline
Registered User
 
Join Date: Jun 2005
Posts: 112
didn't like any of those. how do I het to be root@squid. I am in root@server?
Thanks!
Daniel
Reply With Quote
  #9  
Old 2006-02-21, 04:42 AM CST
foobar47's Avatar
foobar47 Offline
Registered User
 
Join Date: Nov 2005
Location: France - Lille
Posts: 413
Cause your box is named "server" ...
It looks like :
user @ machine
What is your ip ?
what is your /etc/hosts file ?
not /etc/host.conf...
after 127.0.0.1 line add your network ip and put a name :
assume your ip is 192.168.1.100 for your squid server and is named "server" and your domain is "mydomain.com"
here is your /etc/hosts file :
Quote:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.100 server server.mydomain.com
after, put server.mydomain.com in the visible_hostname option...

Did you try to comment this one ?
__________________
My WebPage
RHCT for the moment !
Reply With Quote
  #10  
Old 2006-02-21, 05:02 AM CST
dazaau Offline
Registered User
 
Join Date: Jun 2005
Posts: 112
ahh, I think I begin to see the light, yeah It is #none by default but still doesn't work.
Really weird I just logged out of root and back in and now it seems all the gnome files are corrupt and the interface isn't working and I get greeted with 10 error messages when I log in? Anyway I have moved to xfce and it is working OK.
Reply With Quote
  #11  
Old 2006-02-21, 05:25 AM CST
dazaau Offline
Registered User
 
Join Date: Jun 2005
Posts: 112
I set it up for my NIC's network address and then wrote server server.mydomain.com and then entered

server.mydomain.com into the squid.conf and it still doesn't like it.
Reply With Quote
  #12  
Old 2006-02-21, 05:40 AM CST
foobar47's Avatar
foobar47 Offline
Registered User
 
Join Date: Nov 2005
Location: France - Lille
Posts: 413
Strange !
What is your squid.conf file ?

you should have something like that :

# 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.
#
#Default:
# none
visible_hostname server

try to only put 'server' without domain name.

What is the result of hostname and hostname --fqdn command ?

Restart your network service too...
__________________
My WebPage
RHCT for the moment !
Reply With Quote
  #13  
Old 2006-02-21, 05:55 AM CST
dazaau Offline
Registered User
 
Join Date: Jun 2005
Posts: 112
the result is server.

One quick question: if you were to set all the permissions of the files on the HDD to 777 and then back to 755, Would that cause a problem? My PC is having a lot of problems now. I might have to reinstall linux. probably shouldn't have done that!
Reply With Quote
  #14  
Old 2006-02-21, 06:13 AM CST
foobar47's Avatar
foobar47 Offline
Registered User
 
Join Date: Nov 2005
Location: France - Lille
Posts: 413
Why did you apply chmod 777 to all files ?
Try to disable SELinux...

Did you put this one :
visible_hostname server
__________________
My WebPage
RHCT for the moment !
Reply With Quote
  #15  
Old 2006-02-21, 06:29 AM CST
dazaau Offline
Registered User
 
Join Date: Jun 2005
Posts: 112
yeah I know, dumb, dumb I shouldn't have done it. SElinux was ulready turned off. Although it my be have come back on when I rebooted? Thanks so much for all the info you have given me. I think I am getting somewhere. on the chmod 777 thing. gnome won't work. KDE is half working with programs like text editor not working properly. Firefox won't work either. do you think it was my little chmod 777 chmod 755 trick? It was fine untill hours after when I logged out and logged in again. I am a little worried if it is not that and it is the HDD or something becuase it is a file server And I wouldn't like to explain that! I think at 12:30am I better be off to bed.

Thanks ever so much, I am sure that what you have explained will get me closer to getting this going! I feel so lost when it comes to linux and finding answers on the net. So much linux-language that a windows boy like me doesn't understand! But I am learning! I'll look at this problem again tomorrow
Thanks again
Good night
Daniel
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
squid + dansguardian bla4free Servers 3 2006-01-25 02:25 PM CST
Squid / Dansguardian AlphaTwin Servers 2 2006-01-20 12:34 PM CST
VPN & Squid/Dansguardian sc00by Servers 0 2005-05-29 08:04 AM CDT
Squid/Dansguardian masterlodi Networking 3 2005-05-26 02:16 AM CDT
Dansguardian & Squid on FC2 MichiganRon Servers 6 2004-11-11 04:25 AM CST

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 10:52 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Translated to other languages thanks to NLP-er 2.3.8