home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 June / PCOnline_06_1996.iso / software / topdown / tips / wingate / lzh / wingate.lzh / WINGATE / WG_FAQ.TXT < prev    next >
Text File  |  1996-04-18  |  12KB  |  263 lines

  1. The following are the answers to some questions I have been asked 
  2. frequently by users. I have tried to arrange them into logical groups. 
  3.  
  4.  
  5. Connections
  6.  
  7.     - Can I use WinGate on a machine between two ethernet segments?
  8.     - Can I use WinGate on a Windows95 dial-in server to allow access
  9.       to my LAN?
  10.     - Can I use WFW3.11 on my LAN?
  11.     - Can I run other protocols (i.e IPX/SPX) on my LAN as well?
  12.     - How do I set up TCP/IP on my LAN?
  13.  
  14. Can I...
  15.     - Run WinGate as a service under NT?
  16.     - Use a proxy server on my ISP?
  17.  
  18. Why Can't I
  19.     - Ping anything on the internet from my LAN?
  20.  
  21. Socket Error
  22.     - Why do I get a socket error?
  23.     - Why do I sometimes keep getting socket errors
  24.  
  25. Rules
  26.     - What are rules for
  27.     - How do they work
  28.     - How do I use them
  29.     - What rules should I set
  30.  
  31. How do I use
  32.     - Netscape
  33.     - Microsoft's Internet Explorer
  34.     - IRC
  35.     - Mail for multiple different users
  36.     - Compuserve WinCIM
  37.     - America On Line
  38.     - Socket Watch
  39.  
  40. WinGate proxy
  41.     - What is the WinGate proxy for?
  42.     - How can I use it in my programs?
  43.  
  44. Troubleshooting
  45.     - I can't connect to "gateway"
  46.     - FTP does not work under netscape or any other WWW browser
  47.  
  48. ------------------------------------------------------------------------
  49. Connections
  50.  
  51. Can I use WinGate on a machine between two ethernet segments?
  52. Yes you can. In fact, with the normal case of using WinGate between a LAN
  53. and a modem connection, you can think of the modem connection as another
  54. interface on another LAN - being the Internet. 
  55.  
  56. Can I use WinGate on a Windows95 dial-in server to allow access to my LAN?
  57. Yes you can. You can also set up two modems on this machine and allow users
  58. dialling into the dial-in server to access the Internet out through the
  59. other modem link. 
  60.  
  61. Can I use WFW3.11 on my LAN?
  62. Yes you can. You can use any operating system that supports TCP/IP. The
  63. only machine that needs to be running either Windows NT or Windows 95 is
  64. the machine that runs WinGate. 
  65.  
  66. Can I run other protocols (i.e IPX/SPX) on my LAN as well? Yes you can.
  67. The Microsoft network software supports multiple simultaneous protocols.
  68. You may find that you get better response on your LAN if you enable NetBEUI,
  69. and set it as your default protocol. The default protocol is the first
  70. protocol that Microsoft Windows networking will try to connect with
  71. (except for sockets applications, which only support TCP/IP), so it will be
  72. used for you local LAN traffic, and is a bit more efficient than TCP/IP. If
  73. you are running Novell, you will probably want to enable IPX/SPX.
  74.  
  75. How do I set up TCP/IP on my LAN?
  76. There are a number of good resources available on the Internet for this.
  77. You should look at: http://www.windows95.com/connect/lansing.html 
  78.  
  79. ------------------------------------------------------------------------
  80. Can I...
  81.  
  82. Run WinGate as a service under NT?
  83. You need to use SRVANY, which ships with the NT resource kit (available from ftp.microsoft.com) . All the documentation you need is included. If you want
  84. to configure it, you will have to enable "Allow service to interact with
  85. desktop", do your changes, and then disable again under the service control
  86. manager in control panel. 
  87.  
  88. Use a Proxy server on my ISP? Yes. What you need to do is remove the WWW
  89. Proxy in WinGate, and add a mapped link on port 80 which maps through to the
  90. proxy server on your ISP (normally on port 8080 - you should get the details
  91. about this from your ISP) 
  92.  
  93. ------------------------------------------------------------------------
  94. Why can't I...
  95.  
  96. Ping anything on the internet from my LAN
  97. OK, the reason is, because your LAN is not connected to the internet. Ping
  98. uses the ICMP protocol, which WinGate does not support - WinGate is not a
  99. router. If you could ping internet hosts, chances are you wouldn't need
  100. WinGate (except perhaps as a firewall). 
  101.  
  102. ------------------------------------------------------------------------
  103. Socket Error
  104.  
  105. Why do I get a socket error?
  106. A Socket error occurs whenever WinGate tries to do something that it cannot,
  107. whether that is due to a remote host not responding, or your link being down,
  108. or some other reason. WinGate will provide error messages that your browser
  109. and other applications can interpret - like the page you see in Netscape. 
  110.  
  111. Why do I sometimes keep getting socket errors
  112. Often when you keep getting Socket Errors in response to hitting the reload
  113. button, that is because your browser thinks that the error message sent by
  114. WinGate is the file you want, and keeps loading it out of its cache. 
  115.  
  116. ------------------------------------------------------------------------
  117. Rules
  118.  
  119. What are rules for
  120. Rules are used whenever you want to specify some aspect of how WinGate will
  121. respond to certain events. There are three types of rule you can specify. 
  122.  
  123.     - Rules for Connections to WinGate
  124.     - rules for connections that WinGate will make on a client's behalf, and
  125.     - rules relating to which URL's WinGate will allow clients to request
  126.       using the WWW Proxy. 
  127.  
  128. Using Rules you can restrict access to the Internet, on a site by site
  129. basis, or protect your internal LAN from unwanted visitors 
  130.  
  131. How do they work
  132. Rules are defined as being an action taken upon a match of a certain type
  133. with some data. The match types are either where the data being verified
  134. equals some specified filter data, or contains that filter data. Every
  135. connection in or out, and every URL is checked against the rule base. If a
  136. match is found (i.e you get a match on an hostname) then the action is
  137. performed. If no match is found, the default action is performed. 
  138.  
  139. How do I use them
  140. The first thing you need to configure are the default rules. These specify
  141. what action will be taken (allow or deny) when a request does not match
  142. any of the specific rules. 
  143.  
  144. What rules should I set
  145. Normally, by default you will set default inward connections to deny.
  146. Then you set up a rule as: allow Inward connections from host containing
  147. xxx.yyy.zzz. Where the xxx.yyy.zzz. are the first three octets of your
  148. internal LAN  This will allow only your internal LAN users to connect to
  149. the gateway. You then need to enable any specific other machines to connect
  150. to the gateway by adding specific allow rules for them (i.e remote machines
  151. that you want to be able to connect back to the gateway)  If you wish to
  152. deny your internal users access to certain hosts on the internet, you can
  153. set up deny rules for those hosts. Similarly you can deny access to URLs
  154. containing certain sequences of characters. 
  155.  
  156. ------------------------------------------------------------------------
  157. How DO I use...
  158.  
  159. All the examples here assume you have set up WinGate as per the default
  160. installation, and have a hosts file on every LAN workstation with an entry
  161. for the gateway machine called "gateway" 
  162.  
  163. Netscape
  164. In Netscape, you need to set up your preferences:proxies. You should have
  165. only the following settings:
  166.  
  167. HTTP :  gateway     port: 80
  168. SOCKS:  gateway     port: 1080
  169.  
  170. Microsoft's Internet Explorer
  171. You need to use the Internet setup in Control Panel (Under Windows 95) and
  172. put an entry in for proxy server of http://gateway  gateway:80 also works
  173. for some versions. 
  174.  
  175. IRC
  176. IRC works on port 6667. You need to configure a Mapped Link in WinGate
  177. listening on port 6667, with the remote host being the name of the IRC
  178. server you wish to connect to, on port 6667. In your IRC client program,
  179. you then set your server to be "gateway" 
  180.  
  181. Mail for multiple different users
  182. The default installation sets up a mapped link for ports 110, and 25.
  183. Port 110 is used to access your Post Office Server for downloading your
  184. mail. The default remote host will have been enabled and set as your ISP's
  185. mail host. You need to add a specific mapping (edit the Mapped link for
  186. port 110, and choose the add button) for each machine on your LAN that you
  187. wish to use a mail host other than the default one. You need to specify the
  188. IP number of the LAN workstation you wish to map, and the remote host and
  189. port you need to map the user out to. the port will normally still be
  190. port 110. 
  191.  
  192. Compuserve WinCIM
  193. WinCIM works on port 4144. You need to set up a mapped link on port 4144
  194. which maps through to the remote host compuserve.com, also on port 4144.
  195. You then need to configure WinCIM to use "gateway" as its server. 
  196.  
  197. America On Line
  198. Thanks to Dean Henderson for this:
  199.  
  200. If you use TCP/IP to connect to America Online, there is a text file
  201. called TCP.CCL in the CCL folder that contains a line with the following: 
  202.  
  203. NetConnect 1 5190 10 AmericaOnline.aol.com 
  204.  
  205. The 5190 value is the Port # and AmericaOnline.aol.com is the TCP/IP name. 
  206.  
  207. On each client system, you can change the name in the CCL file to the name
  208. of your gateway system, or add an entry to your HOSTS files having
  209. AmericaOnline.aol.com point to your gateway system. 
  210.  
  211. On the gateway system, add a Mapped Link with the Listening port set to
  212. 5190, the Remote Host set to AmericaOnline.aol.com, and the Remote Port
  213. set to 5190. 
  214.  
  215. Now you should be ready to Logon to America Online. 
  216.  
  217. Socket Watch
  218. Socket Watch uses port 37, so you need to add a mapped link through to the
  219. time server you want on port 37. Then configure SocketWatch to use the
  220. gateway as its time server. 
  221.  
  222. ------------------------------------------------------------------------
  223. WinGate proxy
  224.  
  225. What is the WinGate proxy for?
  226. The WinGate proxy was developed to allow applications developers to
  227. transparently access remote hosts using TCP/IP. In this way it is very
  228. similar to the SOCKS system. However there are a number of differences
  229. between SOCKS 4 and WinGate Proxy, notably that in the WinGate Proxy,
  230. WinGate does the name resolution for the client, whereas in SOCKS 4, the
  231. client can only request connection to an IP number, and hence requires
  232. access to a DNS server. 
  233.  
  234. How can I use it in my programs?
  235. You need to get hold of the protocol specification from me. Just email
  236. Adrien de Croy and I'll send it to you. It is very simple to implement
  237. support for WinGAte proxy in your code, and it means you can gain
  238. leverage off WinGate to a more specialised market. 
  239.  
  240. ------------------------------------------------------------------------
  241. Troubleshooting
  242.  
  243. I can't connect to "gateway"
  244. Chances are your hosts file isn't set up properly. You should note that
  245. the default installation of Windows95 does NOT include a hosts file that
  246. you can edit - you need to create one. Also, notepad does not let you
  247. save a file with no file extension. You need to rename it to hosts
  248. (with no extension) in explorer. You should check that you can ping the
  249. IP number of the gateway machine, if that works, and you can't ping
  250. "gateway", then that is a hosts file problem. 
  251.  
  252. FTP does not work under netscape or any other WWW browser You need to
  253. make sure in Netscape that the FTP proxy setting under preferences is
  254. blank - i.e you do not use a specific WinGate proxy for FTP in Netscape,
  255. you use the SOCKS server for this. Make sure you don't set the proxy for
  256. FTP to port 21 on the gateway, this FTP proxy is for FTP clients
  257. (including command line clients) only, Netscape does not understand how
  258. to talk to this proxy. 
  259.  
  260. If you are using Microsoft Internet Explorer, you will not be able to
  261. get FTP working, as MSIE does not support SOCKS. I am implementing
  262. support for FTP in the WWW Proxy server, so MSIE users will have
  263. access to FTP.