UniOTP VPN Solution: Difference between revisions

From SecuTech Wiki
Jump to navigationJump to search
No edit summary
Bao (talk | contribs)
mNo edit summary
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Category:UniOTP_Integration_Solutions]]
[[Category:UniOTP_Integration_Solutions]]
[[Category:UniOTP Building VPN Solution]]


== ABOUT THIS GUIDE ==
== Note ==


<p>VPN  (Virtual  Private  Network)  refers  to two  different  equipment  (a  computer  and firewall) with VPN link capability which can form a secure tunnel over the internet. In the tunnel initiator (server), A user’s private data is encapsulated and encrypted, and then  transmitted  on  the internet;  in  the  receiver  side  (client),  the  received  data  is unpacked and decrypted. VPN services are installed with Windows 2000/2003. This manual is based on the installed VPN service, named Routing and Remote Access. You can find this service from Start→Program→Administrative Tools→Service.
The following steps apply to Windows Server 2003 and Windows XP where relevant. For recent versions of Windows, the steps below may differ slightly.
</p>


== About This Guide ==


== ROUTING & REMOTE ACCESS ==
<!--Check server-client noun-->


<p>From  Start→Program→Administrative  Tools→Routing  and Remote  Access, please open  the Routing  and Remote  Access  panel.  Right-Click  on  “Routing  and Remote Access”  on the left-side of  the panel, please  select  “add  server”  to  add  a  VPN server.</p>
VPN (Virtual Private Network) refers to a computer and firewall with VPN capability that can establish a secure tunnel between the server and a client over the Internet. In the tunnel initiator (server), the user's private data is encapsulated and encrypted and then transmitted through the Internet; on the receiver side (client), the received data is unpacked and decrypted. VPN services are installed with Windows 2000/2003. This manual is based on the installed VPN service, named "Routing and Remote Access". This service can be found from <code>Start Menu - All Programs - Administrative Tools - Services</code>


[[Image:vpnsol img01.jpg|370px]]
== Routing and Remote Access Configuration ==


<p>Right  click  on  the  added  server,  and  select  “Configure  and  Enable  Routing and Remote Access”. If the Windows Firewall/Internet Connection Sharing (ICS) service is enabled, the Routing and Remote Access service cannot be enabled, and an ICS service  warning message  will appear. Disable the ICS service and redo  the above operation. After turning on Routing and Remote Access, the following configuration wizard will appear.</p>
From <code>Start Menu - All Programs - Administrative Tools - [Routing and Remote Access]</code> open the Routing and Remote Access control panel. Right-Click on Routing and Remote Access on the left-side of the panel, then select Add server to add a VPN server.


[[Image:vpnsol img02.jpg|370px]]
[[Image:vpnsol img01.jpg|500px|alt=routing and remote access main window]]


<p>Select Remote access (dial-up or VPN) and click next to get into the next page. </p>
Right click on the newly-added server and select Configure and Enable Routing and Remote Access. If the Windows Firewall/Internet Connection Sharing (ICS) service is enabled, the Routing and Remote Access service cannot be turned on, and an ICS service warning message will appear. Configure the ICS service to allow the above operation, then redo the above steps. After Routing and Remote Access is enabled, the following configuration wizard will appear. In the Routing and Remote Access Server Setup Wizard window, under the Configuration step, select Remote access (dial-up or VPN) then click Next.


[[Image:vpnsol img03.jpg|370px]]
[[Image:vpnsol img02.jpg|500px|alt=choose remote access (dial-up or VPN)]]


<p>Finish VPN installation. The next step is configuration.</p>
On the Remote Access step, select VPN then click Next.


[[Image:vpnsol img04.jpg|370px]]
[[Image:vpnsol img03.jpg|500px|alt=choose VPN then next]]


== ENVIRONMENT CONFIGURATION ==
Click Finish after completing the remainder of the wizard to complete the VPN installation.


<p>Right-click on the directory tree in the server name, select property and switch to the IP address tab.</p>
== Configuring the VPN Server with UniOTP ==


[[Image:vpnsol img05.jpg|370px]]
After successfully setting up and configuring the VPN Server, open <code>Start Menu - All Programs - Administrative Tools</code> and open the Routing and Remote Access control panel.


