Configuring Squid

Discussion in 'Server Operation' started by perfectpol7, Feb 3, 2009.

  1. perfectpol7

    perfectpol7 New Member

    Hie i am not sure whether this is the right thread. I have a samba server running and now i want to configure the squid to enable other company in my LAN to connect to the internet. I have failed to configure squid in the squid. conf text editor and i googled then come up with the GADmin Squid 0.1.0 version which is a GUI hoping to make my life easily as l am newbie in linux the resort to graphical mode. I had installed it but enountered to this error which i do not know how to move forward:

    09/02/03 11:49:20| cache_cf.cc(346) squid.conf:67 unrecognized: 'wais_relay_port'
    2009/02/03 11:49:20| cache_cf.cc(346) squid.conf:78 unrecognized: 'refresh_stale_hit'
    2009/02/03 11:49:20| cache_cf.cc(346) squid.conf:117 unrecognized: 'max_filedesc'
    2009/02/03 11:49:20| cache_cf.cc(346) squid.conf:132 unrecognized: 'acl_uses_indirect_client'
    2009/02/03 11:49:20| cache_cf.cc(346) squid.conf:135 unrecognized: 'delay_pool_uses_indirect_client'
    2009/02/03 11:49:20| cache_cf.cc(346) squid.conf:136 unrecognized: 'log_uses_indirect_client'
    2009/02/03 11:49:20| cache_cf.cc(346) squid.conf:140 unrecognized: 'httpd_accel_no_pmtu_disc'
    2009/02/03 11:49:20| cache_cf.cc(346) squid.conf:165 unrecognized: 'cache_vary'
    2009/02/03 11:49:20| cache_cf.cc(346) squid.conf:167 unrecognized: 'collapsed_forwarding'
    2009/02/03 11:49:20| aclParseIpData: WARNING: Netmask masks away part of the specified IP in '10.0.0.255/255.255.255.0'
    2009/02/03 11:49:20| cache_cf.cc(346) squid.conf:193 unrecognized: 'broken_vary_encoding'
    2009/02/03 11:49:20| aclParseAccessLine: ACL name 'allow' not found.
    FATAL: Bungled squid.conf line 196: reply_body_max_size 0 allow 10.0.0.23
    Squid Cache (Version 3.0.STABLE10): Terminated abnormally.
    CPU Usage: 0.007 seconds = 0.006 user + 0.001 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 0

    My public ip address is 192.168.0.11 and my internal one 10.0.0.23.

    Is there anyone out there who have use this GADMIN squid to assist please.
     
  2. topdog

    topdog Active Member HowtoForge Supporter

    The problem is you are trying to run squid 3.x using a squid 2.6.x config.
     
  3. perfectpol7

    perfectpol7 New Member

    So what should l do to move forward, how do l remove the squid 3.0 or 2
     
  4. topdog

    topdog Active Member HowtoForge Supporter

    squid is fairly easy to configure via the text editor, but default the config provided works allowing cache access for the localhost, to enable access for your lan all you need is to add the lan range to your acl. If you want a transparent proxy (force users to use squid) there are plenty of resources on that as well in fact the squid wiki provides examples on how u can do it.

    If all that is too daunting you can use webmin to do the configuration as it supports squid 3.x
     
  5. perfectpol7

    perfectpol7 New Member

    Thanks. Let me download webmin and install it if face complications l will come back. initial failed to configure the squid text editor that's why l have resort to GUI methods cause l am a learner to linux. Does webmin need some configurations and if so which areas should l pay attention to.
     
  6. topdog

    topdog Active Member HowtoForge Supporter

    No really, it should pretty much work out of the box.
     
  7. perfectpol7

    perfectpol7 New Member

    i have install webmin, now how should i remove the GADmin before l run Webmen
     
  8. topdog

    topdog Active Member HowtoForge Supporter

    i have never used gadmin so i cannot say
     
  9. perfectpol7

    perfectpol7 New Member

    When i start webmin squid i am getting the same errors as i had from the gadmin. what might be problem, i will send you the error log as i am using a different pc for internet.
     
  10. topdog

    topdog Active Member HowtoForge Supporter

    Did you replace the file, that had been mangled by Gadmin ?
     
  11. perfectpol7

    perfectpol7 New Member

    here is the error log webmin 1.450 and how do i replace that file

    Failed to start Squid :

    Starting squid: [FAILED]
    2009/02/04 16:17:24| Processing Configuration File: /etc/squid/squid.conf (depth 0)
    2009/02/04 16:17:24| cache_cf.cc(346) squid.conf:66 unrecognized: 'wais_relay_port'
    2009/02/04 16:17:24| cache_cf.cc(346) squid.conf:77 unrecognized: 'refresh_stale_hit'
    2009/02/04 16:17:24| cache_cf.cc(346) squid.conf:115 unrecognized: 'max_filedesc'
    2009/02/04 16:17:24| WARNING: No units on 'authenticate_ip_ttl 5', assuming 5.00 second
    2009/02/04 16:17:24| cache_cf.cc(346) squid.conf:129 unrecognized: 'acl_uses_indirect_client'
    2009/02/04 16:17:24| cache_cf.cc(346) squid.conf:132 unrecognized: 'delay_pool_uses_indirect_client'
    2009/02/04 16:17:24| cache_cf.cc(346) squid.conf:133 unrecognized: 'log_uses_indirect_client'
    2009/02/04 16:17:24| cache_cf.cc(346) squid.conf:137 unrecognized: 'httpd_accel_no_pmtu_disc'
    2009/02/04 16:17:24| cache_cf.cc(346) squid.conf:162 unrecognized: 'cache_vary'
    2009/02/04 16:17:24| cache_cf.cc(346) squid.conf:164 unrecognized: 'collapsed_forwarding'
    2009/02/04 16:17:24| cache_cf.cc(346) squid.conf:190 unrecognized: 'broken_vary_encoding'
    2009/02/04 16:17:24| aclParseAccessLine: ACL name 'allow' not found.
    FATAL: Bungled squid.conf line 193: reply_body_max_size 0 allow 10.0.0.23
    Squid Cache (Version 3.0.STABLE10): Terminated abnormally.
    CPU Usage: 0.008 seconds = 0.004 user + 0.004 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o:
     
  12. topdog

    topdog Active Member HowtoForge Supporter

    what distro are you using ?
     
  13. perfectpol7

    perfectpol7 New Member

    Distro, i am using is fedora 10. Now may you please take me step by step in configuring webmin. I have uninstall squid and then installed it again same applies to gadmin and webmin. Now i have webmin. My internal IP address for the LAN in 10.0.0.23 and for the internet is 192.168.0.10.
     

Share This Page