FATAL error while using dstdomain directive

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

FATAL error while using dstdomain directive

Eric C. Kom
Good day Folks,
Please I tried to block websites like youtube.com and facebook.com  using acl dstdomain directive without success. 

Squid replied the above error:
erickom@proxy:/etc/squid3$ sudo squid3 -z
2017/06/20 15:37:37| ERROR: '.google.com' is a subdomain of 'google.com'
2017/06/20 15:37:37| ERROR: You need to remove '.google.com' from the ACL named 'ban_list'
FATAL: Bungled /etc/squid3/squid.conf line 57: acl ban_list dstdomain "/etc/squid3/ban_list"
Squid Cache (Version 3.4.8): Terminated abnormally.
CPU Usage: 0.004 seconds = 0.004 user + 0.000 sys
Maximum Resident Size: 37520 KB


See below my ban_list file:
erickom@proxy:/etc/squid3$ cat ban_list  
google.com
.google.com
youtube.com
.youtube.com
facebook.com
.facebook.com

Please assist

Thanks

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: FATAL error while using dstdomain directive

Ralf Hildebrandt
* Eric C. Kom <[hidden email]>:
> Good day Folks,
> Please I tried to block websites like youtube.com and facebook.com  using
> acl dstdomain directive without success.
>
> Squid replied the above error:
> erickom@proxy:/etc/squid3$ sudo squid3 -z
> 2017/06/20 15:37:37| ERROR: '.google.com' is a subdomain of 'google.com'
> 2017/06/20 15:37:37| ERROR: You need to remove '.google.com' from the ACL named 'ban_list'

It SAYS what you need to do...

> erickom@proxy:/etc/squid3$ cat ban_list
> google.com

Remove .google.com

> youtube.com

Remove .youtube.com

> facebook.com

Remove .facebook.com

--
Ralf Hildebrandt                   Charite Universitätsmedizin Berlin
[hidden email]        Campus Benjamin Franklin
https://www.charite.de             Hindenburgdamm 30, 12203 Berlin
Geschäftsbereich IT, Abt. Netzwerk fon: +49-30-450.570.155
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: FATAL error while using dstdomain directive

Eric C. Kom
​Sorry for not seen​

On 20 June 2017 at 16:09, Ralf Hildebrandt <[hidden email]> wrote:
* Eric C. Kom <[hidden email]>:
> Good day Folks,
> Please I tried to block websites like youtube.com and facebook.com  using
> acl dstdomain directive without success.
>
> Squid replied the above error:
> erickom@proxy:/etc/squid3$ sudo squid3 -z
> 2017/06/20 15:37:37| ERROR: '.google.com' is a subdomain of 'google.com'
> 2017/06/20 15:37:37| ERROR: You need to remove '.google.com' from the ACL named 'ban_list'

It SAYS what you need to do...

> erickom@proxy:/etc/squid3$ cat ban_list
> google.com

Remove .google.com

> youtube.com

Remove .youtube.com

> facebook.com

Remove .facebook.com

--
Ralf Hildebrandt                   Charite Universitätsmedizin Berlin
[hidden email]        Campus Benjamin Franklin
https://www.charite.de             Hindenburgdamm 30, 12203 Berlin
Geschäftsbereich IT, Abt. Netzwerk fon: <a href="tel:%2B49-30-450.570.155" value="+4930450570155">+49-30-450.570.155
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users


_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: FATAL error while using dstdomain directive

Eric C. Kom
Sorry for not seen it.
Running fine now:
erickom@proxy:/etc/squid3$ sudo squid3 -z       
2017/06/20 16:30:15| Squid is already running!  Process ID 1584

But still the block websites are still accessible.



On 20 June 2017 at 16:24, Eric C. Kom <[hidden email]> wrote:
​Sorry for not seen​

On 20 June 2017 at 16:09, Ralf Hildebrandt <[hidden email]> wrote:
* Eric C. Kom <[hidden email]>:
> Good day Folks,
> Please I tried to block websites like youtube.com and facebook.com  using
> acl dstdomain directive without success.
>
> Squid replied the above error:
> erickom@proxy:/etc/squid3$ sudo squid3 -z
> 2017/06/20 15:37:37| ERROR: '.google.com' is a subdomain of 'google.com'
> 2017/06/20 15:37:37| ERROR: You need to remove '.google.com' from the ACL named 'ban_list'

It SAYS what you need to do...

> erickom@proxy:/etc/squid3$ cat ban_list
> google.com

Remove .google.com

