Administering Proxy Clients - pearsoncmg.com

28
This chapter is focused on the Microsoft Proxy client service, which includes the WinSock Proxy (WSP), Web Proxy, and Socks Proxy clients. We’ll discuss client installation and provide a short review of what to check if something goes wrong. Client settings can be modified during the client or server setup or by using the Internet Ser- vice Manager (ISM) or Microsoft Management Console (MMC) on the Proxy Server. We’ll dis- cuss client setup, examine the web proxy client applications, Internet Explorer and Netscape web browser clients, and the configuration of SOCKS Proxy clients on other operating systems such as Macintosh and UNIX computers. JavaScript and INS files are discussed using an example, and the chapter finishes with some tips on what items you might need to edit in the proxy client configura- tion file and how to do so. By the end of this chapter you will be able to: • Determine which clients require which proxy services E I G H T Administering Proxy Clients Chapter Syllabus MCSE 8.1 WinSock Proxy Client Installation and Configuration MCSE 8.2 Configuring a Browser with Scripting MCSE 8.3 Proxy Client and IPX-IP Gateway Support MCSE 8.4 Proxy Client Connectivity, Permissions, and Configuration Parameters 207 ch08.qxd 9/15/99 11:45 AM Page 207

Transcript of Administering Proxy Clients - pearsoncmg.com

Page 1: Administering Proxy Clients - pearsoncmg.com

This chapter is focused on the Microsoft Proxyclient service, which includes the WinSock Proxy(WSP), Web Proxy, and Socks Proxy clients.We’ll discuss client installation and provide ashort review of what to check if something goeswrong. Client settings can be modified during theclient or server setup or by using the Internet Ser-vice Manager (ISM) or Microsoft ManagementConsole (MMC) on the Proxy Server. We’ll dis-cuss client setup, examine the web proxy clientapplications, Internet Explorer and Netscape webbrowser clients, and the configuration of SOCKSProxy clients on other operating systems such asMacintosh and UNIX computers. JavaScript andINS files are discussed using an example, and thechapter finishes with some tips on what items youmight need to edit in the proxy client configura-tion file and how to do so.

By the end of this chapter you will be able to:

• Determine which clients require whichproxy services

E I G H T

AdministeringProxy Clients

▲ Chapter Syllabus

MCSE 8.1 WinSock ProxyClient Installationand Configuration

MCSE 8.2 Configuring aBrowser withScripting

MCSE 8.3 Proxy Client andIPX-IP GatewaySupport

MCSE 8.4 Proxy ClientConnectivity,Permissions, andConfigurationParameters

207

ch08.qxd 9/15/99 11:45 AM Page 207

Page 2: Administering Proxy Clients - pearsoncmg.com

• Configure clients to use the Proxy Server services

• Configure Proxy Server Clients on an IPX-only network

• Understand the Java Script necessary to configure a Web browser

• Modify the Client Configuration in Mspclnt.ini to change settings

MCSE 8.1 WinSock Proxy Client Installation and Configuration

In Chapter 4, “Installing Proxy Server,” we pointed out that the Proxy ServerSetup program creates the Msp\Clients folder and shares it as mspclnt.The share permissions are set to Everyone–Read by default. Inside the msp-clnt share, the folders containing client-specific files await your installation.It is the server installation that creates the share; once it is available, youmust next install the client to any of the client machines in the environment.To use proxy services, set up the client computer by using a client Setup pro-gram, by using a Web browser, or by running unattended client Setup usingMicrosoft Systems Management Server. The WinSock Proxy service pro-vides secure, transparent connectivity to Internet resources for client appli-cations that use the Windows Sockets API such as: RealPlayer for streamingreal-time audio and video, VDOLive for streaming real-time video, SMTPmail readers for Internet mail, NNTP news readers for Internet newsgroups,and IRC clients for Internet chat sessions.

The WinSock Proxy (WSP) client setup configures a Windows clientcomputer to be a client of the WSP service and makes several additionalchanges to the client computer:

• The winsock.dll file is replaced with the Remote Winsock for theWSP client. The original winsock.dll is renamed to winsock.dlx.

• The Control Panel is updated with the WSP client applet.

• The Local Address Table (LAT) information that is contained in themsplat.txt file is copied to the client. The client regularly updatesthis file to keep the LAT information current. You can also have a sepa-rate local configuration that differs from that of the server if needed.

• The mspclnt.ini file is copied to the client; it contains configurationsettings for Proxy client applications.

Let’s review how to set up the client computer with the WinSock Proxyclient setup program. Setting up the WSP client requires you to: connect tothe mspclnt share and launch setup.exe, which is the client setup program:

setup [/r] [/u] [/q[1, t]]

Appropriate switches are described in Table 8.1.

208 Chapter 8 • Administering Proxy Clients

ch08.qxd 9/15/99 11:45 AM Page 208

Page 3: Administering Proxy Clients - pearsoncmg.com

During a silent installation of Proxy client software, the setup programlooks for a file named proxy.ini in the client distribution shared folder.The client proxy.ini file has a single section and entry as follows:

[Proxy Setup Install]

Install Dir=C:\Mspclnt

This entry is used only for the silent installation of Proxy client andspecifies the folder where the proxy client files must be installed. Theproxy.ini file has no effect on the standard (not quiet) Proxy client setup.If you are installing the proxy client on a dual-boot computer, you will needto remember to run the client setup twice. Each operating system needs tohave the proxy client installed, and on each subsequent install after the firstyou will need to specify a different client installation directory.

The configuration of a WSP client means that any Windows Sockets pro-gram is able to transparently use the WSP service. Programs that may need touse this service might include mail or news programs, or real audio. As indi-cated earlier in the book, you can also install the Proxy Client software using aWeb browser. This is a very straightforward task. All you do is connect to theinstallation page on the server by typing http://proxyname/Msproxy,where proxyname is the name of the server computer. To complete the instal-lation, simply follow the on-screen instructions.

The Microsoft Proxy Server client Setup program creates a log file eachtime the Proxy Client software is installed, and it is overwritten with eachsubsequent installation of the client software. The log is written to the

