Squid 2.5 to 2.6



  • 1. dev_add_pack question
    Hello, I want to add my own protocol in kernel network stack. so i analyze the kernel code and i found that new protocols are added with dev_add_pack() function. But i am confuse about how to declare my own protocol in instance of packet_type like one defined for IP packet static struct packet_type ip_packet_type = { __constant_htons(ETH_P_IP), NULL, /* All devices */ ip_rcv, (void*)1, NULL, }; How/where to get/write own protocol ID like ETP_P_IP nad what should be its protocol number? and can i define other fields NULL in my packet type same as in IP packet type structure? regards, cranium.2003
  • 2. Ethernet Over USB -CDCEther.c
    Dear all, I want to implement"Ethernet over USB" on a printer.Do I have to follow the Communiction Device class for implementing ethernet over usb.In linux there is a driver CDCEther.Does this driver implements Ethernet over usb protocol.Can I use this driver in the device side also ie in the printer. In order to develop ethernet over usb is it necessary to have a kernel mode driver or can I implement the protocol using a user level daemon?Is there any open source code implementation available for device side? Can anyone please help me.I'm really stuck with the doubt. Thanks in advance Regards Preethi
  • 3. Time restriction in SQUID
    Hi i am trying to restrict a perticular user PC from using the Internet facility on Time restriction basis. I add following entries in squid.conf file. ********************** acl restnet src acl WORKING time MTWHF 11:00-11:30 http_access allow restnet ******************************* I found that user sitting at is able to browse the Internet even after the specified hours (11:00-11:30). Means these settings are not working. Can anyone tell what else is reqd. to restrict the particular PC for particular time period? or can someone suggests the change in this code? Thanks in Advance

Squid 2.5 to 2.6

Postby Alessandro » Thu, 28 Feb 2008 02:27:33 GMT

Hi Everyone,

Why this configuration of my reverse proxy work correctly with Squid 2,5 and 
not with Squid 2.6



http_port 80
icp_port 0

acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY    # Questa ACL fa in modo che gli oggetti in questione
non vengano registrati nella cache

cache_mem  96 MB    # memoria max utilizzata dal processo che amministra la
maximum_object_size 8192 KB    # Grandezza massima di un oggetto registrato
nella cache

cache_dir ufs /var/spool/squid 100 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
mime_table /usr/share/squid/mime.conf
pid_filename var/run/squid.pid

refresh_pattern  ^ftp:  1440 20% 10080        # direttive che specificano
ogni quando un pattern va riverificato
refresh_pattern  ^gopher: 1440 0% 1440
refresh_pattern  .  0 20% 4320

acl all src
acl manager proto cache_object
acl localhost src
acl locallan src
acl to_localhost dst
acl SSL_ports port 443 563
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443 563     # https, snews
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http

acl ftpblock url_regex -i \.mp3$ \.asx$ \.avi$ \.mpeg$ \.mpg$ \.qt$ \.ram$
\.rm$    # fa in modo che non vengano fatti scaricare i file di quelle

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow locallan
http_access deny ftpblock
http_access allow all

icp_access allow all
miss_access allow all

cache_mgr  XXXX@XXXXX.COM 

visible_hostname proxy.virtual.net

#Configurazione Reverse-Proxy
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_single_host off
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

******************************************************************       localhost    PROXY-FIREWALL-DEB.ALEWRG       PROXY-FIREWALL-DEB    www.sito1.it    www.sito2.it    www.sito3.it    www.sito4.it    www.sito5.it

Return to linux


Who is online

Users browsing this forum: No registered users and 20 guest