Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

Squid ACL based on protocol AND host?

Reply
 
Thread Tools Display Modes
  #1  
Old 12-10-2003, 10:58 AM
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


Ramon F Herrera
Reply With Quote
  #2  
Old 12-11-2003, 02:16 AM
Michael Fuhr
Guest
 
Posts: n/a
Default Re: Squid ACL based on protocol AND host?

(E-Mail Removed) (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

Tags
acl, based, host, protocol, squid

Thread Tools
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 On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 03:46 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.