8.1 WinSock Proxy Client Installation and Configuration 209

Table 8.1 Switches For WinSock Proxy Client Setup

Switch Description

/r Reinstalls Proxy client software (cannot be used with 16-bit clients)/u Uninstalls the WinSock Proxy client application but leaves shared components (cannot be

used with 16-bit clients)/q Runs client Setup in quiet mode. Only progress windows are displayed on the screen, but

setup does not prompt the user to approve or modify installation settings./q1 Same as the /q option, but also hides the Setup Completion dialog box. /qt Same as the /q option, but also hides the progress windows and the Setup Completion dia-

log box. (This option is not available for 16-bit clients.)

You should run the client setup program from the mspclnt share, notfrom the Proxy Server CD-ROM. This is because the setup programcopies files from the server to the client that were modified by the ProxyServer installation. These files will be discussed later in the chapter.

ch08.qxd 9/15/99 11:45 AM Page 209

Page 4: Administering Proxy Clients - pearsoncmg.com

C:\Mpcsetup.log location. If you run into problems with the setup youcan check the log file by using any text editor.

Study Break

Using a Production Network

If you are using a production network for your hands-on training, be sure to discuss the followingactivities with your network administrator before proceeding. Installation of the Proxy Clientchanges the network environment for the machine being installed. Using the steps outlined in Chap-ter 4, you must have already installed a Proxy Server on another machine in your network. Oncethe new Proxy Server is operating, refer to the steps in this section and install the Proxy Client.

1. Using the Windows Explorer (on Microsoft Windows 95/98) or the Windows NT Explorer(on a Microsoft Windows NT machine) connect to the MSPCLNT share point on the Mi-crosoft Proxy Server.• Alternatively, you can always connect a drive by launching a NET USE command from a

command prompt as follows: net use x:\\proxyserver\mspclnt. • (HINT: the X: drive can represent any available drive letter.) • When the drive is mapped, simply enter x: at the command prompt and you will be

using the connected drive.2. Once the connection is made, select the SETUP.EXE program in the MSPCLNT share. Do not

change the directory to the I386 and use SETUP1.exe, as you will get a message returningyou to the MSPCLNT share anyway. NOTE: If the proxy client is already loaded to the ma-chine on which you’re conducting the installation, you’ll be given the additional options of:Add/Remove, Reinstall, or Remove All.

3. If this is a first time installation, you will be taken to a licensing agreement and asked forthe location where the proxy files are to be installed. You will then be given the option toselect installation. The entire installation takes only a couple of minutes.

4. At the end of the installation you will be prompted to reboot the machine.5. Experiment by opening your MSPLAT.TXT file and the MSPCLNT.INI file. What

is there that is of interest? Can you identify the information in the LAT?

Local Address Table Consideration

Local Address Table (LAT) entries are copied to the client in a file calledMsplat.txt and located in the \Mspclnt folder. This file contains infor-mation about what IP address ranges are “known” and is regularly updatedfrom the server. If the information on the server is incorrect, the client’sMsplat.txt file can remain incorrect even after you have made manual

210 Chapter 8 • Administering Proxy Clients

ch08.qxd 9/15/99 11:45 AM Page 210

Page 5: Administering Proxy Clients - pearsoncmg.com

changes. The reason this is important is because each time a Windows Sock-ets application on the client tries to make a connection to an IP address, theLAT is used to determine if the address is internal or external. As you canimagine, it is possible for the LAT on the server to be set up incorrectly.Since the server file is used as the source for the copy made to the client, youcan end up with your manual changes being overwritten with incorrect data.To get around this problem you can simply create another file called Lo-callat.txt. The client uses both the Msplat.txt and Locallat.txt todistinguish Internet addresses from local network addresses. In all cases youshould carefully review the server LAT to ensure it is set up correctly.

WSP Configuration Considerations

Remember that if you update your operating system with a service pack, youwill need to perform a reinstallation of the WSP client software. The updatewith a service pack or any other software that overwrites the Windows Sock-ets DLL will need to see the reinstallation of the WSP client software.

A reboot is required each time you reinstall the WSP client softwareand each time the software is enabled or disabled. You need to perform thisreboot for the changes to become effective. HINT: Do not try this on aserver in the middle of the day with multiple users attached and using sharedfiles.

The user may be prompted to log on a second time with a domain cre-dentials dialog box if the WSP client software is on a desktop that is capableof using 16 bit applications that conform to the Windows Sockets standard.

Manually Uninstalling the WSP Client

Say you have a machine that is about to be taken out of the proxy environ-ment and you want to remove the WSP client. You should always use theSetup program to run uninstall or select Uninstall on the program menubar to remove the client before you perform a manual uninstall. In the casewhere this is not possible due to file corruption or other error, you can man-ually uninstall the WSP Client by following the steps that follow below. Thecontrol panel icon will also be removed and the machine will be restored toits original non-proxy functionality.

• Delete c:\mpcsetup.log

• Delete the c:\mspclnt directory and all subdirectories (This will re-move all files)

• Delete wsock32.dll. If using Win95 also delete winsock32.dll

8.1 WinSock Proxy Client Installation and Configuration 211

ch08.qxd 9/15/99 11:45 AM Page 211

Page 6: Administering Proxy Clients - pearsoncmg.com

• Rename the rws.dll back to winsock.dll

• Rename the rws32.dll back to wsock32.dll (Another way to do thisis to copy them from another machine that is non-proxy)

• Remove all proxy entries in the system.ini file

• Remove c:\windows\system\wspcpl32.cpl (This is what removesthe icon in Control Panel)

• Reboot the computer and test it

Using a Mail Client with WSP

In the case where you want to use your mail client in a Proxy Server environ-ment, the first step is to prove that the WSP client functions correctly. Oneway to accomplish this is to telnet to your server and test. To telnet to a mailserver, you first get the IP address of your SMTP server and then start a tel-net session using port 25. The exact configuration information needed tocomplete the telnet session will either be the fully qualified domain name(e.g., mydiv.mycompany.com) or IP address and account information suchas user ID and password. After you have checked that you can telnet to theSMTP server, check the client to ensure it is correctly configured. Checkwhether the client is disabled in the mspclnt.ini. Outlook and Exchangecan both be disabled in the mspclnt.ini with the following settings:

[mapisp32]

Disable=1

[exchng32]

Disable=1

[outlook]

Disable=1

When using Outlook or Exchange, be sure that all of the entries marked“Disable=” are set to Disable=0.

When working with Netscape Mail, be certain that the Socks entry inthe browser’s settings is blank. Having a setting for Socks Proxy will causethe mail program to work incorrectly with the WSP client. Typically, theerror message that appears in this situation is: “Host cannot be found.”

Web Proxy Client Installation and Configuration

Once you have verified proper connectivity between the client and server,and correctly set permissions, you will need to configure your client com-puters to use the Proxy Server. Although it is possible that either the WSP orSocks Proxy client could be used to browse the web, the Web Proxy client

212 Chapter 8 • Administering Proxy Clients

ch08.qxd 9/15/99 11:45 AM Page 212

Page 7: Administering Proxy Clients - pearsoncmg.com

permits this with nearly all CERN compliant browsers on just about anyplatform. Using the Web Proxy service is a big advantage as browsers aresimple to install and maintain. Internet Explorer, Netscape Navigator, andother browsers now exist for many operating systems. Browser availabilitynow provides for near universal support regardless of platform. Protocolssupported by the Web Proxy service are: HTTP, HTTPS, FTP, and GO-PHER. Although the Web Proxy service does not need extra or special clientsoftware, it will not work if the browser is not correctly configured for usewith Proxy Server. One item of interest is that there is no need to have DNSset up for the web proxy clients, as the Proxy Server will provide name reso-lution in all cases.

8.1 WinSock Proxy Client Installation and Configuration 213

If you wish to use the Round Robin features of DNS to balance access tomultiple Proxy Servers (as discussed in Chapter 7), you will need to con-figure your Proxy Clients to be clients of a DNS Server on the internalnetwork.

Setting up the Web Proxy Client is as simple as installing your chosenbrowser. Be sure to follow the recommended installation instructions pro-vided with the browser. Next, we look at the browser configuration a littlecloser, but keep in mind that we are using the Web browser configurationdialog box. To get there you usually need to find the browser’s options orsettings menu.

Web Proxy Client Using Internet Explorer 4.0 (most versions similar)

To configure the Internet Explorer, open the explorer and select View|In-ternet Options. Click on the Connection tab to reveal the dialog shownin Figure 8.1. Once at the properties you will find the connection tab whereyou will see three boxes: Connection, Proxy Server, and AutomaticConfiguration.

If you decide to configure a browser which operates on the Proxy Servercomputer itself as a Web Proxy client, you will need to use the IP ad-dress of the Proxy Server computer’s internal network interface in thefollowing steps. You won’t be able to use the Proxy Server Computer’sDNS or NetBIOS name. This is because when you use the computername, the IP address returned during the name resolution process maybe the external interface, which will be filtered by the LAT.

ch08.qxd 9/15/99 11:45 AM Page 213

Page 8: Administering Proxy Clients - pearsoncmg.com

For use on a LAN that has a proxy server, select Connect to the In-ternet using a local area network. In the area for Proxy Servercheck the box marked: Access the Internet using a proxy server.Next, in the area for the address, type either the IP address or the name ofthe Proxy Server and make sure you put the port number in. The correct ad-dress information will be the IP address, the DNS name, or the NetBIOScomputer name (if it is a Windows machine).

The correct port number will be 80 for standard web servers and thismust coincide with the settings used in the Permissions tab of the WebProxy Service Properties dialog box. Be careful — sometimes administratorschange port numbers for security reasons — and check the port number if

214 Chapter 8 • Administering Proxy Clients

Figure 8.1 Internet Explorer connection tab.

ch08.qxd 9/15/99 11:45 AM Page 214

Page 9: Administering Proxy Clients - pearsoncmg.com

you’re not sure. If you are accessing an Intranet web site that does not re-quire a proxy server, also check the box marked: Bypass proxy serverfor local (Intranet) addresses.

The advanced button will bring you to the Proxy Settings dialog de-picted in Figure 8.2. Here you will be able to configure different ProxyServer and port settings for the most frequently used protocols. There is aplace for HTTP, FTP, Secure, Gopher, and SOCKS. If you have dedicatedservers performing the different functions, you will be able to configurethem separately here. This area permits you to configure settings for all butthe Socks Proxy Service as a group by checking the Use same proxy

server for all protocols checkbox. If there are any Web servers onthe local network for which you want to bypass the Proxy Server, type theappropriate host names in the Do not Use Proxy Server For Ad-

dresses beginning with box. For example, if you do not want to use theproxy server to access the bad.server.com Web server on your LAN, typebad.server.com.

To do a single step setup, click the Configure button in the Auto-matic configuration area of the Connection tab to reveal the Auto-matic Configuration dialog depicted in Figure 8.3. Enter the name of aconfiguration file in the URL edit window. (This file must have already beencreated and placed on a server in the environment.) The configuration filecontains information about proxy server, dial-up networking, and othercommunication settings. Provide the complete URL of the server that con-tains the file as shown in Figure 8.3. Note that, in the figure, the auto-config-uration file is named myconfig.ins and it resides in the Inetpub\www-root directory of computer proxysrv. Click the Refresh button toreconfigure immediately, otherwise changes won’t update until the browseris closed and restarted. (We’ll look at an auto-configuration file a little laterin this chapter.)

8.1 WinSock Proxy Client Installation and Configuration 215

In Internet Explorer version 3.x, the automatic configuration dialog isfound on the Advanced tab.

Netscape Navigator 4.5 (other versions similar)

The Proxy Server configuration settings for Netscape Navigator are found byselecting Preferences from the Edit menu. The Advanced category mustbe expanded and the Proxies area selected. (See Figure 8.4.)

ch08.qxd 9/15/99 11:45 AM Page 215

Page 10: Administering Proxy Clients - pearsoncmg.com

216 Chapter 8 • Administering Proxy Clients

Figure 8.2 Proxy settings dialog.

Figure 8.3 Automatic configuration dialog.

ch08.qxd 9/15/99 11:45 AM Page 216

Page 11: Administering Proxy Clients - pearsoncmg.com

Inside the Proxies area check the Manual proxy configurationradio button and click View to reveal the dialog shown in Figure 8.5.

The IP address or name of the Proxy Server computer must be placedin the HTTP edit box to permit the client to function. You should, also, placeinformation in the Security, FTP, SOCKS, GOPHER, and WAIS locations ifyou will use these features. In contrast to Internet Explorer, there is no op-tion to use the same settings for all protocols, but each of the options has thesame settings by default. The setting for Wide Area Information Service(WAIS) is usually left blank, as this service was used to search cataloged re-sources and is rarely used except for educational institutions today.

While configuring the Netscape Navigator, note the Exceptions box, auseful option that permits you to block domains that are internal to your or-ganization. It is a way to make the calls to the domain of an Intranet webserver so that the request is not sent out to the proxy server (the process for

8.1 WinSock Proxy Client Installation and Configuration 217

Figure 8.4 Netscape Navigator preferences dialog.

ch08.qxd 9/15/99 11:45 AM Page 217

Page 12: Administering Proxy Clients - pearsoncmg.com

configuring this option is the same as that described for Internet Explorer4.0, described in the previous section).

Unless you are going to use the SOCKS service, you can generally leavethat entry blank. If, however, you plan to use Netscape messenger (the mailapplication) you must enter the appropriate SOCKS information. Withoutit, mail connectivity will fail because the browser will attempt to use theSOCKS service over the WSP client.

Macintosh and UNIX Clients — Web and SOCKS Proxy Services

You may recall our discussion of the Conseil Europeen pour la RechercheNucleaire, or European Laboratory for Particle Research in Switzerlandfrom Chapter 2 — the organization that lends its acronym to the CERN

218 Chapter 8 • Administering Proxy Clients

Figure 8.5 Netscape Navigator manual proxy configuration dialog.

ch08.qxd 9/15/99 11:45 AM Page 218

Page 13: Administering Proxy Clients - pearsoncmg.com

compliant protocol. You’ll remember that HTTP code libraries that werefirst developed to exploit the HTTP client/server capabilities were developedat CERN, and it was not too long afterwards that the Internet communityadopted the use of the CERN-Proxy protocol. Microsoft client and serverproducts are CERN compliant.

Macintosh and UNIX client support is focused in the following twoareas: CERN compliant browsers and SOCKS client applications. CERNcompliant browsers work with the Web Proxy service. Browser installationand configuration instructions for the Macintosh or UNIX client are similarto other browser installation and configuration procedures.

The SOCKS proxy service supports SOCKS version 4.3a and mostSOCKS 4.0 client applications. SOCKS clients work with the SOCKS serverto access hosts on the remote network through two operations connect andbind. The SOCKS client sends the connect request to the SOCKS serverwhen a connection to an application server is required. The applicationserver, on the other side of the SOCKS server, receives the request packet,processes it, and sends a response packet to the client. The response packetcontains the status of the request: granted, rejected, or failed. The SOCKSProxy server redirects API calls in much the same way as WinSock Proxydoes. SOCKS, however, does not use true Windows NT Challenge/Response.

Instead, it uses IP addresses and the Identification (Identd) protocol toauthenticate SOCKS Proxy clients.

Some SOCKS Proxy service limitations considerations:

• The SOCKS proxy service is dependent on the Web Proxy service. IfWeb Proxy is disabled or fails, the SOCKS Proxy will not be available.

• The SOCKS proxy service does not support client applications that usethe UDP protocol (RealAudio, VDOLive and others).

• The SOCKS proxy service does not support the IPX/SPX protocol.

• All SOCKS client requests are denied by default. To enable SOCKSclient request access, you must define SOCKS permission rules on theProxy Server. Defining a source and destination address, port range,and selecting whether the access is granted or denied makes up a rule(this was covered in detail in Chapter 5).

MCSE 8.2 Configuring a Browser with Scripting

We’ve mentioned that you can use scripts to configure the browser’s proxysettings. Not all types of scripting will work, however, with every type andversion of browser. Be sure to check the browser manufacturers publishedlist for compatible scripting types. Scripts are put in a predetermined path

8.2 Configuring a Browser with Scripting 219

ch08.qxd 9/15/99 11:45 AM Page 219

Page 14: Administering Proxy Clients - pearsoncmg.com

that is used to provide requested information for browser configuration.Something that might be a little confusing is that, although the scripts mod-ify the behavior of the browser, the configuration information they change isnot always visible in any of the browser’s setting areas.

Netscape has software called Mission Control that provides centralmanagement for all the Netscape browsers on your network. Microsoft pro-vides this centralized administration through the Internet Explorer Admin-istration Kit (IEAK). In configuring Microsoft Internet Explorer Version 4.0and later, you will notice that you have the ability not only to use scripts, butalso the Internet Communication Settings files. These files have the .INS ex-tension and visibly modify the settings in the browser. Also, there are manyoptions for configuration so they can do more than set up the proxy settings.INS files are just like INI files. Except for the different extension, they lookand flow just like the original article. Each section has a name inside of a setof brackets and the information inside is very similar to what you will find inan INI file. Here is an example:

[Branding]

Language Locale=en

Language ID=9

Window_Title_CN=

Window_Title=IE 4.0

Toolbar Bitmap=

User Agent=

Platform=2

CabsURLPath=C:\Inetpub\wwwroot

InsVersion=1998.04.10.00

Type=2

[URL]

AutoConfig=1

Help_Page=http://www.alidatrain.com

Quick_Link_1_Name=Internet Start

Quick_Link_1=http://www.alidatrain.com

Quick_Link_2_Name=Dejanews

Quick_Link_2=http://www.dejanews.com

Home_Page=http://www.alidatrain.com

Search_Page=http://www.infoseek.com

AutoConfigURL=http://proxysrv/autocfg.ins

AutoConfigJSURL=

AutoConfigTime=25

[Internet_Mail]

220 Chapter 8 • Administering Proxy Clients

