Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-05-2003, 10:42 AM   #1
Registered: Feb 2002
Location: Italy
Distribution: Fedora Core 1, Red Hat 8, Red Hat 9, Knoppix 3.3 (debian sarge)
Posts: 97

Rep: Reputation: 15
Squid (proxy server) and FTP

Hi guys!

I'm new to Squid so forgive me if I question is too simple for you...

I need in my LAN a proxyserver to filter my users requests.
All I want is that they can access ONLY two web-site and ONE ftp.

I configured SQUID to achieve the first goal in this way:
#Recommended minimum configuration:
acl all src
acl manager proto cache_object
acl localhost src
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 631 # cups
acl Safe_ports port 777 # multiling http
acl Safe_ports port 901 # SWAT
acl purge method PURGE

# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager
# Only allow purge requests from localhost
http_access allow purge localhost
http_access deny purge
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
http_access allow localhost

acl our_network1 src
acl Sites dstdom_regex "/etc/allowed_sites.txt"
http_access allow our_network1 Sites

acl our_network2 src
#acl Sites dstdom_regex "/etc/allowed_sites.txt"
http_access allow our_network2 Sites

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

where allowed_sites.txt is

where and are respectively the name and ip address of the ftp server my users can access (in their InternetExplorer they write or

The problem is that in this way they are correctly restricted for http, BUT they have NO restriction for ftp (they can enter ANY ftp server!!!).

What's the problem?
How should I configure Squid to let my users access ONLY the ftp server ?

Thanks in advance!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
squid proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 12:25 PM
ftp server access through squid proxy not working hitesh_linux Linux - Networking 5 05-13-2010 04:27 AM
For Squid (proxy server) gurus: FTP from browser with read-write-modify permission Zingaro2002 Linux - Software 5 11-24-2003 05:56 AM
FTP Proxy useing Squid Ghost of War Linux - Networking 1 10-24-2003 12:32 AM
configuring squid for ftp proxy? sparsh Linux - Software 0 04-09-2003 09:02 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration