kail linux 几种代理方式

来源:互联网 发布:软件著作权申请网址 编辑:程序博客网 时间:2024/05/24 07:08

一、apt.conf 配置

           在、/etc/apt/apt.conf  里面添加配置没有此文件则创建 添加如下  Acquire::http::Proxy "http://127.0.0.1:8087"    8087为代理端口  apt-get update 通过此代理更新


二、bash.bashrc 配置

        在 /etc/bash.bashrc  最后一行添加   export ftp_proxy="ftp://user:password@proxyIP:port"
                                                                        export http_proxy="http://user:password@proxyIP:port"
                                                                        export https_proxy="https://user:password@proxyIP:port"
                                                                        export socks_proxy="https://user:password@proxyIP:port"

指定代理类型。


三. proxychains.conf 配置

    在  /etc/proxychains.conf 将strict_chain 注释 ,选择dynamic_chain动态代理模式,将proxy_dns 注释使用本地dns解析



最后使用proxychains  .....    使用命令运行代理指令