meigea/kali-penetration-testing

centos7 使用远程windows的代理

Closed this issue · 0 comments

centos7 使用远程windows的代理

  • 服务端工具 ccproxy
  • 实际上 burp-suit 应该也可以

/etc/hosts

echo proxy=http://proxy_host:808 >> /etc/hosts

/etc/profile

  • 添加下面的内容
# add 
http_proxy=http://proxy_host:808
https_proxy=http://proxy_host:808

export http_proxy https_proxy

/etc/yum.conf

proxy=http://proxy_host:808

/etc/wgetrc

  • 被 /etc/profile 覆盖; 可以不用设置
https_proxy = http://proxy.yoyodyne.com:18023/
http_proxy = http://proxy_host:808/

Docker-proxy

创建文件夹 
mkdir /etc/systemd/system/docker.service.d
创建文件 
touch /etc/systemd/system/docker.service.d/http-proxy.conf
编辑文件 
vim /etc/systemd/system/docker.service.d/http-proxy.conf
在文件中加入以下内容: 
[Service] 
Environment="HTTP_PROXY=http://[proxy-addr]:[proxy-port]/" 
其中 proxy-addr是代理的IP地址, proxy-port 是代理的端口。
保存修改并重载daemon 
sudo systemctl daemon-reload
重启docker 
sudo systemctl restart docker
重启之后就能正常下载镜像啦~ 祝使用愉快~