You are here:Home > Best VPN > Routing issues with proxy servers

Routing issues with proxy servers

Summary:In the process of building and developing campus network functions, I encountered many problems. Now, I am writing down one of the problems I encounte…
horizonVPN Official website sandVPN Official website VPNhood Official website hailianVPN Official website
GoduckVPN Official website Fast Wind VPN Official website Fast Orange VPN Official website(Recommend) NetShekanVPN Official website

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

In the process of building and developing campus network functions, I encountered many problems. Now, I am writing down one of the problems I encountered, hoping to inspire everyone.

Question background

Our school's computer network is shown in the diagram. For the convenience of management, we have configured a server to provide DHCP services (the school network IP address uses the 192.168.4. X network segment, where 192.168.4.1~192.168.4.10 and 192.168.4.250 are reserved for several servers to use). In addition to accessing school resource websites, teacher computers can also access the Internet through proxy servers.

The proxy server uses Windows 98+WinGate and is equipped with two network cards, one of which is directly connected to the campus network center switch (IP address: 192.168.4.9, subnet mask: 255.255.255.0, gateway: none). The other network card is connected to the ISP (IP address: 10.100.37.8, subnet mask: 255.255.255.0, gateway: 10.100.37.1, DNS address: 211.167.143.2, provided by the ISP). Fiber optic access to campus, apply for broadband internet access from ISP.

Computer Network Diagram

Originally, the online classroom consisted of one server (Windows NT Server 4.0), one teacher computer, and sixty student computers (Windows 98), mainly used for teaching "information technology subjects" and not connected to the campus network. In order to better utilize the role of the online classroom, we have decided to connect it to the campus network, so that it can also access the school resource website and access the Internet through a proxy server.

Network Classroom Server Settings

In order to properly isolate the computers in the online classroom from those in the campus network, we have designated the computers in the online classroom as IP addresses in the 192.168.0. X network segment. Reuse the multi protocol routing function of the network classroom server to achieve interconnection and communication between the network classroom and the campus network.

The steps to set the network classroom server (Windows NT Server 4.0) as a router are as follows:

1. Install the second network card: Select "Start ->Settings ->Control Panel ->Network", choose "Adapter ->Add ->Select Adapter" dialog box; Click on the "Network Card" list to select the appropriate network card or follow the prompts to complete the installation of the second network card from "Install from Disk". Note that its IRQ value and I/O address settings should not conflict with other devices.

2. Configure TCP/IP protocol: Return to "Network → Protocol → TCP/IP Communication Protocol → Properties", the TCP/IP protocol settings dialog box appears, click the "IP" tab, and set the IP addresses of the two network cards.

The IP address of the first network card (connected to the network classroom) is set to 192.168.0.1, the subnet mask is 255.255.255.0, and the gateway is set to 192.168.0.1. The IP address of the second network card (connected to the campus network) is set to 192.168.4.250, the subnet mask is 255.255.255.0, and the gateway is 192.168.4.250. The IP addresses of gateways all point to their own IP addresses.

3. Enable IP forwarding: After setting up the two network cards, use "Start → Settings → Control Panel → Network → Services → Add → Internet Protocol RIP", install "Internet Protocol RIP", and select "Enable IP forwarding" from the "Routing" tab in the TCP/IP protocol properties.

Teacher machine and student machine settings

The teacher and student machines in the online classroom are configured as follows, hoping to access the school website and the Internet through the routing function of the server on the basis of resource sharing within the original online classroom.

1. Configure network: After correctly installing the network card, select "Start ->Settings ->Control Panel ->Network", and add "Microsoft Network Users", "DLEUI, TCP/IP Protocol", "File and Printer Sharing on Microsoft Network", etc. in the "Network" dialog box that appears; And make appropriate settings for computer names and workgroups. For the convenience of resource sharing, workgroups can be set to be the same, but computer names cannot be duplicated.

2. Configure TCP/IP protocol: Select "TCP/IP", click the [Properties] button, and in the "TCP/IP" properties dialog box that appears, select "Specify IP Address" and fill in the IP address as 192.168.0. X (X is 2-254, but cannot be duplicated for each machine), subnet mask as 255.255.255.0, set the gateway as 192.168.0.1, and DNS (Campus Network Internal DNS) address as 192.168.4.1.

3. Set up IE browser: right-click on the IE browser icon on the desktop, select "Properties ->Connections ->LAN Settings", in the proxy server settings of the opened "LAN Settings" window, select the "Use Proxy Server" option, and enter the IP address of the proxy server: 192.168.4.9, port: 80; And select the option "Do not use a proxy server for local addresses", click the [Advanced] button, and in the "Do not use a proxy server for addresses starting with the following" section, enter "192.168.4. X" (to make the above settings for accessing the school's internal website).

Problems and Solutions in Testing

After the above settings, we used the network connectivity test command "ping" on the student machine for testing:

Ping 192.168.0.1 (192.168.0.1 is the IP address of the network classroom server connected to the local network card)

Ping 192.168.4.1 is not working (192.168.4.1 is the IP address of a site in the campus network)

Ping 192.168.4.9 is not working (192.168.4.9 is the IP address of the campus network proxy server)

Obviously, student computers cannot access the school website or the Internet.

We analyzed the routing tables of several visited school network servers (operating system Windows 2000) and proxy servers using the route display command "Route Print" and found that there was no routing information pointing to the network classroom. After repeated experiments and comparisons, we finally used the command on the school network server and proxy server:

route -p add 192.168.0.0 mask 255.255.255.0 192.168.4.250

Use this method to add a routing information pointing to the network classroom in its routing table.

Of course, if the central switch in your campus network has routing functionality, commonly known as a layer three switch, do not do so!


High-speed VPN Fast VPN Preferred Accelerator VPN Reliable VPN
High quality VPN Old fashioned VPN Stable VPN(Recommend) Smooth VPN
Share with Friends: