Koozali.org: home of the SME Server

squid acl's

Offline byte

  • *
  • 2,183
  • +2/-0
squid acl's
« on: October 23, 2006, 11:32:32 PM »
Guys,

On a old 6.0 box I did my own custom template which used these files...

20ACL00all
40http_access75AllowLocal
40http_access99denyall

In 20ACL00all I had...

acl all src 0.0.0.0/0.0.0.0
acl user1 src 192.168.1.67/32
acl AllDomain dst 0.0.0.0/0.0.0.0
acl AllowedDomain dstdomain www.yahoo.co.uk


In 40http_access75AllowLocal I had...

http_access allow user1 AllowedDomain
http_access deny user1 AllDomain
http_access allow localsrc

And in 40http_access99denyall I had...

http_access deny all

Now once I expanded and restarted service nothing works (doesn't block any webpages) as before in earlier versions.

The only thing I notice is there is a "new" 20ACL10localhost which has the following....

{
    use esmith::NetworksDB;

    my $ndb = esmith::NetworksDB->open_ro();

    $localAccess = $ndb->local_access_spec();

    $OUT .= "acl localsrc src $localAccess\n";
    $OUT .= "acl localdst dst $localAccess";
}

I wonder what I would need to do to get it working with what I need does anyone have any tips?

I know mastersleepy has done a contrib to allow ips but I would like to create a custom template as in the past to restrict some ips.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
squid acl's
« Reply #1 on: October 24, 2006, 12:32:06 AM »
byte

Do you want to only restrict certain IP's from internet access?

I have rehashed an old SME6 squidpropeties contrib (Tech-Geeks.Org) that restricts http access to IP's you put in the selection as well as flush the cache and bypass cache for certain local domains.

The IP banning is back the front to mastersleepy's contrib ... his bans all ip's and you have to select the ones to unban (great concept in some networks).

The one I modified allows all IP's and you have to select the ones you want to ban.

If this is what you are after let me know your e-mail address and I'll mail it to you ... I have modified this only for my personal use as I dont know what to do to release a modified contrib belonging to someone else.

I have mailed the author but no reply.

Regards,

Tib

Offline byte

  • *
  • 2,183
  • +2/-0
squid acl's
« Reply #2 on: October 24, 2006, 10:49:05 AM »
Quote from: "Tib"
byte

Do you want to only restrict certain IP's from internet access?



Hi Tib,

Yes that's exactly what I'm trying to do, if you could send to removed

Many thanks in advance
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline Teviot

  • *
  • 610
  • +0/-0
squid acl's
« Reply #3 on: October 24, 2006, 10:55:58 AM »
I would like that too.  Is there a url that we can get it from

Regards
Adrian
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
squid acl's
« Reply #4 on: October 25, 2006, 05:39:44 AM »
Hello All

I have setup a temp link to the files ...

http://www.cooltemp.com.au/smefiles/smeserver-squidproperties-1.0.0-01.noarch.rpm

Here is the src file as well ...

http://www.cooltemp.com.au/smefiles/smeserver-squidproperties-1.0.0-01.src.rpm

Like I have stated many times ... I'm new at this so please test.

It is working on our production server no probs but I would still be more comfortable if someone with more experiance would double check these files out.

I modified the origional Tech-Geeks.Org tar (squidProperties-0.3.tar) and created the rpm files ... below is the modified tar file.

http://www.cooltemp.com.au/smefiles/smeserver-squidproperties-0.4.tar

Regards,

Tib

Offline byte

  • *
  • 2,183
  • +2/-0
squid acl's
« Reply #5 on: October 25, 2006, 10:13:01 AM »
Moving this topic to the SME Server 7.x Contribs forum, it is more appropriate there. Thanks! again Tib
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!