LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-05-2003, 09:42 AM   #1
Zingaro2002
Member
 
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 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
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
acl CONNECT method CONNECT


# 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
#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#
http_access allow localhost

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

acl our_network2 src 192.168.9.1/24
#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

www.firstsite.com
www.secondsite.com
www.ftpsite.com
80.xx.zz.33
85.vv.hh.22
92.aa.bb.11

where www.ftpsite.com and 92.aa.bb.11 are respectively the name and ip address of the ftp server my users can access (in their InternetExplorer they write ftp://www.ftpsite.com/directoryname or ftp://92.aa.bb.11/directoryname).

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 ftp://www.ftpsite.com/directoryname ?

Thanks in advance!
 
  


Reply


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 11:25 AM
ftp server access through squid proxy not working hitesh_linux Linux - Networking 5 05-13-2010 03:27 AM
For Squid (proxy server) gurus: FTP from browser with read-write-modify permission Zingaro2002 Linux - Software 5 11-24-2003 04:56 AM
FTP Proxy useing Squid Ghost of War Linux - Networking 1 10-23-2003 11:32 PM
configuring squid for ftp proxy? sparsh Linux - Software 0 04-09-2003 08:02 AM


All times are GMT -5. The time now is 06:06 AM.

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