Wireless Router Default Settings [Login & Password]

Often times we buy new routers and shy away from reading the manuals. Even when read for the first, the manuals get lost and when the reset button is accidentally pushed, the search for the router default settings (login & password) becomes very difficult. I thought it will be helpful to write down some of these information here. There are lots of routers on the market but I am only listing the ones I have personally worked with. I’ll be adding to the list as more router settings are discovered.

 
Brand Name Model Router default URL Login Name Password
 3Com http://192.168.1.1 admin admin
 D-Link 713P http://192.168.0.1 admin <blank>
 Linksys WRT54AG, WAP54G http://192.168.1.1 <blank> admin
 Linksys WRT54G, WRT54GS,
WRT54GL, WRV54G
http://192.168.1.1 admin admin
 Netgear http://192.168.0.1 admin password
 TP-Link http://192.168.1.1 admin admin
 US Robotic http://192.168.123.254 admin admin
 US Robotic http://192.168.123.254 admin <blank>
 US Robotic http://192.168.123.254 root 12345
 US Robotic http://192.168.123.254 <blank> 12345

 

I hope this helps someone 😉


Posted in DD-WRT, LinkSys, Networking, WRT54GLv1.1 and tagged , , , , by with comments disabled.

Knowledgebase – Useful Links

Linux

1.) Linux Servers: http://www.brennan.id.au/index.html

2.) Fix FTP Passive mode Problems: https://www.gosquared.com/blog/archives/936

3.) Ways to add swap space using ‘dd’: http://www.thegeekstuff.com/2010/08/how-to-add-swap-space/

4.) CentOS 6.3 Netinstall Guide: http://www.if-not-true-then-false.com/2011/centos-6-netinstall-network-installation/

5.) Linux User Guide: http://www.comptechdoc.org/os/linux/usersguide/index.html

 

Windows


Posted in Linux, Networking, Web Design, Windows and tagged , by with comments disabled.

Running Two Instances of OpenVPN on Two Seperate Ports 1194 (UDP) & 443 (TCP)

First and foremost, it has to be stated that I am not the author of the original article on this topic. The original article can be found here.

Now, why repeat the same thing here?

Well, on June 10th, 2009, I wrote a reply on this post while in search of a solution for exactly the same purpose as RickNY (The original Author). Back then, I was able to setup my OpenVPN with the help found on various forums. For some reason, I had to change my configurations… which required a different setup. Stupid enough, I made no backup or maybe I did but couldn’t find one, when I needed exactly the same configuration again.

Knowing fully well that I was part of such a discussion before somewhere, I had to google for sometime before I was able to find the the above address again. This time I knew I had to write a backup on my blog.

If you’re seeing this for the first time, just go ahead and try it. I hope it solves your problem. If you’ve seen this somewhere before, please forgive me for the repetition 😉

Enough of the explanation…!

Why two instances of OpenVPN?

First of all, I have a full-time and part-time Job as a system engineer. In both of my offices, I always have to go through proxies to browse the internet.

Secondly, I have a small private business that requires my attention as well. To achieve this goals, I need to be able to channel my private activities securely through the proxies no matter the protocol been used.

The best solution would be to run double instances of OpenVPN on my private office gateway.

Requirements:

1.) A compatible router running DD-WRT v24-sp2 (I have WRT54GL v1.1)

2.)
LAN Network: 192.168.1.0
VPN Network: 10.32.71.0 (TCP) & 10.71.71.0 (UDP)
Setup keys, etc…

*) Lots of Coffee, Beer, Cigarettes and whatever might cool your temper when something goes wrong.

STEP 1

In GUI on the router, setup OpenVPN Daemon:
 
port 443
proto tcp-server
dev tun0
cipher AES-256-CBC
comp-lzo
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
tls-auth /tmp/openvpn/ta.key 0
server 10.32.71.0 255.255.255.0
client-to-client
keepalive 10 120
push “route 192.168.1.0 255.255.255.0”
push “redirect-gateway”
push “dhcp-option DNS 208.67.222.222”
push “dhcp-option DNS 208.67.220.220”
persist-key
persist-tun
verb 5

