服务器搭建代理ip

openssl
    判断
        openssl version -a
    安装
        yum install openssl
squid
    yum install -y squid*
net-tools
    yum install net-tools
squid.conf
    修改端口
    开发防火墙
        firewall-cmd –zone=public –add-port=1234/tcp –permanent
        firewall-cmd –reload
    本机代理访问
        curl -x 127.0.0.1:6128 www.baidu.com
    配置所有人都能访问配置在http fllow
        acl client src 0.0.0.0/0
        http_access allow client
    配置账号和密码,不然所有人都能访问
        httpd,Apache的主程序,生成用户和密码
            是否安装
                rpm -qa httpd
            安装
                yum install httpd
            生成用户和密码
                htpasswd -c /etc/squid/passwd guozh
            配置用户

            auth_param basic program /usr/lib64/squid/basic_ncsa_auth /etc/squid/passwd
            auth_param basic children 5
            auth_param basic realm guozh's squid server
            auth_param basic credentialsttl 2 hours
            acl myacl proxy_auth REQUIRED
            http_access allow myacl

    systemctl restart squid
    dns_nameservers 114.114.114.114 223.5.5.5 8.8.8.8
上一篇:BUUCTF reverse [UTCTF2020]basic-re


下一篇:Spring--1--basic