> youtube.com

Remove .youtube.com

> facebook.com

Remove .facebook.com

--
Ralf Hildebrandt                   Charite Universitätsmedizin Berlin
[hidden email]        Campus Benjamin Franklin
https://www.charite.de             Hindenburgdamm 30, 12203 Berlin
Geschäftsbereich IT, Abt. Netzwerk fon: <a href="tel:%2B49-30-450.570.155" value="+4930450570155" target="_blank">+49-30-450.570.155
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users



_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: FATAL error while using dstdomain directive

Antony Stone
On Tuesday 20 June 2017 at 16:25:47, Eric C. Kom wrote:

> Sorry for not seen it.
> Running fine now:
> erickom@proxy:/etc/squid3$ sudo squid3 -z
> 2017/06/20 16:30:15| Squid is already running!  Process ID 1584
>
> But still the block websites are still accessible.

Please, either:

1. show us an example of an access log entry for a user visiting "google.com"
or "youtube.com" or "facebook.com"

or

2. tell us whether you really are trying to block "google.com" (plus the other
two) or whether you really mean to block "anything ending in .google.com"
(plus the other two).

This may help: http://wiki.squid-
cache.org/SquidFaq/SquidAcl#Squid_doesn.27t_match_my_subdomains


Antony.

> On 20 June 2017 at 16:24, Eric C. Kom <[hidden email]> wrote:
> > ​Sorry for not seen​
> >
> > On 20 June 2017 at 16:09, Ralf Hildebrandt <[hidden email]>
> >
> > wrote:
> >> * Eric C. Kom <[hidden email]>:
> >> > Good day Folks,
> >> > Please I tried to block websites like youtube.com and facebook.com
> >>
> >> using
> >>
> >> > acl dstdomain directive without success.
> >> >
> >> > Squid replied the above error:
> >> > erickom@proxy:/etc/squid3$ sudo squid3 -z
> >> > 2017/06/20 15:37:37| ERROR: '.google.com' is a subdomain of
> >> > 'google.com
> >>
> >> '
> >>
> >> > 2017/06/20 15:37:37| ERROR: You need to remove '.google.com' from the
> >>
> >> ACL named 'ban_list'
> >>
> >> It SAYS what you need to do...
> >>
> >> > erickom@proxy:/etc/squid3$ cat ban_list
> >> > google.com
> >>
> >> Remove .google.com
> >>
> >> > youtube.com
> >>
> >> Remove .youtube.com
> >>
> >> > facebook.com
> >>
> >> Remove .facebook.com
> >>
> >> --
> >> Ralf Hildebrandt                   Charite Universitätsmedizin Berlin
> >> [hidden email]        Campus Benjamin Franklin
> >> https://www.charite.de             Hindenburgdamm 30, 12203 Berlin
> >> Geschäftsbereich IT, Abt. Netzwerk fon: +49-30-450.570.155
> >> _______________________________________________
> >> squid-users mailing list
> >> [hidden email]
> >> http://lists.squid-cache.org/listinfo/squid-users

--
If the human brain were so simple that we could understand it,
we'd be so simple that we couldn't.

                                                   Please reply to the list;
                                                         please *don't* CC me.
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: FATAL error while using dstdomain directive

Matus UHLAR - fantomas
In reply to this post by Eric C. Kom
On 20.06.17 15:47, Eric C. Kom wrote:

>Squid replied the above error:
>erickom@proxy:/etc/squid3$ sudo squid3 -z
>2017/06/20 15:37:37| ERROR: '.google.com' is a subdomain of 'google.com'
>2017/06/20 15:37:37| ERROR: You need to remove '.google.com' from the ACL
>named 'ban_list'
>FATAL: Bungled /etc/squid3/squid.conf line 57: acl ban_list dstdomain
>"/etc/squid3/ban_list"
>Squid Cache (Version 3.4.8): Terminated abnormally.
>CPU Usage: 0.004 seconds = 0.004 user + 0.000 sys
>Maximum Resident Size: 37520 KB
>
>
>See below my ban_list file:
>erickom@proxy:/etc/squid3$ cat ban_list
>google.com
>.google.com
>youtube.com
>.youtube.com
>facebook.com
>.facebook.com

remove google.com, youtube.com and facebook.com from the list.
the ".google.com" applies for "google.com" alone too.
the same applies for the rest.

--
Matus UHLAR - fantomas, [hidden email] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Boost your system's speed by 500% - DEL C:\WINDOWS\*.*
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Loading...