STEP 2:

Create the first of two configuration files for the client on your windows PC (I never tried this on any other OS).

Let’s call this file “Client1-tcp.ovpn

remote my.openvpn-server.address.com 443
client
proto tcp-client
dev tun0
comp-lzo
resolv-retry infinite
nobind
float
persist-key
persist-tun
ns-cert-type server
verb 3
cipher AES-256-CBC
ca ca.crt
cert client1.crt
key client1.key
tls-auth ta.key 1
ping 10
ping-restart 60
pull

STEP 3:

To limit debugging to either client1-tcp.ovpn or client2-udp.ovpn, I advice testing the connections with client1-tcp.ovpn before continuing…

If successfull, go ahead and create the second client file. Otherwise debug client1-tcp.ovpn first.

Likewise, we have to name this file “Client2-udp.ovpn

remote my.openvpn-server.address 1194
client

proto udp
dev tun0
comp-lzo
resolv-retry infinite
nobind
float
persist-key
persist-tun
ns-cert-type server
verb 3
cipher AES-256-CBC
ca ca.crt
cert client1.crt
key client1.key
tls-auth ta.key 1
ping 10
ping-restart 60
pull

STEP 4:

Entered the following in the “Startup” command window to create the 2nd instance..

Yo may need to adjust the sleep commands to account for the openvpn directory to be created and populated with my keys from the GUI..:

================== Begin Startup =====================

# Move to writable directory and create scripts
cd /tmp
ln -s /usr/sbin/openvpn /tmp/openvpn-udp

# Config
echo “
proto udp
port 1194
dev tun1
cipher AES-256-CBC
comp-lzo
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
tls-auth /tmp/openvpn/ta.key 0
server 10.71.71.0 255.255.255.0
client-to-client
keepalive 10 120
push “route 192.168.1.0 255.255.255.0″
push “redirect-gateway”
push “dhcp-option DNS 208.67.222.222″
push “dhcp-option DNS 208.67.220.220″
persist-key
persist-tun
verb 5
daemon
” > openvpn-udp.conf

# Create interfaces
/tmp/myvpn –mktun –dev tun1

# Initiate the tunnel
sleep 5
/tmp/openvpn-udp –daemon –config openvpn-udp.conf

# TCP OpenVPN Startup
sleep 15
cd /tmp/openvpn/
openvpn –daemon –config openvpn.conf

=================== End Startup ======================

One more step to go…

STEP 5:

Entered the following in the “Firewall” command window to create the iptables for your openvpn-server

================= Start Firewall =================

iptables -I INPUT -p tcp –dport 443 -j ACCEPT

iptables -I INPUT -p udp –dport 1194 -j ACCEPT

iptables -I FORWARD -i br0 -o tun0 -j ACCEPT

iptables -I FORWARD -i tun0 -o br0 -j ACCEPT

iptables -I FORWARD 1 –source 10.32.71.0/24 -j ACCEPT

iptables -I FORWARD 1 –source 10.71.71.0/24 -j ACCEPT

ip neigh change 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0

ip neigh add 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0

================== End Firewall ==================

The two last lines on the firewall configuration are optional.

These two lines allows you to wake up devices on your network remotely.

Note:

If you use Windows 7 and above, remember to start your OpenVPN GUI with elevated access (just enable “Run as Administrator“).

Otherwise, all traffic won’t be redirected through your network gateway. This is a common problem with this kind of configuration.

That’s it! I hope it helps someone like me…

Hey! no matter the amount of bugs you might get… don’t blame me. Everything in life is risk 😉
Remember Tom Jones? The very best in life is always free!!! Enjoy!


Posted in DD-WRT, LinkSys, Networking, WRT54GLv1.1 and tagged , , , , , by with 1 comment.

Switch IP address configurations between two networks using a simple batch program

