Results 1 to 4 of 4

Thread: Help for Squid 3 Proxy

  1. #1

    Lightbulb Help for Squid 3 Proxy

    I'm using transparent Proxy and want to restrict social networking site to users.
    My squid.conf as follows but not of use unable to stop website

    .
    .
    .
    .
    .
    #Recommended minimum configuration:
    acl all src all
    acl manager proto cache_object
    acl localhost src 127.0.0.1/32
    acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
    #acl workhrs time MTWHFA 11:00-16:00
    #
    # Example rule allowing access from your local networks.
    # Adapt to list your (internal) IP networks from where browsing
    # should be allowed
    #acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
    acl localnet src 127.0.0.1/255.255.255.255 # RFC1918 possible internal network
    acl our_network src 192.168.2.0/24 # RFC1918 possible internal network
    acl bad dstdomain www.facebook.com
    #acl blacklist_ip src 192.168.2.11
    #
    acl SSL_ports port 443 # https
    acl SSL_ports port 563 # snews
    acl SSL_ports port 873 # rsync
    acl Safe_ports port 80 # http
    acl Safe_ports port 21 # ftp
    acl Safe_ports port 443 # https
    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 Safe_ports port 631 # cups
    acl Safe_ports port 873 # rsync
    acl Safe_ports port 901 # SWAT
    acl purge method PURGE
    acl CONNECT method CONNECT
    # TAG: http_access
    # Allowing or Denying access based on defined access lists
    #
    .
    .
    .
    .
    #Recommended minimum configuration:
    acl all src all
    acl manager proto cache_object
    acl localhost src 127.0.0.1/32
    acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
    #acl workhrs time MTWHFA 11:00-16:00
    #
    # Example rule allowing access from your local networks.
    # Adapt to list your (internal) IP networks from where browsing
    .
    .
    .
    .
    #http_access allow localnet
    #http_access deny bad workhrs blacklist_ip
    http_access deny bad
    http_access allow localhost
    http_access allow our_network
    http_access allow localnet

    # And finally deny all other access to this proxy
    http_access deny all

    # TAG: http_access2
    .
    .
    .
    .
    #Default:
    debug_options ALL,1 33,2 28,9

  2. #2
    hey ddlinux, do 1 thng....istead of typing the sites in squid.conf.. go to /usr/local/etc i.e cd /usr/local/etc
    then open with nano or vi restrictedsites.squid ....put the name of the sites in this .... thn open squid.conf n write
    acl badsites dstdomain "usr/local/etc/restrictedsites.squid"
    http_access deny badsites


    it will work ...report me wat happened

  3. #3
    Thanks Abhijeet its working now

  4. #4
    hey ddlinux m really happy that it worked!!!!! thnks again for asking as it helped me brush up my knowledge..bbye

Similar Threads

  1. Replies: 1
    Last Post: 06-27-2013, 11:57 PM
  2. need help about squid proxy
    By guozhang in forum Linux - General Topics
    Replies: 1
    Last Post: 12-06-2008, 09:45 PM
  3. Squid Transparent proxy
    By manjusa in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 10-21-2008, 06:23 AM
  4. Squid PROXY
    By brukutu in forum Windows - General Topics
    Replies: 1
    Last Post: 04-07-2008, 06:31 PM
  5. squid proxy question
    By nisha_kri in forum Linux - General Topics
    Replies: 2
    Last Post: 01-14-2007, 11:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •