Routers Some features are like a proxy server, and all the machines that connect to the LAN port of the router can access the Internet through it. Wan Port is connected to the modem to access the Internet, my machine is also connected to one of the routers, here according to my actual situation to configure the proxy server, to implement another LAN to access internet.
Ip address : 192.168.5.3 (set host IP)
#ifconfig eth1 up (Activates the second NIC (Eth1, the second NIC must be present)
<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 network card)
<span style=\ "\ \" \\\ \ "color:\\" \ "color:=\" \ \ "\" \ "font-family:=\" \ "\" \ "hiragino=\" \ \ \ \ "sans=\" \ \ \ "\" gb=\ "\ \" \ " White-space:=\ "\ \" \ "\" background-color:=\ "\ \" \ "gateway=\" 192.168.4.1 (Gateway)
#ping #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))
<span style=\ "\ \" \\\\ "color:\\" \ "color:=\" \ \ \ "\" font-family:=\ "\ \ \" \ "hiragino=\" \ \ \ "\" sans=\ "\ \ \" \ " Gb=\ "\ \" \ "\" white-space:=\ "\ \" \ "background-color:=\" \ \ "\" cache_mgr=\ "\" email=\ "[email protected] [email protected][/email] (remove the comment, change the value to the Linux administrator's mailbox, so that the client access to the Internet error, you can email this mailbox to explain the problem)
Cache_effective_user Squid (Remove comments, modify base value for squid users)
If some companies have special requirements for proxy servers, there are cases where a proxy server is required 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.
This article is from the "Xspjcxx" blog, make sure to keep this source http://xspjcxx.blog.51cto.com/8768190/1611553
Linux Proxy Server Configuration