I use an official Notebook which I often take home when dealing with official projects. The problem is I only have one Network Adaptor or LAN device on this machine. As a result, the network configurations in both locations becomes very tricky. As a network engineer, I know there are other possibilities of solving this problem but I just thought this little batch program might help someone else.

Just copy and past the content between “Start” and “End” on a file using notpad or other editing tools. Save and name the file what you want, run and follow the instructions. Enjoy and share! 😉

:::::::::::::::::::::::::::::::::: Start ::::::::::::::::::::::::::::::::::::::::

@echo off
cls
Echo ————————— Switch IP Address ——————————————————–
Echo (c) 2010 omotech computer services
Echo This Program was written on March 24, 2010 by Stanley O. Omoregie.
Echo It allow the easy switch of IP Address settings between two networks.
Echo The program is copyrighted and can only be used and distributed as it is,
Echo without removing this copyright information.
Echo —————————————————————————————————————–
echo Choose between A und B:
echo [A] Set Static IP Address (Office)
echo [B] Set DHCP (Home)
echo.
echo Choose between A und B:
echo [A] Set Static IP Address (Office)
echo [B] Set DHCP (Home)
:choice
SET /P C=
Echo.
Echo.[A,B]
for %%? in (A) do if /I “%C%”==”%%?” goto A
for %%? in (B) do if /I “%C%”==”%%?” goto B
goto choice
:A
@ECHO off
echo Please enter IP Adresse for choice [A]:
set /P IP_Addr=

echo Default Gateway:
set /P D_Gate=

echo Subnet Mask:
set /P Sub_Mask=

echo Setting static IP Address&
netsh interface ip set address “LAN” static %IP_Addr% %Sub_Mask% %D_Gate% 1
ECHO Here is the setting information for %computername%:
netsh int ip show config
pause
goto end

:B
@ECHO OFF
ECHO DHCP is resetting the IP Address and Subnet Mask.
netsh int ip set address name = “LAN” source = dhcp

ipconfig /renew

ECHO Here is the setting information for %computername%:
netsh int ip show config
pause
goto end

:end
Script END!

:::::::::::::::::::::::::::::::::: End ::::::::::::::::::::::::::::::::::::::::

I made an EXE file from the batch program. You can download this to get both files.


Posted in Networking and tagged , , by with comments disabled.

Flash with DD-WRT Linksys WRT54GLv1.1



This tutorials shows how the router Linksys WRT54G Version 1.1 (serial number starts with reflashing CL7B) with DD-WRT. Through this process, the capabilities of the router to be expanded. Flashing takes place in two stages: the first section needs to be flashed with the mini version of DD-WRT. The second section is then flashed with the standard version of DD-WRT. Warning: By flashing one can possibly lose warranty claims. Everything at your own risk. Details:


Netzwerkkabel an Port 1 des WRT54GL



The Network cable to port 1 (1) The WRT54GLv1.1 is connected to the power supply, which in turn depends on the socket.


A blue network cable is connected to Port 1. (2) Ports 2, 3, or 4 may be used as well.  However, port 1 has been chosen for this example and worked successfully. The other ports remain free. Better safe than sorry. The flash process should not be disturbed.

Netzwerkkabel am LAN-Anschluss
The network cable (3) is connected to the central unit. The computer is currently not connected to the internet, but only to the WRT54GLv1.1

DD-WRT Download-Sektion
DD-WRT Download-Section
(4) Now, connect to the internet with a second computer and click on the link: DD-WRT Download-Section.
(5) Note that there are several versions of DD-WRT.
(6) The current version is 23 SP1. Click on the version dd-wrt.v23 SP1.

DD-WRT Version 23 SP1
DD-WRT version 23 SP1
(7) This takes you to where other categories of version SP1 is been offered.
(8) This is a micro-version. This is for example made for the lousy WRT54G version 5. The WRT54G version 5 has only  2 MB flash memory. In the previous versions, there were more memory.
(9) Fortunately, WRT54GLv1.1 has 4 MB flash memory. For this reason, we can choose for the router modell the mini-version.
(10) The standard version is suitable for professional use.
(11) There is also a version for VoIP. It would be very interesting to know whether this version adds significant value to the standard version, if you want to use Internet telephony.
(12) And then there’s a version with OpenVPN.

