Squid 2.5 to 2.6

linux

    Next

  • 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 192.168.27.151 acl WORKING time MTWHF 11:00-11:30 http_access allow restnet ******************************* I found that user sitting at 192.168.27.151 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

Thanks.



squid.conf
********************************************************

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
cache
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 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl locallan src 192.168.0.0/255.255.255.0
acl to_localhost dst 127.0.0.0/8
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 CONNECT method CONNECT

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
desinenze

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


etc/host
******************************************************************

127.0.0.1       localhost
192.168.0.15    PROXY-FIREWALL-DEB.ALEWRG       PROXY-FIREWALL-DEB

192.168.0.58    www.sito1.it
192.168.0.57    www.sito2.it
192.168.0.58    www.sito3.it
192.168.0.58    www.sito4.it
192.168.0.59    www.sito5.it





Return to linux

 

Who is online

Users browsing this forum: No registered users and 20 guest