Windows Agent Linux breaks network blockade for internet access

Source: Internet
Author: User

purpose and reason for realization: Company network security done quite in place, the use of testing and production servers to prohibit the connection of the external network. However, when installing software, Linux installation efficiency is too low, generally used in the form of RPM installation. But many RPM packages are not on the CD-ROM that comes with them. One to go online download is really too much, let a person headache. have been using the local test Linux environment after downloading the RPM package with Yumdownload. And then upload it to the production server. It was too much trouble and the whole man was going to blow it up. Just about the company has a DNS forwarding server (Windows Server R2) that can be networked. So the idea of using Windowns Agent Linux to surf the internet to implement the Yum Networking installation RPM package. 
Implementation process:
1. Download the Ccproxy software to run the installation on Wind Ser 2008.
This is an agent of the small software. It's good to use, of course, you can also use other software to achieve.

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/91/F1/wKioL1j5pDCzuluUAAU0e_veHuA139.png-wh_500x0-wm_ 3-wmp_4-s_290137311.png "title=" 1.png "alt=" Wkiol1j5pdczuluuaau0e_vehua139.png-wh_50 "/>


Set the IP Save determination for the client to be proxied. Can.

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/91/F2/wKiom1j5pOuxdC4JAABqwTMoJvE010.png "title=" 1.png "alt=" Wkiom1j5pouxdc4jaabqwtmojve010.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/91/F1/wKioL1j5pWDiykl6AABOSj13yOo043.png "style=" float : none; "title=" 1.png "alt=" Wkiol1j5pwdiykl6aabosj13yoo043.png "/>

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/91/F2/wKioL1j5pb2gd1IiAABLvtL660Y535.png "title=" 2.png "alt=" Wkiol1j5pb2gd1iiaablvtl660y535.png "/>


3. The above is a proxy server setup, very simple. Here we set up the Linux server. 
3.1: Agent-related configuration
Open/etc/profile file at the end of the join:
http_proxy=http://10.103.21.19:808
https_proxy=http://10.103.21.19:808
ftp_proxy=http://10.103.21.19:808

Export Http_proxy https_proxy ftp_proxy no_proxy
After saving, execute the command Source/etc/profile is configured to take effect.

3.2:dns configuration (to be able to resolve DNS for a public address, configure the DNS post-test method: NslookupWww.baidu. com )
Open/etc/sysconfig/network-scripts/ifcfg-eth0 join dns1= XXX.XXX.XXX.XXX
3.3: Test whether the Internet is available:

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/91/F3/wKiom1j5qE2jGtIdAACNaPHN73I111.png "style=" float : none; "title=" 1.png "alt=" Wkiom1j5qe2jgtidaacnaphn73i111.png "/>

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/91/F2/wKioL1j5qE2RARhkAABmqNr6C-A536.png "style=" float : none; "title=" 2.png "alt=" Wkiol1j5qe2rarhkaabmqnr6c-a536.png "/>

You can surf the internet and see traffic passing through the server. Configuration is complete.


This article is from "Desert Camel" blog, please make sure to keep this source http://maomaochong.blog.51cto.com/9260445/1918187

Windows Agent Linux breaks network blockade for internet access

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.