DD-WRT Version 23 SP1 (Mini) downloaden
DD-WRT version 23 SP1 (mini) (13): We have to decide in this case for the mini version.
(14) A dialog box opens to download the mini-version of DD-WRT version 23 SP1.
(15) It doesn’t matter whether you “choose Open with CompressedFolder” or “on floppy / hard disk space”.
(16) Click OK.

Dateien sind heruntergeladen
Files are downloaded (17) For a brief moment will later be shown that all files have been downloaded

dd-wrt.v23_sp1_mini.zip extrahieren
dd-wrt.v23_sp1_mini.zip extract (18) on your own computer is now the packed file “dd-wrt.v23_sp1_mini.zip.” By clicking the right mouse button on the file.
(19) Select 7-Zip.
(20) Select »Extract here«

dd-wrt.v23_mini_generic.bin
dd-wrt.v23_mini_generic.bin
(21): Take a look at the extracted files. There are several router models for special specifications of the mini-version. If you want to flash a different router than the model discussed here, then you should better look on the Internet for other instructions. In the present case (WRT54GLv1.1), will be flashed with dd “-wrt.v23_mini_generic.bin”.

Auf Reset-Knopf des Linksys WRT54GLv1.1 drücken
eset the router by pressing with a pen
(22) the reset button for 30 Seconds.

IP-Adresse des Routers eingeben
Type the password »admin«
(23) and start the internet browser.
(24) In the address bar you type the IP address of the router. This is 192.168.1.1.
(25) Now you will be prompted to enter username and password.
(26) The field with the username can be left empty.
(27) The Password is »admin«.
(28) Click OK.

Administration des WRT54GLv1.1
WRT54GLv1.1
(29) Administration: You’ll be taken to WRT54GLv1.1 administration portal. You can see the standard software from Linksys / Cisco.

Auf Firmware Upgrade klicken
Click on Firmware Upgrade. One can see that the firmware version is 4.30.7. This is wiil soon be replaced with DD-WRT.

(30) Click on the “Administration” tab.
(31) Click on Firmware Upgrade.

dd-wrt.v23_mini_generic.bin
dd-wrt.v23_mini_generic.bin Select (32) Click “Browse …”.
(33) The window “file upload” window opens.
(34) One would like the mini version of DD-WRT Version 23 SP1 upload.
(35) In this case you need to choose the generic version.

Pfad zur generic-Version

Upgrade to Internet Explorer

(36) This field is now the path to the generic version, with the WRT54GLv1.1 will be flashed immediately.
(37) Nearly one would now clicked upgrade. But wait! Stop! Still do not click! You have read on the Internet the information that one better to flash using the Internet Explorer and Firefox. Firefox is even, is not optimal. Better to use the Internet Explorer. Therefore leads to the steps (23 to 36) again again. This time not with Firefox, but with the Internet Explorer. Then you click the Internet Explorer upgrade.

Upgrade is successful

Upgrade is successful

(38) In the present case had to wait about 1 minute. Then shows the message »”Upgradeis successful.. “
(39) Click »Continue.

WRT54GL Login
Username is now “root” (39) After you have just clicked on CONTINUE, (40) opens the dialog box where you should enter user name and password to access the IP address 192.168.1.1 can.
(41) This is an indication that this is the WRT54GL.
(42) The user name must be entered now root “. This is different than before in (26) than in the original Linksys firmware was installed. At the time, specify a user name does not need now is required.
(43) The password is still “admin”.
(44) Click OK.

