Linux Proxy Server Configuration

Source: Internet
Author: User


Router Some features are like a proxy server, will be connected to the router LAN port of all the machine can through it has a non-flocculation access to the Internet,wan port to connect to the modem to access the Internet, my machine is connected to one of the routers, Here according to my actual situation here to configure the proxy server to implement another LAN to access the Internet.
#ifconfig eth1 up (Activate the second NIC (Eth1, the second NIC must be present) <br style=\ "\ \" \\\\ "\\\\\\\\" line-height:\\\\ "\ \" \ "color:=\" \ \ "\ \\\ "\\\\" \ "\" font-family:=\ "\" \\\\ "\\\\" \ "\" hiragino=\ "\" \\\\ "\\\\" \ \ "\" sans=\ "\" \\\\ "\\\\" \ "\" gb=\ "\ \" \ \\\ "\\\\" \ "\" white-space:=\ "\" \\\\ "\\\\" \ "\" background-color:=\ "\" \\\\ "\\\\"/\\ "\" span=\ "\" vi=\ "\" Line-height:=\ "\ \" \\\\ "\\\\" \ "\" br=\ "\ \" \ "/><span style=\\" \\\\ "\\\\\\\\" color:\\\\ "\ \" color:=\\ "\\\\ "\\\\" \ "font-family:=\\" \\\\ "\\\\" \ "hiragino=\\" \\\\ "\\\\" \ \ "sans=\\" \\\\ "\\\\" \ \ "gb=\\" \\\\ "\\\\" \ \ " White-space:=\\ "\\\\" \\\\ "\ \" background-color:=\\ "\\\\" \\\\ "\ \" device=\\ "eth1 (device name)
<span style=\\ "\\\\" \\\\\\\\ "color:\\\\" \ "color:=\\" \\\\ "\\\\" \ \ "font-family:=\\" \\\\ "\\\\" \ \ "hiragino=\\" \ \\\ "\\\\" \ "sans=\\" \\\\ "\\\\" \ \ "gb=\\" \\\\ "\\\\" \ "white-space:=\\" \\\\ "\\\\" \ \ "background-color:=\\" \\\\ "\\\ \ "\ \" ipaddr=\\ "192.168.4.1 (IP of the network card) <br style=\" \ \ "\\\\" \\\\\\\\ "line-height:\\\\" \ \ "\" color:=\ "\ \" \\\\ "\\\\" \ \ "\" font-family:=\ "\" \\\\ "\\\\" \ "\" hiragino=\ "\" \\\\ "\\\\" \ "\" sans=\ "\" \\\\ "\\\\" \ \ "\" gb=\ "\ \" \\\\ "\\\\" \ \ "\" white-space:=\ "\" \\\\ "\\\\" \ "\" background-color:=\ "\" \\\\ "\\\\"/\\ "\" span=\ "\" Netmask=\ "255.255.255.0 ( Network card mask) <span style=\\ "\\\\" \\\\\\\\ "color:\\\\" \ \ "color:=\\" \\\\ "\\\\" \ \ "font-family:=\\" \\\\ "\\\\" \ \ " Hiragino=\\ "\\\\" \\\\ "\" sans=\\ "\\\\" \\\\ "\ \" gb=\\ "\\\\" \\\\ "\ \" white-space:=\\ "\\\\" \\\\ "\ \" Background-color : =\\ "\\\\" \\\\ "\ \" gateway=\\ "192.168.4.1 (Gateway)
#ping 192.168.4.2 (by eth1 to verify that the machine communicates with the 192.168.4 segment, you can change a machine in the. 5 segment to 192.168.4.2 (. 4 segment))
cache_effective_user Squid (remove comment, modify base value for squid user) <br style=\ "\ \" \\\\ "\\\\\\\\" line-height:\\\\ "\ \" \ "Color:=\" \ \ "\\\\" \\\\ "\" \ "font-family:=\" \ "\\\\" \\\\ "\ \" "Hiragino=\" \ "\\\\" \\\\ "\" \ "sans=\" \ "\\\\" \\\\ "\ \" \ "Gb=\" \ \ "\\\\" \\\\ "\" \ "white-space:=\" \ "\\\\" \\\\ "\ \" "Background-color:=\" \ "\\\\" \\\\ "/\\" \ "span=\" \ "http_access =\ "\" allow=\ "\" line-height:=\ "\" \\\\ "\\\\" \ \ "\" br=\ "\ \" \ "/> If some companies have special needs for proxy servers, some cases require a proxy server to host some connection requests. For example, a company headquarters, the need for agents to connect the company's remote room ERP services, through the agent, and access to the Internet is not required, but a company in the local city also has a division between B,a and B is through the VPN interconnection, in order to facilitate the diagram, a company in the headquarters to establish an agent for internal personnel, while this proxy server , also carries the B Division access request, because the VPN between A and b often port, very unstable, this will go to the B Division, unable to connect to the proxy server, resulting in division B, the interruption of the ERP operation. But we can take a solution to this problem. In the B division to establish an agent, let B division through the new agent training class company Room ERP server, at the same time can be between A and B through VPN backup redundancy. This can not only resolve VPN leased line instability resulting in B unreachable, there can be in the VPN normal situation, B division This proxy server down, go to a headquarters proxy server connection ERP. This can solve the VPN instability, but also can be redundant backup.

Linux Proxy Server Configuration

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.