![]() |
Lessons Learned
Windows 2000 by Larry Lentz |
| It's About Time
June, 2002 |
|
| Larry Lentz is a Past President of Alamo PC. He is the owner of Lentz Computer Services. He has been a professional in the computer field since 1981. | |
|
Some time ago I wrote about how to set up a Windows 2000 server as a time server for your network. Actually Windows 2000 automatically makes your primary domain controller the time source for the network and other Windows 2000 and Windows XP computers on the network set their time to it. In order to be sure the server is set to the proper time, one uses the “net time /setsmtp:...” command which tells the server where to go on the Internet to get the proper time. Actually, if you don’t set this up, you will receive ‘nasty notes’ in your Event log indicating that this is a domain controller and you need to use the net time command, etc. And this works great, except for one itsy bitsy little old problem. If you’re running Small Business Server or BackOffice, you are likely running the ISA firewall server. It seems that ISA doesn’t play pretty with the time service, w32time or w32tm. In order to test your time sync, you must first stop the w32time service. This is most easily done from the Command Prompt by issuing ‘net stop w32time’. Once that is done, you can run “w32tm –once”. This will cause the time service to query your Internet time standard and set the time. However, when running behind ISA, it will likely fail. You will see messages in your Event Log stating “The NTP server didn’t respond”. In fact, you may see a lot of these messages! For awhile I figured I’d just configured it to sync with either a bad or unfriendly time source. So I tried configuring it for different servers. No luck. I did find, however, that when I stopped all the ISA services on my server, I could connect and update the time fine! You can test this by setting the system clock ahead or behind by say 5 minutes. I tried to make it an easy time difference so I could easily reset it to the right time when my test failed. Then run “w32tm –once”. You will see it go through a script as it attempts to talk with the time source. If it works, the system time will be reset to the correct time at the end of the process. If not, it won’t. The script will also have a message in it to the effect that the time source failed to produce a valid time stamp. Since my time sync did not work when I was running ISA server, and did when I stopped ISA, I figured, clever fellow that I am, that ISA must be where the problem was. Having just resolved the problem of updating Windows XP through ISA as discussed in last month’s column, I figured that might be the salvation. I also knew that the time service uses UPD port 123. So, I created a packet filter called ‘NTP’ (network time protocol) for UPD, port 123, with a “direction” of “Send receive”. I configured it for all local ports and port 123 on the remote host. Guess what! This didn’t do it. I then figured that perhaps I needed to set up a Protocol Rule in ISA similar to the one I set up to make Windows XP Update work. So I create one I called “SNTP” (Simple Network Time Protocol). I configured it to allow the selected protocol of NTP, always, and apply it to the specific client address set that included the server. This had worked with the Windows XP Update. However, it didn’t work with SNTP. Eventually I tried specifying “Any request” and it worked! I then set the system time back 5 minutes and ran w32tm — once. The time was corrected. Now the little annoying error messages in Event Log have gone and my time is set correctly. I immediately went to all my customers’ Windows 2000 servers using Terminal Services over the Internet and configured them the same way. They all worked! Connecting to SBS over VPN
|
|