DD-WRT v23 SP1 mini
DD-WRT v23 SP1 mini
(45) in the browser now indicates that DD-WRT v23 SP1 is final (16/05/2006) installed mini. So currently only the mini version is installed. In a further step is flashed on the standard version. Why so complicated? Why first install the mini version first and then the standard version? The reason is that the original Linksys firmware, a firmware upgrade is limited to a maximum of 3 MB. The mini version has less than three megabytes. The standard version has more than three megabytes. If you have installed the mini version, then there is no longer the limit to three megabytes. Then there is only the limit of available flash memory. In this case, the WRT54GLv1.1 is this flash memory (as said) 4 MB. The flash memory is sufficiently large for the standard version.

dd-wrt.v23_sp1_standard.zip
dd-wrt.v23_sp1_standard.zip
(46) Man goes again – as in step (4) – in the DD-WRT downloads section.
(47) One recalls that it had decided to step (13) for the mini version. What was the justification for this again? Oh right, the mini version has less than 3 MB. That is why you chose them.
(48) Now you may opt for the standard version.

DD-WRT Version 23 SP1 Standard

DD-WRT Version 23 SP1 Standard

(48) Once you have decided on the standard version,

(49) A dialog box opens, where you will be asked if you want the standard version of DD-WRT Version 23 SP1 download.
(50) Click OK.

dd-wrt.v23_generic.bin
dd-wrt.v23_generic.bin
(51) It takes a look at the files that you have just downloaded. In the present case, later the generic version is uploaded. It notes that in the file name is no reference to the fact that it is actually not the version 23, but about the Version 23 SP1. This is a bit misleading, but it is in “dd-wrt.v23_generic.bin” despite the inaccurate labeling of Version 23 SP1.
(52) On the screenshot indicates that the packet size is approximately 3.41 MB. So the standard version has more than three megabytes. It can be installed immediately, because the router is already the mini version of DD-WRT. The standard version can not be installed when the router is on the original Linksys firmware.


Click “firmware upgrade” – on “Administration”

(53) In Internet Explorer you are in the address bar the IP address of the router 192.168.1.1.
(54) “Administration” – click “firmware upgrade”.
(55) “Browse …” button.

WRT54GLv1.1 Reset-Knopf drücken
Press the reset button

(56) Now you do for safety – just as in step (22) – a reset. 30 seconds with a ballpoint pen to press the reset button.

dd-wrt.v23_generic.bin auswählen
dd-wrt.v23_generic.bin Select

(55) They had only just clicked on “Browse …”.
(57) A dialog box for selecting the uploaded file is opened.
(58) You want the standard version of DD-WRT Version 23 SP1 upload.
(59) For the WRT54GLv1.1 is the file “dd-wrt.v23_generic.bin” the correct version.

Upgrade mit dd-wrt.v23_generic.bin
Upgrading to dd-wrt.v23_generic.bin

(60) The path to the file “dd-wrt.v23_generic.bin” now specified in this field.
(61) It is the warning message notes. A firmware update can take several minutes. Earlier, the fix lasted about 1 minute. Let’s see how long it will take now.
(62) Click upgrade.

Upgrading to DD-WRT 23 SP1 Standard
Progress bar moves

(63) It now takes about 1 minute, in which the progress bar moves back and forth.


Upgrade was successful

(64) The upgrade was successful. The message “upgrade successful. Unit is rebooting now. Please wait a moment …. “You have to wait many seconds now.

DD-WRT v23 SP1 Final std
Standard version is installed

(65) It is now in the browser. There is “std by the abbreviation” indicates that now the default version installed. Earlier, at (45) was the mini version of the words “mini” was displayed.

Summary: Flashing the WRT54GLv1.1 in two steps: First, flash the mini version. Then flash with the standard version. Flashing should be done with the Internet Explorer.

Items with similar content: WRT54G v4 Installation Tutorial


Posted in DD-WRT, LinkSys, Networking, WRT54GLv1.1 and tagged , , by with comments disabled.

Web sites can’t be loaded.

This Tip comes from gulli

Why searching for solutions to other problems, I just came across this and wanted to put it here for other people visiting.

