Jump to content

SQUID


wetelectric

Recommended Posts

Damn i love this program, so easy to configure. Tunnelling via ssh from my work box to my house, plus torrenting like crazy. Yet it's still working very smoothly.

Anyway, does anyone use it, and if so what for...anything good?

Link to comment
Share on other sites

Um... In my world Squid is a caching HTTP proxy server.

A *DAMN* good one at that of course, but still... Torrents? SSH? This puppy doesn't deal with that. It does filter all ads though (and prevents Google from finding out about me).

Got a link or something?

Link to comment
Share on other sites

I meant that on my box at home I am torrenting (not via squid), you know generally raping my by upload. Then while at work I forwarded the proxy connection via ssh to my box at home. So on my firefox the settings are 127.0.0.1:MYSQUIDPORT. I did this fully expecting it to be as slow as fuck. But it handled it beautifully. So thumbs up to openssh and squid! yays all round methinks!

Completely pointless of course..but meh

Link to comment
Share on other sites

I hate sea food. But I actually like squid...odd.

Trying to set up squid to filter out adservers...having problems....

# And finally deny all other access to this proxy
#acl adservers dstdomain "/usr/local/squid/etc/denied_domains.acl"
acl url_ads url_regex "/usr/local/squid/etc/banner-ads.acl"

http_access deny url_ads
http_access deny all

I have a simple regExp list which i have set up as above..... It doesn't work. How have you guys done it? Am I on the right path or is my method fishy? (i know, i know)

Link to comment
Share on other sites

I have the following:

acl blocked_domains dstdom_regex -i "/etc/squid/blocked_domains"
acl blocked_urlpaths urlpath_regex -i "/etc/squid/blocked_urlpaths"
acl blocked_urls url_regex -i "/etc/squid/blocked_urls"
acl allowed_domains dstdom_regex -i "/etc/squid/allowed_domains"
http_access allow allowed_domains
http_access deny blocked_domains
http_access deny blocked_urlpaths
http_access deny blocked_urls

# allow the local network to access the proxy
acl localnet src 192.168.0.0/24
http_access allow localnet

# allow localhost to access theĀ  proxy
http_access allow localhost

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

The -i in it makes the regexes case-insensitive.

I also doubt you want to 'deny all' without first specifying which machines are actually allowed to access the proxy.

In the url http://www.somewebsite.blah/path/to/page.html:

  • [li]dstdom = www.somewebsite.blah[/li]

[li]urlpath = /path/to/page.html[/li]

[li]url = www.somewebsite.blah/path/to/page.html[/li]

That should get you going... :)

Link to comment
Share on other sites

Yea that pretty much what I had..apart from the "-I" . Tunneling it via ssh

# Example rule allowing access from your local networks. Adapt
# to list your (internal) IP networks from where browsing should
# be allowed
acl our_networks src 127.0.0.1

http_access allow our_networks

# And finally deny all other access to this proxy
#acl adservers dstdomain "/usr/local/squid/etc/denied_domains.acl"
acl url_ads url_regex -i "/usr/local/squid/etc/banner-ads.acl"

http_access deny url_ads
http_access deny all

Still not working perhaps it's my regExp. The following should filter ad coming from http://ad.doubleclickEvil.com

^http://ads.
^http://ad.
^http://ads02.
^http://adaver.*.

Bah, i'll figure it out.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...