ch08.qxd 9/15/99 11:45 AM Page 220

Page 15: Administering Proxy Clients - pearsoncmg.com

Window_Title=Outlook Express

[Favorites]

Army=http://www.army.mil

Navy=http://www.navy.mil

AF=http://www.af.mil

Senate=http://www.senate.gov

[Proxy]

HTTP_Proxy_Server=proxysrv:80

FTP_Proxy_Server=proxysrv:80

Gopher_Proxy_Server=proxysrv:80

Secure_Proxy_Server=proxysrv:80

Socks_Proxy_Server=proxysrv:80

Use_Same_Proxy=1

Proxy_Enable=1

Proxy_Override=<local>

[Mail_Signature]

Signature_Text=Visit our web site at http://www.alida-

train.com

Use_Mail_For_News=1

Use_Signature=1

[Signature]

Signature_Text=Visit our web site at http://www.alida-

train.com

Use_Signature=1

This should give you a general idea of some of the options, such asstandard proxy server settings, favorites, e-mail signatures, and such. TheINS file must be in a directory that the IIS service is publishing and it mustbe addressed in the browser configuration. If you just want to test the file be-fore applying it to your entire environment, you can create the file, put itanywhere on the client machine (like the desktop area), and click on it toconfigure the browser. The message you receive informs that you are aboutto reconfigure your browser if you do this.

Scripting languages have generally become more feature-rich and de-velopers must determine the scripting language that is supported by thebrowser of choice. It is therefore important to know what scripting stan-dards are available for a particular browser. Microsoft Internet Explorer 4.0supports JavaScript, JScript, and Visual Basic Script. JScript is Microsoft’simplementation of the ECMA-262 Script language. ECMA is short for theEuropean Computer Manufacturer’s Association.

8.2 Configuring a Browser with Scripting 221

ch08.qxd 9/15/99 11:45 AM Page 221

Page 16: Administering Proxy Clients - pearsoncmg.com

Study Break

What is ECMA-262?

The ECMA-262 specification provides for computations and manipulating objects within a host envi-ronment, such as the browser. The complete ECMA-262 specification can be found athttp://www.ecma.ch/stand/ecma-262.htm. If you are interested in locating more information onfeatures and keyword syntax of ECMA-262 from Microsoft, please visit the JScript web site athttp://www.microsoft.com/jscript.

Both Internet Explorer 4.0+ and NetScape Navigator 3.0+ can be con-figured through JavaScript. When either browser is initialized, JavaScript isdownloaded to the client computer. When a browser attempts contact witha specific site, the script runs to determine the appropriate path for the re-quest. Unlike changes effected through .INS files, changes resulting fromJavaScript are not visible in the browsers’ configuration areas. The mainbenefit to using JavaScript configuration arises from routing performancewhen the Web proxy client browser is directly pointed to a Proxy Serverarray. In cases where the client does not point directly to an array, no signifi-cant routing performance will be noted.

MCSE 8.3 Proxy Client and IPX-IP Gateway Support

As you know, Microsoft’s Proxy Server 2.0 acts as a firewall or gateway bytranslating the calls from one side of the connection to the other. TheProxy Server supports both the TCP/IP protocol and NWLINK, theIPX/SPX compatible protocol. In supporting both protocols, it is able toact as an IPX to IP gateway. This is an item worth consideration for thosewho have Novell NetWare as the primary network operating system (NOS)since that NOS depends on the IPX/SPX protocol. Since the Proxy Servercan support either protocol, the client can run Microsoft’s NWLINK (Mi-crosoft’s 100 percent compatible version of the IPX/SPX protocol), orTCP/IP, or both. Once the Proxy Client is installed on a machine, theProxy Client icon on the client’s control panel will show a selection forforcing the IPX/SPX protocol. Using only one protocol is the preferredmethod in this case since it offers an additional layer of security. The in-ternal address information has no way to get to the Internet, thus thechance of a network insecurity is nearly eliminated.

222 Chapter 8 • Administering Proxy Clients

ch08.qxd 9/15/99 11:45 AM Page 222

Page 17: Administering Proxy Clients - pearsoncmg.com

Microsoft Proxy Server 2.0 does not support IPX on Windows 3.1 orWindows for Workgroups 3.11 clients. Both of these clients can use the WebProxy service by using TCP/IP. Windows for Workgroups clients can use theWinSock Proxy service by using TCP/IP. If the network has IPX/SPX clients,several settings in the Mspclnt.ini file may need to be verified or added.

To prevent configuration refreshing or redirection by various Win-dows NT services running on WSP clients which use IPX/SPX, you shouldverify or add the following section and entries in the Mspclnt.ini file.These entries will disable the WSP client for those services:

[Services]

Disable=1

[Spoolss]

Disable=1

[Rpcss]

Disable=1

If Novell NetWare servers or IPX routers provide the IPX frame typeand network address for the network, a [Servers IPX Addresses] sec-tion should have been automatically created when the client was installed.Only a single address need be put in this section, formatted as follows:

Addr1=(Internal Network Number)-(MAC Address)

If there are no Novell NetWare servers, the IPX/SPX client may not au-toconfigure the IPX settings correctly. You must open the Mspclnt.ini fileand add the following section. Or, if the section already exists, replace it withthe following information:

[Servers Ipx Addresses]

Addr1=nnnnnnnn-000000000001

Replace nnnnnnnn with the actual NetWare network number (e.g.,00000001). Be sure you use 000000000001 as the MAC address, regardless ofwhat your internal network adapters actual MAC address is. DO NOT makethis modification unless your network doesn’t function. If an entry contain-ing the Proxy Server computer’s internal network MAC address is present

8.3 Proxy Client and IPX-IP Gateway Support 223

You’ll remember we discovered in Chapter 4 that even in networks thatrun IPX/SPX exclusively, we still need to ensure TCP/IP is bound to theinternal interface(s) of the Proxy Server computer.

ch08.qxd 9/15/99 11:45 AM Page 223

Page 18: Administering Proxy Clients - pearsoncmg.com

and your clients operate properly using NWLink, the change is not necessaryand may prevent proper operation.

