Solve the CentOS intranet machine to access the network through a hypothetical proxy under Windows

Source: Internet
Author: User
Tags rsync squid proxy

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.