New assigned CentOS run in the network environment, unable to connect to the Internet, in order to be able to use Yum to deploy the OpenVAS tool, you need to set up an agent on the intranet under a Windows host, as a proxy server to make the virtual machine online.
The proxy server chooses Ccproxy, downloads and installs the Ccproxy, configures the protocol to be proxied, and selects the IP card that can be linked to the network
In the lower local LAN IP Select the address of the network card that can communicate with the CentOS virtual machine, click OK
Account management According to individual needs to configure, I choose to allow all (recommended for the virtual machine to configure the account, easy to debug and monitor later)
1. Configuring the global agent in CentOS
1 vim/etc/profile
Export http_proxy="http://202.169.100.196:8089"export https_proxy=" http://202.169.100.196:8089 " export Ftp_proxy=$http _proxy#export rsync_proxy="202.169.100.196:3128 "
1 source/etc/profile
Attention:
1, after the configuration needs to use the source command to make it effective, if still not, need reboot restart
2, Ccproxy only support the above protocol, for the last rsync protocol is not supported, need to configure Squid Proxy service, followed by the use of Squid Proxy http and rsync summary
2. Configure Yum Agent
1 vim/etc/yum.conf2# Add 3 proxy=http://202.169.100.196:8089 to the config file
3. Configure Wget Agent
1 vim/etc/wgetrc
Http_proxy = http://202.169.100.196:8089= http://202.169.100.196:8089= http://202.169.100.196:8089
Test:
1 curl-k https://www.baidu.com2 wget https://www.baidu.com
Solve the CentOS intranet machine to access the network through a hypothetical proxy under Windows