224 Chapter 8 • Administering Proxy Clients

To provide IPG Gateway support, Proxy Server should have been in-stalled on a computer already running NWLink and the Service Advertis-ing Protocol (SAP) Agent (as we discussed in Chapter 4). If installationwas not completed in this order, it may be necessary to reinstall ProxyServer for the IPX Gateway to work.

Study Break

Using Proxy Server as an IPX Gateway

Now that we’ve gone over the use of Proxy Server as an IPX gateway, take a few minutes andprove to yourself that the concept works. If you are using the Proxy Server within your corporatenetwork, be sure to discuss this exercise with your LAN administrator before you proceed.

1. Ensure your Proxy Server has NWLink and SAP Agent installed and bound to its internal in-terface. If no available Proxy Servers are properly configured to use NWLink, you may alter-natively install Proxy Server on a server you’ll use to access the Internet for your clients.

2. Install NWLink on a computer you will use to access the internet and remove or disableTCP/IP (removing or disabling TCP/IP isn’t really necessary since you can prevent its use inWinSock Proxy client configuration, but this will further prove that it is possible to accessthe Internet using IPX/SPX and a Proxy Server gateway).

3. Refer to the description in this section and ensure the mspclnt.ini file on the ProxyServer is updated accordingly. (Again, if you’re using the corporate Proxy Server, be sure todiscuss this with your LAN administrator.) If the Proxy Server computer

4. From your client computer, access the mspclnt share on the Proxy Server computer and runSetup. (If Setup was already performed on this machine, select the Reinstalloption).

5. Still on the client computer, go to the WSP Client icon in the Control Paneland ensure both the Enable WinSock Proxy Client and ForceIPX/SPX Protocol checkboxes are checked.

6. On Internet Explorer’s Connection tab, clear the Access the Internetusing a Proxy Server checkbox.

7. Still in Internet Explorer, access a Web site on the external network. By doing so, you haveproven that Proxy Server can function as an IPX Gateway to the Internet for a computer notequipped with the TCP/IP protocol.

ch08.qxd 9/15/99 11:45 AM Page 224

Page 19: Administering Proxy Clients - pearsoncmg.com

MCSE 8.4 Proxy Client Connectivity, Permissions,and Configuration Parameters

Whether or not the client is Windows-based, it needs physical access acrossthe network wire to the Proxy Server and the correct permissions to accessthe resource. Remember to make sure all internal addresses are in the LAT.This is particularly important if you are using the Dynamic Host Configura-tion Protocol. Before making client or server configuration changes, use thePING utility or look in the Network Neighborhood to ensure you can seethe clients and server.

Microsoft Proxy Server and its clients work within the framework of aWindows NT Domain. Proxy Server security is administered at the domainlevel. If you have configured the components of Proxy Server, such as FTP,Gopher, Secure, or WWW to have their access control disabled, this meansthe clients do not need to log on to use the services. If you have enabled ac-cess control, it means that the clients must have accounts on the ProxyServer (or in the Proxy Server’s domain) and the appropriate permissions toaccess the resources of the Proxy Server.

The permissions available to WSP clients are extensive and more de-tailed than the other proxy clients. (The protocols are defined through theProtocols tab of the WinSock Proxy Service Properties dialog box on theserver covered in Chapter 5).

The Proxy Server client set up creates a log file, C:\Mpcsetup.log,that permits you to initiate troubleshooting if you encounter any errors withsetup. Keep in mind that the log file will be overwritten each time the clientsoftware is installed. Any text editor can be used to view the contents.

Review the connectivity between the client and the server before in-specting issues with the Proxy Server itself. Check the physical connectivitybetween the client and server. If you do this before modifying permissionsand other settings, you are likely to save time and heartache. The first thingthat must be done when you suspect a proxy problem is to suspect a connec-tivity problem and work from there.

Changing Client Configuration Parameters

The client configuration file affects the functionality of the Proxy Client. Theclient behavior, including how applications connect to the Proxy Server, canbe specified so that the client can connect by DNS name, IP address, or by amanually entered array name or group of IP addresses (for an array). If you

8.4 Proxy Client Connectivity, Permissions, and Configuration Parameters 225

ch08.qxd 9/15/99 11:45 AM Page 225

Page 20: Administering Proxy Clients - pearsoncmg.com

want to edit the client configuration file, mspclnt.ini, you can use any texteditor. The file is located in the Mspclnt directory on the client computer.

Once the WSP client is installed, the client configuration file is down-loaded to the client every time the computer is booted and every six hoursafter boot-up. The server share paths listed in the [Master Config] sec-tion of Mspclnt.ini determine the path used to update the client with newconfiguration files. Should you need to make a change to the server copy ofMspclnt.ini, you can use any text editor and go to the Msp\Clients di-rectory on the server. Although the file also resides on the client, you shouldalways make the changes on the server. If you change the file on the client,all your changes will be overwritten the next time the server refreshes theclient files or when the client is rebooted.

Following is a sample Mspclnt.ini file:

[Internal]

scp=9,10

Build=2.0.372.12

[wspsrv]

Disable=1

[inetinfo]

Disable=1

[services]

Disable=1

[spoolss]

Disable=1

[rpcss]

Disable=1

[kernel32]

Disable=1

[mapisp32]

Disable=0

[exchng32]

Disable=0

[outlook]

Disable=0

[raplayer]

RemoteBindUdpPorts=6970-7170

LocalBindTcpPorts=7070

[rvplayer]

RemoteBindUdpPorts=6970-7170

LocalBindTcpPorts=7070

226 Chapter 8 • Administering Proxy Clients

ch08.qxd 9/15/99 11:45 AM Page 226

Page 21: Administering Proxy Clients - pearsoncmg.com

[net2fone]

ServerBindTcpPorts=0

[icq]

RemoteBindUdpPorts=0

ServerBindTcpPorts=0,1025-5000

NameResolutionForLocalHost=P

[Common]

WWW-Proxy=PROXYSVR

Set Browsers to use Proxy=1

Set Browsers to use Auto Config=0

WebProxyPort=80

Configuration Url=http://PROXYSVR:80/array.dll?Get.Rout-

