Squid ACL based on protocol AND host?

This is a discussion on Squid ACL based on protocol AND host? within the Linux Networking forums, part of the Linux Forums category; Is there any way to create Squid ACLs that allow/deny FTP connections to a list of hosts? I am ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-10-2003
Ramon F Herrera
 
Posts: n/a
Default Squid ACL based on protocol AND host?

Is there any way to create Squid ACLs that allow/deny FTP
connections to a list of hosts?


I am looking for something like this:

acl ftp proto FTP
acl safehosts dstdomain "/some/file"
http_access allow ftp && safehosts

-Ramon
Reply With Quote
  #2 (permalink)  
Old 12-11-2003
Michael Fuhr
 
Posts: n/a
Default Re: Squid ACL based on protocol AND host?

ramon@conexus.net (Ramon F Herrera) writes:

> Is there any way to create Squid ACLs that allow/deny FTP
> connections to a list of hosts?
>
> I am looking for something like this:
>
> acl ftp proto FTP
> acl safehosts dstdomain "/some/file"
> http_access allow ftp && safehosts


You're so close....

http_access allow ftp safehosts

If you don't already have a rule that would deny FTP connections
to everywhere else, then add this after the above line:

http_access deny ftp

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:56 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0