<p>If  the  connection  is  broadband  routing,  it  is  not  necessary  to  modify  the configurations in this page.</p>
[[Image:vpnsol img06.jpg|500px|alt=routing and remot access control panel]]


<p>''Using a static address pool will reduce the time to resolve an IP address, and will increase network speed''</p>
In the Routing and Remote Access window, right-click on the respective server from the directory list and select Properties.


== VPN SERVER WITH UNIOTP ==
[[Image:vpnsol img07.jpg|500px|alt=selecting properties option]]


<p>After building a VPN Server  successfully, open the Start→program→administrative Tools and open the Routing and Remote Access control panel.</p>
In the Properties window, select the Security tab, and under Authentication provider, select RADIUS Authentication from the drop-down menu.


[[Image:vpnsol img06.jpg|370px]]
[[Image:vpnsol img08.jpg|500px|alt=RADIUS authentication selection]]


<p>Right-click on SECU-CA (local) and select property</p>
Click on Configure to configure the RADIUS Authentication server. In the configuration panel, click on Add to add a Radius authentication server.


[[Image:vpnsol img07.jpg|370px]]
[[Image:vpnsol img09.jpg|500px|alt=adding a RADIUS authentication server]]


<p>Select  security  tab, and  in the authentication provider  (H)  list, select  “Radius authentication”.  The  “Configure”  button  will  now  become  available  as  the following picture shows.</p>
Under the Add RADIUS Server window, fill in the UniOTP authentication server name and server details. Afterwards, click on Change next to Secret to change the RADIUS communication shared key.


[[Image:vpnsol img08.jpg|370px]]  
[[Image:vpnsol img10.jpg|500px|alt=server name; secret; time-out (s); initial score; port]]


<p>Please click on the “Configure” button to configure the Radius authentication server. The configuration panel appears. </p>
In the Change Secret window, configure the communication shared key, then click OK.


[[Image:vpnsol img09.jpg|370px]]
[[Image:vpnsol img11.jpg|500px|alt=changing secret value]]


<p>Click on “Add” button to add a Radius authentication server.</p>
The RADIUS Authentication window should now a indicate a Radius server has been added. Click on OK to save the authentication server configuration.


<p>In the following configuration panel, fill the UniOTP authentication server address in Server name.</p>
[[Image:vpnsol img12.jpg|500px|alt=added server 192.168.1.225 with initial score 30]]


[[Image:vpnsol img10.jpg|370px]]
Returning to the Properties window, click on Authentication Methods.


<p>Click  on  “Change”  to  change  the  Radius  communication  shared  key. As  with  the following picture, please configure the communication shared key</p>
[[Image:vpnsol img13.jpg|500px|alt=certificate properties tab]]


[[Image:vpnsol img11.jpg|370px]]
In the Authentication Methods window, check the check-boxes: Extensible authentication protocol (EAP); Encrypted authentication (CHAP); and Unencrypted password (PAP). ''Please Note: Authentication methods Microsoft encrypted authentication version 2 (MS-CHAP v2); Microsoft encrypted authentication (MS-CHAP); and Shiva Password Authentication Protocol (SPAP) are not supported.'' Click on OK to apply settings and exit the window.


<p>Click  on  “OK”  and  the  following  content  should  appear  indicating  a  Radius authentication  server  has  been  added. Click  on  “OK”  to  exit  authentication server configuration. </p>
[[Image:vpnsol img14.jpg|500px|alt=authentication methods window]]


[[Image:vpnsol img12.jpg|370px]]
To apply configuration changes, restart the VPN server by right-clicking the server, selecting All Tasks, Restart.


<p>Click on “Authentication Methods” button, as in the following picture: </p>
[[Image:vpnsol img15.jpg|500px|alt=restarting the VPN server]]


[[Image:vpnsol img13.jpg|370px]]
== Add VPN Client ==


<p>In  the “Authentication  Methods”  control panel select  “Extensible  authentication protocol  (EAP)”,  “Encrypted  authentication  (CHAP)”  and  “Unencrypted  password (PAP)”.</p>
Open the Network Connections control panel found in the Control Panel.
<p>After configuration, click on OK →Apply and exit the control panel.</p>


[[Image:vpnsol img14.jpg|370px]]
[[Image:Vpnsol img16.jpg|500px|alt=network connections control panel]]


<p>'''Please note:''' “MS CHAP v2”, “MS-CHAP” and “SPAP” authentication methods are not supported.</p>
On the left-hand side, under Network Tasks, click on Create a new connection.
<br>
<p>To enable new configurations, restart VPN server. </p>


[[Image:vpnsol img15.jpg|370px]]
[[Image:Vpnsol img17.jpg|500px|alt='connect to the network at my workplace' option]]


== ADD VPN CLIENT ==
A New Connection Wizard window will appear. On the Network Connection Type step, select Connect to the network at my workplace, then click Next.


<p>Right click on the Network icon to open network connection control panel.</p>
[[Image:Vpnsol img18.jpg|500px|alt='virtual private network connection' option]]


[[Image:Vpnsol img16.jpg|370px]]
On the Network Connection step, select Virtual Private Network connection, then click Next.


<p>Clicking on “Create a new connection”, a set up window will pop up.</p>
[[Image:Vpnsol img19.jpg|500px|alt=enter host name or IP address]]


[[Image:Vpnsol img17.jpg|370px]]
On the VPN Server Selection step, enter the host name or IP address of the VPN to connect to, then click Next. If you wish, you can choose to Add a shortcut to this connection to my desktop on the final step, then click Finish to complete the wizard.


<p>Select “Connect to the network at my workplace”, and then click “Next”</p>
[[Image:Vpnsol img21.jpg|500px|adding a desktop shortcut option]]


[[Image:Vpnsol img18.jpg|370px]]
When attempting to connect to the VPN server, a connection window similar to the window below will appear.


<p>Select “Virtual Private Network connection”, and then click on “Next” </p>
[[Image:Vpnsol img22.jpg|500px|alt=VPN connection window]]


[[Image:Vpnsol img19.jpg|370px]]
<!--Check-->
If you have added a VPN access user, and bound this user to a dynamic token, you can use that dynamic password and PIN (if OTP+PIN authentication method has been selected) to connect to the VPN. When following this manual, a Guest account has been added to VPN Server and to the UniOTP dynamic password authentication system, therefore Guest and OTP + PIN (for Guest account the authentication method is OTP + PIN) need to be filled into this window. Please Click Connect.  


<p>Enter the VPN name or IP address, and click on “Next”. </p>
[[Image:Vpnsol img23.jpg|500px|alt=VPN connection window with details entered]]


[[Image:Vpnsol img20.jpg|370px]]
The following error may happen:


<p>You can choose  “Add a shortcut to this connection to my desktop” in the following window and click “Finish”.</p>
[[Image:Vpnsol img24.jpg|500px|alt='local computer does not support required encryption' message]]


[[Image:Vpnsol img21.jpg|370px]]
To solve this error, please click Properties.


<p>After configuration, a window will appear. </p>
[[Image:Vpnsol img25.jpg|500px|alt=properties is located at the bottom of the connection window]]


[[Image:Vpnsol img22.jpg|370px]]
Deselect Require data encryption, click on OK, and click Connect to start the connection again.  


<p>If you have added a VPN access user, and bound this user to a dynamic token, you can  use  that  dynamic  password  and  PIN  (if OTP+PIN  authentication  method  has been selected) to connect to the VPN. When following this manual, a Guest account has  been  added  to  VPN  Server  and  to  the  UniOTP  dynamic  password authentication  system,  therefore  Guest  and  OTP  +  PIN  (for  Guest  account  the authentication method is OTP + PIN) need to be filled into this window. Please Click “Connect” </p>
[[Image:Vpnsol img26.jpg|500px|alt='require data encryption (disconnect if none)' option in security]]


[[Image:Vpnsol img23.jpg|370px]]
After connecting to the VPN server successfully, on the lower-right corner of the screen, the following information will appear indicating that the configuration of VPN with UniOTP authentication has been completed successfully.  


<p>The following error may happen:</p>
[[Image:Vpnsol img27.jpg|300px|alt='user is now connected' pop-up]]


[[Image:Vpnsol img24.jpg|370px]]
== Appendix ==


<p>To solve this error, please click “Properties”</p>
===Common errors upon VPN clients connecting to the server===


[[Image:Vpnsol img25.jpg|370px]]
{| class="wikitable"
 
<p>Unselect  “Require  data  encryption”→click  on  “OK”,  and  click  “Connect”  to  start connection again. </p>
 
[[Image:Vpnsol img26.jpg|370px]]
 
<p>After connecting to VPN server successfully, on the lower right corner of the screen, the  following  information  will  appear  indicating  that  the  configuration  of  VPN  with UniOTP authentication has been completed successfully.  </p>
 
[[Image:Vpnsol img27.jpg|300px]]
 
== APPENDIX:==
==== Common errors when VPN clients connect to server  ====
 
{| cellspacing="1" cellpadding="1" border="1" width="600"
|-
|-
| '''Error Code'''<br>
| '''Error Code'''
| '''Reason'''<br>
| '''Reason'''
|-
|-
| 800<br>
| 800
| Unable to establish the VPN connection. The VPN server may be un-reachable, or security parameters may not be configured properly for this connection<br>
| Unable to establish VPN connection. The VPN server may be un-reachable, or security parameters may not be configured properly for this connection
|-
|-
| 619<br>
| 619
| In most cases, it is caused by that the NAT-T function used for client to <br>connect to internet is turned off or bad VPN support that does not support NAT-T in GRE and PPTP protocol. To solve this problem, you can turn on the gateway’s NAT-T. If this error happens frequently, please change the gateway equipment.<br>
| In most cases, it is caused by the NAT-T function, used for clients to connect to the Internet, has been turned off, or a VPN that does not support NAT-T in GRE and PPTP protocol. To solve this problem, you can turn on the gateway’s NAT-T. If this error happens frequently, please change the gateway equipment.
|-
|-
| 721<br>
| 721
| In most cases, this problem is caused by client system. If users are using Windows XP SP2, this problem may happens, and you can solve it through modifying registry:  
| In most cases, this problem is caused by the client system. If users are using Windows XP SP2, this problem may happen, and you can solve it through modifying the registry entry: <code>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\&lt;000x&gt;</code> &lt;000x&gt; is the network adapter of the Satellite WAN port (PPTP) driver. In this key, create a new DWORD value, name ValidataAddress with value 0. If the configuration of the PPP protocol on the server is not correct, it will cause this problem as well.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\&lt;000x&gt;. &lt;000x&gt; is the network adapter of the Satellite WAN port (PPTP) driver. In this key, create a new DWORD value, name ValidataAddress and value 0. If the configuration of the PPP protocol on the server is not correct, it will cause this problem as well.<br>


|-
|-
| 718<br>
| 718
| Wrong user name or password when dial-up, or authentication service errors occur on authentication server.<br>
| Wrong user name or password when connecting, or authentication service error occurs on authentication server.
|-
|-
| 734<br>
| 734
| Mostly it is caused by VPN configuration problem, such like PPP configuration, unsupported or bad supported MPPE.<br>
| Normally caused by VPN configuration problems, such as PPP configuration, unsupported or poorly supported MPPE.
|}
|}
<br>

Latest revision as of 12:47, 17 August 2016


Note

The following steps apply to Windows Server 2003 and Windows XP where relevant. For recent versions of Windows, the steps below may differ slightly.

About This Guide

VPN (Virtual Private Network) refers to a computer and firewall with VPN capability that can establish a secure tunnel between the server and a client over the Internet. In the tunnel initiator (server), the user's private data is encapsulated and encrypted and then transmitted through the Internet; on the receiver side (client), the received data is unpacked and decrypted. VPN services are installed with Windows 2000/2003. This manual is based on the installed VPN service, named "Routing and Remote Access". This service can be found from Start Menu - All Programs - Administrative Tools - Services

Routing and Remote Access Configuration

From Start Menu - All Programs - Administrative Tools - [Routing and Remote Access] open the Routing and Remote Access control panel. Right-Click on Routing and Remote Access on the left-side of the panel, then select Add server to add a VPN server.

routing and remote access main window

Right click on the newly-added server and select Configure and Enable Routing and Remote Access. If the Windows Firewall/Internet Connection Sharing (ICS) service is enabled, the Routing and Remote Access service cannot be turned on, and an ICS service warning message will appear. Configure the ICS service to allow the above operation, then redo the above steps. After Routing and Remote Access is enabled, the following configuration wizard will appear. In the Routing and Remote Access Server Setup Wizard window, under the Configuration step, select Remote access (dial-up or VPN) then click Next.

choose remote access (dial-up or VPN)

On the Remote Access step, select VPN then click Next.

choose VPN then next

Click Finish after completing the remainder of the wizard to complete the VPN installation.

Configuring the VPN Server with UniOTP

After successfully setting up and configuring the VPN Server, open Start Menu - All Programs - Administrative Tools and open the Routing and Remote Access control panel.

routing and remot access control panel

In the Routing and Remote Access window, right-click on the respective server from the directory list and select Properties.

selecting properties option

In the Properties window, select the Security tab, and under Authentication provider, select RADIUS Authentication from the drop-down menu.

RADIUS authentication selection

Click on Configure to configure the RADIUS Authentication server. In the configuration panel, click on Add to add a Radius authentication server.

adding a RADIUS authentication server

Under the Add RADIUS Server window, fill in the UniOTP authentication server name and server details. Afterwards, click on Change next to Secret to change the RADIUS communication shared key.

server name; secret; time-out (s); initial score; port

In the Change Secret window, configure the communication shared key, then click OK.

changing secret value

The RADIUS Authentication window should now a indicate a Radius server has been added. Click on OK to save the authentication server configuration.

added server 192.168.1.225 with initial score 30

Returning to the Properties window, click on Authentication Methods.

certificate properties tab

In the Authentication Methods window, check the check-boxes: Extensible authentication protocol (EAP); Encrypted authentication (CHAP); and Unencrypted password (PAP). Please Note: Authentication methods Microsoft encrypted authentication version 2 (MS-CHAP v2); Microsoft encrypted authentication (MS-CHAP); and Shiva Password Authentication Protocol (SPAP) are not supported. Click on OK to apply settings and exit the window.

authentication methods window

To apply configuration changes, restart the VPN server by right-clicking the server, selecting All Tasks, Restart.

restarting the VPN server

Add VPN Client

Open the Network Connections control panel found in the Control Panel.

network connections control panel

On the left-hand side, under Network Tasks, click on Create a new connection.

'connect to the network at my workplace' option

A New Connection Wizard window will appear. On the Network Connection Type step, select Connect to the network at my workplace, then click Next.

'virtual private network connection' option

On the Network Connection step, select Virtual Private Network connection, then click Next.

enter host name or IP address

On the VPN Server Selection step, enter the host name or IP address of the VPN to connect to, then click Next. If you wish, you can choose to Add a shortcut to this connection to my desktop on the final step, then click Finish to complete the wizard.

adding a desktop shortcut option

When attempting to connect to the VPN server, a connection window similar to the window below will appear.

VPN connection window

If you have added a VPN access user, and bound this user to a dynamic token, you can use that dynamic password and PIN (if OTP+PIN authentication method has been selected) to connect to the VPN. When following this manual, a Guest account has been added to VPN Server and to the UniOTP dynamic password authentication system, therefore Guest and OTP + PIN (for Guest account the authentication method is OTP + PIN) need to be filled into this window. Please Click Connect.

VPN connection window with details entered

The following error may happen:

'local computer does not support required encryption' message

To solve this error, please click Properties.

properties is located at the bottom of the connection window

Deselect Require data encryption, click on OK, and click Connect to start the connection again.

'require data encryption (disconnect if none)' option in security

After connecting to the VPN server successfully, on the lower-right corner of the screen, the following information will appear indicating that the configuration of VPN with UniOTP authentication has been completed successfully.

'user is now connected' pop-up

Appendix

Common errors upon VPN clients connecting to the server

Error Code Reason
800 Unable to establish VPN connection. The VPN server may be un-reachable, or security parameters may not be configured properly for this connection
619 In most cases, it is caused by the NAT-T function, used for clients to connect to the Internet, has been turned off, or a VPN that does not support NAT-T in GRE and PPTP protocol. To solve this problem, you can turn on the gateway’s NAT-T. If this error happens frequently, please change the gateway equipment.
721 In most cases, this problem is caused by the client system. If users are using Windows XP SP2, this problem may happen, and you can solve it through modifying the registry entry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\<000x> <000x> is the network adapter of the Satellite WAN port (PPTP) driver. In this key, create a new DWORD value, name ValidataAddress with value 0. If the configuration of the PPP protocol on the server is not correct, it will cause this problem as well.
718 Wrong user name or password when connecting, or authentication service error occurs on authentication server.
734 Normally caused by VPN configuration problems, such as PPP configuration, unsupported or poorly supported MPPE.