ing.Script

Port=1745

Configuration Refresh Time (Hours)=6

Re-check Inaccessible Server Time (Minutes)=10

Refresh Give Up Time (Minutes)=15

Inaccessible Servers Give Up Time (Minutes)=2

Setup=Setup.exe

[Servers Ip Addresses]

Addr1=207.22.36.14

Addr2=207.22.36.20

[Servers Ipx Addresses]

Addr1=55555555-000000000001

[Master Config]

Path1=\\PROXYSRV\mspclnt\

[Inaccessible Servers]

PROXYSVR=2072

Table 8.2 describes the entries in the Mspclnt.ini file.

Study Break

Making Changes to an Mspclnt.ini File

Although you know you can make changes to the Mspclnt.ini file, we caution you that mak-ing unnecessary changes can lead to a disorderly environment which is difficult to troubleshoot. Ourrecommendation is to open the Mspclnt.ini file several times and look around to become fa-miliar with what is there. Then, ONLY WHEN NECESSARY, make changes to the configuration and al-ways record your results. Should you make changes that were not intended, be sure to return the file

8.4 Proxy Client Connectivity, Permissions, and Configuration Parameters 227

ch08.qxd 9/15/99 11:45 AM Page 227

Page 22: Administering Proxy Clients - pearsoncmg.com

228 Chapter 8 • Administering Proxy Clients

Table 8.2 Mspclnt.ini File

Title Entry Explanation

[Master Config] Path1 A UNC path \\proxyserver\sharename to the shared net-work directory on the server containing the master copyof the client configuration files; if participating in anarray, the paths to the shared network directories of allarray members. This is a required section for backwardcompatibility with Microsoft Proxy Server version 1.0clients.

[Servers IP Name The computer or DNS name for the Proxy Server addresses] computer used by the client; if participating in an array, the

DNS name for the array. (This entry does not appear ifan IP address is used.)

[Servers IP Addr1 The IP address of the Proxy Server computer used addresses] by the client; if participating in an array, the IP address of

each array member. (This entry does not appear if acomputer or DNS name is used.) Additional entries areshown as Addr2, Addr3, and so on. This entry can beused if there is no DNS server on your network.

[Servers IPX Addr1 The IPX address of the Proxy Server computer. If Addresses] participating in an array, the IPX address of each array

member.[Common] Port The port Proxy Server uses for the control channel. This

value is rarely changed. If it must be changed, edit theserver’s master copy of the Mspclnt.ini file. NOTE:This should be changed only if there is a conflict withanother service on the server. This value should never beedited in the client’s copy of the Mspclnt.ini file.

[Common] Configuration Specified time in hours when the client asks the Refresh Time server to download a fresh copy of the Local Address Table

(Msplat.txt).[Common] Recheck Inaccessible Time, specified in minutes, where the WSP client

Server Time does not try to redirect a request by using the specific inac-cessible server. Default value is 10 minutes.

[Common] Refresh Give Up Time Time, specified in minutes, where the WSP client attemptsto refresh the configuration if a previous refresh attempthas failed. Default value is 15 minutes.

[Common] Inaccessible Servers Time, specified in minutes, where the WSP client Give Up Time does not try to redirect a request if all servers are marked as

inaccessible. After this interval, the client tries one of theservers if the Refresh Give Up Time has not ex-pired. Default value is two minutes.

[Common] Set Browsers To Use Proxy In the Proxy.ini file, value set to 1 indicates that theclient Setup program will configure the client com-puter’s browser to use the Proxy Server computer de-fined in the WWW Proxy field. Value set to 0 stops theclient Setup program from configuring clients to use aProxy Server computer. This field has no effect on theclient’s version of the proxy.ini file.

ch08.qxd 9/15/99 11:45 AM Page 228

Page 23: Administering Proxy Clients - pearsoncmg.com

to its original state before saving. It is a good idea to copy the file to another location like the \tempdirectory before starting your work so you can recover the original file if something goes wrong.

Open the Mspclnt.ini file with a text editorFind the Port= Record what you found _______________Find the name of the Proxy ServerRecord what you found _______________Find the [Servers IP Addresses]Record what you found _______________Find the WWW-Proxy=Record what you found _______________Find Set Browsers to use Proxy=Record what you found _______________Find WebProxyPort=Record what you found _______________

■ Summary

This chapter discussed the Microsoft Proxy client services. We looked at theWinSock Proxy (WSP), Web Proxy, and Socks Proxy clients. We discussedclient installation and configuration, and how the client settings can be

Summary 229

Table 8.2 Continued

Title Entry Explanation

[Common] Configuration URL This shows the location of the configuration script that isdownloaded to a client browser to use for routing into aparticular Proxy Server computer in an array. The URLhas the form http://proxyservername/array.dll?Get.Routing.Script, where proxy-servername is the name of the Proxy Server computerthat contains the script.

[Common] LocalDomains A comma-separated list of suffixes for Domain names thatare locally resolved.

[Common] WWW-Proxy If Set Browsers to Use Proxy is set to 1 in theProxy.ini file, the client Setup program configuresclient browsers to use the named Proxy Server. This fieldhas no effect on the client’s version of the file.

[Common] WebProxyPort If Set Browsers to Use Proxy is set to 1 in theProxy.ini file, the client Setup program configuresclient browsers to use the named port. This defines thelisten-on port used by the Web Proxy service and shouldbe the same.

ch08.qxd 9/15/99 11:45 AM Page 229

Page 24: Administering Proxy Clients - pearsoncmg.com

modified. Web Proxy clients, Internet Explorer, and Netscape were touchedon as was the configuration of SOCKS Proxy clients on other operating sys-tems such as Macintosh and UNIX.

We looked at various methods for scripting browser configuration. Welooked at the construction of INS files and JavaScript and considered JScriptand ECMA scripting.

We looked at the configuration that permits IPX/SPX clients to operateon the internal network while using a Proxy Server to provide a gateway tothe TCP/IP world on the external network. We saw that using IPX/SPX asthe only client network protocol can provide an extra measure of protectionagainst TCP/IP attacks from the external network.