The are some situations when connecting through DSL, Router etc. and some web sites can’t just be loaded. You can try the following below.

  1. Start> Run> and enter ping -f -l 1492 www.omotech.com
    (or any other web address instead of www.omotech.com).
  2. You’ll see responses like “Packet needs to be fragmented but DF set”. Gradually reduce the number little by little (let’s say by 10), until the server responds with connection time (in my case 1472).
  3. Start> Run> Regedit>HKEY_LOCAL_MACHINE>system> CurrentControlSet> Services>Tcpip> Parameters>Interfaces: you’ll find many folders with all kinds of numbers and letters. Search in these folders for the one that has your IP numbers.
  4. Create in this folder a new key (Right Click> New> DWORD (32-bit) Value) with the name “MTU”.
  5. Assign a new value to the Key. (Double click MTU)> enter the value you just emitted from the ping responses above (e.g 1472).
  6. With a bit of luck, you should be able to get those web sites loaded


Posted in Networking, Web Design and tagged , by with comments disabled.

Windows Routing Command

Route

Displays and modifies the entries in the local IP routing table. Used without parameters, route displays help.

Syntax

route [-f] [-p] [Command [Destination] [mask Netmask] [Gateway] [metric Metric]] [if Interface]]

Parameters

-f : Clears the routing table of all entries that are not host routes (routes with a netmask of 255.255.255.255), the loopback network route (routes with a destination of 127.0.0.0 and a netmask of 255.0.0.0), or a multicast route (routes with a destination of 224.0.0.0 and a netmask of 240.0.0.0). If this is used in conjunction with one of the commands (such as add, change, or delete), the table is cleared prior to running the command.

-p : When used with the add command, the specified route is added to the registry and is used to initialize the IP routing table whenever the TCP/IP protocol is started. By default, added routes are not preserved when the TCP/IP protocol is started. When used with the print command, the list of persistent routes is displayed. This parameter is ignored for all other commands. Persistent routes are stored in the registry location

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\PersistentRoutes.

Examples

To display the entire contents of the IP routing table, type:

route print

To display the routes in the IP routing table that begin with 10., type:

route print 10.*

To add a default route with the default gateway address of 192.168.12.1, type:

route add 0.0.0.0 mask 0.0.0.0 192.168.12.1

To add a route to the destination 10.41.0.0 with the subnet mask of 255.255.0.0 and the next hop address of 10.27.0.1, type:

route add 10.41.0.0 mask 255.255.0.0 10.27.0.1

To add a persistent route to the destination 10.41.0.0 with the subnet mask of 255.255.0.0 and the next hop address of 10.27.0.1, type:

route -p add 10.41.0.0 mask 255.255.0.0 10.27.0.1

To add a route to the destination 10.41.0.0 with the subnet mask of 255.255.0.0, the next hop address of 10.27.0.1, and the cost metric of 7, type:

route add 10.41.0.0 mask 255.255.0.0 10.27.0.1 metric 7

To add a route to the destination 10.41.0.0 with the subnet mask of 255.255.0.0, the next hop address of 10.27.0.1, and using the interface index 0x3, type:

route add 10.41.0.0 mask 255.255.0.0 10.27.0.1 if 0x3

To delete the route to the destination 10.41.0.0 with the subnet mask of 255.255.0.0, type:

route delete 10.41.0.0 mask 255.255.0.0

To delete all routes in the IP routing table that begin with 10., type:

route delete 10.*

To change the next hop address of the route with the destination of 10.41.0.0 and the subnet mask of 255.255.0.0 from 10.27.0.1 to 10.27.0.25, type:

route change 10.41.0.0 mask 255.255.0.0 10.27.0.25


Posted in Networking, Vista, Windows, Windows 7, Windows Vista, Windows XP and tagged , , , by with comments disabled.

How to Configure an Ntp Network Time Server in Windows 2003

Computer time synchronisation is highly important in modern computer networks, precision and time synchronization is critical in many applications, particularly time sensitive transactions. Just imagine buying an airline seat only to be told at the airport that the ticket was sold twice because it was purchased afterwards on a computer that had a slower clock!

