虚拟机使用宿主机全局代理

1. 配置主机代理

虚拟机使用宿主机全局代理_第1张图片
虚拟机使用宿主机全局代理_第2张图片

2. 虚拟机配置

虚拟机按桥接或者NAT按理论来说都是可以的

安装 proxychains4 代管代理设置

$ git clone https://github.com/rofl0r/proxychains-ng.git
$ yum install -y gcc automake autoconf libtool make
$ cd proxychains-ng
$ ./configure
$ make && sudo make install
$ cp ./src/proxychains.conf /etc/proxychains.conf
$ vim /etc/proxychains.conf
socks5 宿主机ip 端口

3. 测试

$ curl google.com
$ proxychins4 curl google.com

虚拟机使用宿主机全局代理_第3张图片

你可能感兴趣的:(日常,vmware,运维,centos)