Finally, we looked at some important client configuration issues. Wesaw that the first areas to consider when problems arise in working with theProxy Server are actual network connectivity and permissions. We also tookan in-depth look at the contents of the proxy client configuration file anddiscussed some considerations about editing it.

▲ CHAPTER REVIEW QUESTIONS

1. You have just installed the Netscape Navigator browser on all your net-work’s UNIX-based computers. Your network accesses the Internet througha Microsoft Proxy Server version 2.0. What is the best way to configure thebrowser to operate with your Proxy Server?

A. Nothing. UNIX computers cannot host Netscape Navigator andeven if they could a UNIX computer won’t work with a Mi-crosoft Proxy Server computer.

B. Configure the UNIX computers to run Netscape Navigator as aSOCKS application

C. Configure Netscape Navigator to use Proxy Server for HTTP,FTP, and Gopher requests using the Proxy Server computer’s IPaddress or host name.

D. Install the WinSock Proxy Service on the UNIX computer andconfigure the browser as a WinSock client.

2. Sandy administers an IPX/SPX network (only NWLink is currently in-stalled on her computers). She has just installed a Microsoft Proxy Servercomputer to act as an Internet gateway for her client computers. Howshould she configure the server and clients to provide maximum securityand smooth Internet access?

230 Chapter 8 • Administering Proxy Clients

ch08.qxd 9/15/99 11:45 AM Page 230

Page 25: Administering Proxy Clients - pearsoncmg.com

A. Bind TCP/IP and NWLink to the Proxy Server’s internal and ex-ternal interface; no configuration is required for the clients

B. Bind TCP/IP to the Proxy Server’s internal and external inter-faces, bind NWLink to the Proxy Server’s internal interface, andconfigure the WinSock Proxy service on the client to “ForceIPX/SPX protocol.”

C. Bind TCP/IP to the Proxy Server’s internal external interface,bind NWLink to the Proxy Server’s internal interface, and con-figure the WinSock Proxy service on the client to “ForceIPX/SPX protocol.”

D. Bind TCP/IP to the Proxy Server’s external interface, bindNWLink to the Proxy Server’s internal interface, then bindTCP/IP to the client’s network interface but disable it.

3. You are running a mixture of Internet Explorer versions 3.02 and 4.01 onyour local network. All machines are configured for automatic client con-figuration from the Proxy Server computer, but you wish to disable thisfeature on some machines for analysis and testing. How can you disablethe automatic configuration feature?

A. Use the Internet Explorer programs tab.

B. Uncheck the “Automatically configure Web Browser duringclient setup” checkbox on the Proxy Server computer.

C. Use the Internet Options|Connection tab on Internet Ex-plorer 4.01 or the Options|Advanced tab on Internet Explorer3.02 and clear the URL Path from the Automatic Configurationdialog box.

D. Once enabled, automatic configuration can be disabled only byreinstalling the software.

4. Your Internet Explorer 4.0 browsers are set for automatic configurationthrough use of an automatic configuration script. What could be down-loaded to the browser to effect the configuration?

A. A JavaScript script.

B. The mspclnt.ini file.

C. A Java applet.

D. A Pearl Script file.

5. You use a CERN compliant Web browser and access the Internet throughyour Proxy Server’s Web Proxy service. Your computer’s locallat.txt

Chapter Review Questions 231

ch08.qxd 9/15/99 11:45 AM Page 231

Page 26: Administering Proxy Clients - pearsoncmg.com

file contains your computer’s IP address, but the Proxy Server’s Local Ad-dress Table does not. What would you expect when you attempt to connectto your local intranet and the Internet?

A. Successful connection to the intranet but not to the Internet.

B. Successful connection to the Internet but not the intranet.

C. Successful connection to both.

D. Successful connection to neither.

6. The Macintosh computers on your internal network need to provide graph-ics support to clients through your Microsoft Proxy Server version 2.0 com-puter. What services must your Proxy Server computer support?

A. CERN Proxy Service.

B. SOCKS Proxy Service.

C. WinSock over AppleTalk Filing Protocol (WS/AFP).

D. Macintosh computers can only use Proxy Server version 1.0.

7. You need to make some changes to the configuration parameters in yournetwork’s mspclnt.ini file(s). What is the best way to accomplish this?

A. Use the Configuration tab on your client browser’s InternetOptions menu

B. Edit the file in each client’s Mspclnt directory using Notepad

C. Use the Mspcled.exe utility from the Proxy Server’s \Msp di-rectory

D. Edit the file in the Proxy Server’s Msp\Clients directory usingNotepad

8. Your TCP/IP based client computer is unable to access the Internetthrough the Proxy Server. What is the best thing to check first?

A. Ensure your computer’s server service is running.

B. Check that the Proxy Server is properly routed to an upstreamserver or direct to the Internet.

C. See if you can Ping the Proxy Server computer from your com-puter.

D. Verify the Mspclnt.ini file is in your computer’s Mspclnt di-rectory.

9. Why would you configure a locallat.txt file?

A. As a backup for the Proxy Server’s LAT file.

B. To supplement the Proxy Server’s LAT.

232 Chapter 8 • Administering Proxy Clients

ch08.qxd 9/15/99 11:45 AM Page 232

Page 27: Administering Proxy Clients - pearsoncmg.com

C. To provide a download location for the Proxy Server’s LAT.

D. To provide local address information for the SOCKS Proxy ser-

vice.

10. Linda’s network accesses the Internet through a Proxy Server computer.

For security purposes, she has changed the HTTP TCP port from 80 to 300

in the Proxy Server’s WWW Service Properties. How should she configure

her client computers for successful Internet access?

A. Configure CERN compliant Web browsers to use TCP port 300.

B. Set the WinSock configuration options in Control Panel to use

port 300.

C. Clients must be configured to use SOCKS Proxy service only.

D. The TP port cannot be configured to use port numbers above

255.

Chapter Review Questions 233

ch08.qxd 9/15/99 11:45 AM Page 233

Page 28: Administering Proxy Clients - pearsoncmg.com

ch08.qxd 9/15/99 11:45 AM Page 234