• 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

  • 相关阅读:
    多网卡环境下Eureka服务注册IP选择问题
    SpringCloud服务间调用
    Feign性能优化注意事项
    FeignClient使用
    Spring Boot优化
    nginx反向代理 强制https请求
    解决CentOS缺少共享库
    脚本加密http://www.datsi.fi.upm.es/~frosal/sources/
    tar加密
    系统用户在Samba服务器中起一个别名
  • 原文地址:https://www.cnblogs.com/luoye00/p/7792812.html
Copyright © 2020-2023  润新知