Status so far:
We know that WGIC itself is operational because you can connect Trillian and a few other applications. We know that DNS is functional because without that no applications would be able to resolve any names. What we are seeing problems with are the connection to websites, so that would be port 80 related.
For these tests it would be easier if you can see the client and server's screens at the same time and work with them simultaneously.
First test case - Server verification
Depending on the OS on the Server it is possible that IIS might already be running and started on it. (It could potentially be another service that might already be using port 80). So, from a command prompt run the following:
Command #1 wrote:netstat -ano | more
This will give you a list of all the ports in use, where they are connected to, what the status is and which process is using which port. Look for any entry which references TCP port 80, this could be from a 0.0.0.0 IP (Expected). If that is the case you're experiencing a port conflict. Open TaskManager and check the PID you can see in netstat to the one in TaskManager's Process Explorer to get an idea of which process it is. This might help narrow down where (if) the conflict exists.
Remove the conflict and then try again.
Second test case - NATFirst, on the WinGate Server make sure that your adapters are marked correctly. This is required for NAT. You can find the adapter settings in GateKeeper, on the "Networking" pane.
The network adapter / device that connects to the internet should be marked as "External", while the network adapter / device that connects you to your Local Area Network must be marked as "Internal". If either of these are not correct, double click the adapter to enter it's properties and override the adapter useage to the correct value. Note, the adapter settings determine what security actions apply to it - so always be sure that your external adapter is external as that determines which firewall rules are applied.
Then, on the "Services" tab in GateKeeper go into the "WWW Proxy Service" settings. Switch to the "Sessions" tab and untick the Intercept option. For now, we want pure NAT which is not being intercepted by the "WWW Proxy Service". Click "OK" once you've made those changes.
Find a machine you have NOT installed the WinGate Internet Client on. Check that this machine has a default gateway and DNS Server that points it through the WinGate server. You can do this by running the following command from a command line.
Command #2 wrote:ipconfig /all
This will tell you what the TCP/IP properties of your adapters are. Find the one that connects the machine to the local area network and check the settings which looks like:
Buttercup's Settings wrote: Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.60
DNS Servers . . . . . . . . . . . : 192.168.0.60
In this case, the Default Gateway and DNS Server of this machine is set to the internal IP of the WinGate Server (192.168.0.60). Yours should be set to the internal (Private side network card) IP of your WinGate server. That should be the case, but it's worth double checking that. Now, open your browser and check that the following are
NOT true.
- It is not configured for proxy access. In Internet Explorer this is under the "Connections" page, under "LAN Settings"
- It is not configured to automatically detect proxy settings. In Internet Explorer it is on the same screen as the proxy settings.
Then we know that your machine is definately not using the WinGate Internet Client and we know that it is pointing at the WinGate server and that the WinGate server is properly aware of which adapters are to be used for which purposes.
In normal cases this means that WinGate will now NAT the traffic. More accurately, WinGate's Extended Networking Services will now NAT the traffic out to the Internet for you.
So, open a browser and check if you have access. You should see a session in GateKeeper on the "Activity" panel which indicates that traffic is flowing through. If you right-click on the session it should indicate on one of the menu items what session type it is and that should show clearly that it is NATted / handled by the WinGate driver. (As opposed to being handled by TCP Link or WWW Proxy Service, etc.)
If this works, you can go back into the "WWW Proxy Service" properties and turn Intercepts back on. Then, try it again.
Third test case - direct proxy connectionThis is perhaps the easiest test case. Open your browser and go back to the proxy settings. In Internet Explorer this is on the "Connections" page in Properties. I'm going to base this example on Internet Explorer, as I'm unsure of which browser you use/prefer.
1. Click "Tools" in the menu bar
2. Select "Internet Options" from the menu.
3. Switch to the "Connections" tab.
4. Click the "LAN Settings" buttons.
5. Ensure that "Automatically detect proxy settings" is unticked.
6. Ensure that "Use automatic configuration script" is unticked.
7. Tick "Use a proxy server for your LAN".
8. In the "Address" field, enter the private IP address of your WinGate server. In my test case I would enter "192.168.0.60".
9. In the "Port" field, enter the port your WWW Proxy Service is listening on. In a default installation this will be port 80.
11. You will return to the "Internet Options" main screen. Click "OK" again.
You should now be back on the main window of Internet Explorer. Try to surf to a web-site now and monitor the activity on the WinGate Server. In this case, if you right click on the session it should show "WWW Proxy Service".
If you are unable to establish a connection in this stage, it means WinGate is not listening on port 80 (Or something else has prevented WinGate from listening on port 80). In that case you need to (a) check the "Binding Policies" on the Bindings tab in the "WWW Proxy Service" to ensure that there is a policy that will force WinGate to listen on port 80 on the internal (Private) IP range and that (b) no other application is conflicting by also listening on port 80.
Summary:
That should give you a few detailed test cases to run through.