Toon posts:

FtP bepalen met Squid proxy-server

Pagina: 1
Acties:

Verwijderd

Topicstarter
Met de in Squid aanwezige Access Control Lists probeer ik te regelen dat er slechts vanaf enkele werkstations een FTP-verbinding naar buiten kan worden opgezet.

cl 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 777 # multiling http
acl CONNECT method CONNECT
acl lokatie-1 src 10.254.202.0/255.255.254.0
acl locaktie-2 src 10.254.3.0/255.255.255.0
acl validusers proxy_auth REQUIRED
acl ftp proto ftp


Vervolgens zien de http_access regels er alsvolgt uit:

http_access allow manager localhost
http_access allow manager cache
http_access deny manager
# 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
#
# And finally deny all other access to this proxy
http_access allow localhost
http_access allow validusers lokatie-1
http_access allow validusers lokatie-2 !ftp
http_access deny all

Vanaf lokatie-2 kan dus geen FTP-verbinding worden gestart dat werk allemaal wel. Maar hoe krijg ik het nu voor elkaar dat in lokatie-1 bv alleen vanaf werkstation 10.254.203.100 een FTP-verbinding kan worden opgezet.

Heeft iemand een idee welke regel aan de http_access rules moet worden toegevoegd??