Configuration with coexistence of direct access and proxy access
Summary:1. Overall idea and device connection methodBy using the two methods introduced above for configuration, both can smoothly achieve access to the Inter…
This book is available as an e-book in EPUB format
PayPal sponsors this website for any amount. I will send you an EPUB e-book via email. Please send me an email
Email: shuxueha@outlook.com
PayPal: https://paypal.me/zhipinglei
You can also scan the PayPal QR code below to sponsor
You can also purchase this book on Amazon: click to enter the Amazon official website
1. Overall idea and device connection method
By using the two methods introduced above for configuration, both can smoothly achieve access to the Internet. However, each method has its own advantages and disadvantages, and the advantages of the two methods are complementary. How can we combine the advantages of the two methods? Method three is a solution that combines both fish and bear's paw. Integrating the advantages of two methods, namely saving IP addresses and improving the efficiency of accessing the Internet through CACHE provided by proxy servers.
This scheme is used to access the Internet. The device connection method is as follows:
Install two network cards on the proxy server, both of which are connected to the switch. When setting the IP address, both network cards should have internal private addresses, but these two addresses should not belong to the same network (i.e. the network addresses of the IP addresses are different). One is used to communicate with the internal network (network card 1), and the other is used to communicate with the router (network card 2). Otherwise, the proxy cannot be implemented.
Do not install the NETBEUI protocol on the proxy server, only install the TCP/IP protocol. (Note: This step must be done, otherwise it may cause proxy server NETBIOS computer name conflicts and affect normal communication due to redundant connection lines between the proxy server and the switch.)
The router's Ethernet port is also set with an internal private address, which is located on the same network as the address of network card 2 (i.e. the network address of the IP address is the same as that of network card 2)
2. Router settings
en
config t
ip nat pool c2610 211.90.139.41 211.90.139.42 netmask 255.255.255.252
(Define an address pool c2601, which contains two free valid IP addresses for use in NAT translation)
int e0/0
ip address 192.168.1.1 255.255.255.0
ip nat inside
exit
(Set the IP address of the Ethernet port and designate it as the port for connecting to the internal network)
interface s0/0
ip address 211.90.137.25 255.255.255.252
ip nat outside
exit
(Set the IP address of the wide area network port and designate it as the port for connecting to the external network)
ip route 0.0.0.0 0.0.0.0 211.90.137.26
(Set dynamic routing)
access-list 2 permit 192.168.0.1 0.0.0.255
(Establish Access Control List)
! Dynamic NAT
!
ip nat inside source list 2 pool c2610 overload
(Establish dynamic address translation)
line console 0
exec-timeout 0 0
!
line vty 0 4
end
wr
(Save the settings made)
2. Proxy server settings
Install two network cards on the proxy server, both connected to the switch. Network card 1 has an IP address of 192.168.0.4 and does not have a gateway; Set the IP address of network card 2 to 192.168.1.2 and its gateway to 192.168.1.1 (router Ethernet port).
After setting up the network card according to the above method, install another set of proxy software. (For example: MS PROXY SERVER 2.0, WINGATE, etc., please refer to other materials for the installation and debugging methods of proxy software)
Attention: When installing proxy software (taking MS-PROXY 2.0 as an example), the address range 192.168.0.0-192.168.255.255 should be excluded when specifying the LAT table, otherwise the proxy cannot function properly.
3. Workstation settings
Under this configuration, the workstation can access the internet either through proxy settings or directly through gateway settings.
If only accessing the internet through a proxy, the setting method is exactly the same as method two.
If only accessing the internet through the gateway, it is required that the workstation must set a static IP address, which should be set to 192.168.1. X,
On the same network segment as the router's Ethernet port, set the gateway to 192.168.1.1 and set the DNS to the address provided by the access provider.
If you want both methods to coexist, you need to set two static IP addresses in TCP/IP: 192.168.0. X and 192.168.1. X, and set the gateway to 192.168.1.1, with DNS being the address provided by the access provider. When using, simply turn on or off the proxy settings in the browser or other software to switch between proxy and gateway internet access.
| High-speed VPN | Fast VPN | Preferred Accelerator VPN | Reliable VPN |
| High quality VPN | Old fashioned VPN | Stable VPN(Recommend) | Smooth VPN |

