squid代理允许FTP访问设置

#  TAG: acl
#     Defining an Access List
=============================
#Default:
# acl all src all
#
#Recommended minimum configuration:
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
#
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8   # RFC1918 possible internal network
acl localnet src 172.16.0.0/12      # RFC1918 possible internal network
acl localnet src 192.168.0.0/16     # RFC1918 possible internal network
#
acl SSL_ports port 443 21             <------ put port 21 here
acl Safe_ports port 80        # http
acl Safe_ports port 21        # ftp
acl Safe_ports port 443       # https
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
 
#  TAG: http_access
#     Allowing or Denying access based on defined access lists
 
#  TAG: always_direct
#     Usage: always_direct allow|deny [!]aclname ...
#
#     Here you can use ACL elements to specify requests which should
#     ALWAYS be forwarded by Squid to the origin servers without using
#     any peers.  For example, to always directly forward requests for
#     local servers ignoring any parents or siblings you may have use
#     something like:
#
#           acl local-servers dstdomain my.domain.net
#           always_direct allow local-servers
#
#     To always forward FTP requests directly, use
#
#           acl FTP proto FTP
#           always_direct allow FTP
#
#     NOTE: There is a similar, but opposite option named
#     'never_direct'.  You need to be aware that "always_direct deny
#     foo" is NOT the same thing as "never_direct allow foo".  You
#     may need to use a deny rule to exclude a more-specific case of
#     some other rule.  Example:
#
#           acl local-external dstdomain external.foo.net
#           acl local-servers dstdomain  .foo.net
#           always_direct deny local-external
#           always_direct allow local-servers
#
#     NOTE: If your goal is to make the client forward the request
#     directly to the origin server bypassing Squid then this needs
#     to be done in the client configuration. Squid configuration
#     can only tell Squid how Squid should fetch the object.
#
#     NOTE: This directive is not related to caching. The replies
#     is cached as usual even if you use always_direct. To not cache
#     the replies see no_cache.
#
#     This option replaces some v1.1 options such as local_domain
#     and local_ip.
#
#Default:
acl FTP proto FTP
always_direct allow FTP

原文引用地址:http://www.labtestproject.com/linux_network/step_by_step_enable_ftp_on_squid_proxy_in_linux_fedora_10.html

 

转载于:https://www.cnblogs.com/luoye00/p/7792812.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值