Modern computers do have internal clocks called Real Time Clock chips (RTC) that provide time and date information. These chips are battery backed so that even during power outages, they can maintain time but personal computers are not designed to be perfect clocks. Their design has been optimized for mass production and low-cost rather than maintaining accurate time.

For many applications, this is can be quite adequate, although, quite often machines need time to be synchronised with other PC’s on a network and when computers are out of sync with each other problems can arise such as sharing network files, failed transactions or in some environments even fraud!

Microsoft Windows 2003 has a time synchronisation utility built into the operating system called Windows Time (w32time.exe) which can be configured to operate as a network time server. It can be configured to both synchronise a network using the internal clock or an external time source.

Note: Microsoft strongly recommends that you configure a time server with a hardware source rather than from the internet where there is no authentication.

To configure Windows Time service to use the internal hardware clock, first check that w32time is located in the system services list in the registry, to check:

Click Start, Run then type regedit then click ok.

Locate and then click the following registry entry:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32Time

It is highly recommended that you back up the registry as serious problems may occur if you modify the registry incorrectly, modifications to the registry are done at your own risk.

To begin configuration for an internal clock, click on the following subkey:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeConfigAnnounceFlags

In the right pane, right-click AnnounceFlags, then click modify.

In Edit DWORD Value, type A in the Value Data box, then click OK

Exit Registry Editor

To restart the Windows Time Service click Start, Run (or alternatively use the Command Prompt facility).

Type: net stop w32time && net start w32time

Then press enter.

To configure the Windows Time service to use an external time source, click Start, Run and type regedit then click OK.

Locate the following subkey:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeParametersType

In the right pane, right-click Type then click Modify, in edit Value type NTP in the Value data box then click OK.

Locate the following subkey:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeConfigAnnounceFlags.

In the right pane, right-click AnnounceFlags and click Modify. The ‘AnnounceFlags’ registry entry indicates whether the server is a trusted time reference, 5 indicates a trusted source so in the Edit DWORD Value box, under Value Data, type 5, then click OK.

Network Time Protocol (NTP) is an Internet protocol used for the transfer of accurate time, providing time information along so that a precise time can be obtained

To enable the Network Time Protocol; NTPserver, locate and click:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeTimeProvidersNtpServer

In the right pane, right-click Enabled, then click Modify.

In the Edit DWord Value box, type 1 under Value data, then click OK.

Only apply if the server is configure to be syncronized with external NTP-Server

Now go back and click on

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeParametersNtpServer

In the right pane, right-click NtpServer, then Modify, in the Edit DWORD Value under Value Data type In the right pane, right-click NtpServer, then Modify, in the Edit DWORD Value under Value Data type the Domain Name System (DNS), each DNS must be unique and you must append 0x1 to the end of each DNS name otherwise changes will not take effect.

Now click Ok.

Locate and click the following

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeTimeProvidersNtpClientSpecialPollInterval

In the right pane, right-click SpecialPollInterval, then click Modify.

In the Edit DWORD Value box, under Value Data, type the number of seconds you want for each poll, ie 900 will poll every 15 minutes, then click OK.

To configure the time correction settings, locate:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32Timeconfig

In the right pane, right-click MaxPosPhaseCorrection, then Modify, in the Edit DWORD Value box, under Base, click Decimal, under Value Data, type a time in seconds such as 3600 (an hour) then click OK.

Now go back and click:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32Timeconfig

In the right pane, right-click MaxNegPhaseCorrection, then Modify.

In the Edit DWORD box under base, click Decimal, under value data type the time in seconds you want to poll such as 3600 (polls in one hour)

Exit Registry Editor

Now, to restart windows time service, click Start, Run (or alternatively use the command prompt facility) and type:

net stop w32time && net start w32time

And that’s it your time server should be now up and running.


Posted in Networking, Windows and tagged , by with comments disabled.