<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.amahi.org/index.php?action=history&amp;feed=atom&amp;title=Prevent_SSL_Handshake_Timeouts_In_OpenVPN</id>
	<title>Prevent SSL Handshake Timeouts In OpenVPN - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.amahi.org/index.php?action=history&amp;feed=atom&amp;title=Prevent_SSL_Handshake_Timeouts_In_OpenVPN"/>
	<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Prevent_SSL_Handshake_Timeouts_In_OpenVPN&amp;action=history"/>
	<updated>2026-05-05T08:53:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Prevent_SSL_Handshake_Timeouts_In_OpenVPN&amp;diff=19225&amp;oldid=prev</id>
		<title>Alireza2n: Created page with 'Some users may experience &quot;SSL\TLS handshake&quot; timeouts, this may happen when somehow these packets get corrupt, regardless of their protocol (TCP/UDP) or port.&lt;br&gt; Now we're goin…'</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Prevent_SSL_Handshake_Timeouts_In_OpenVPN&amp;diff=19225&amp;oldid=prev"/>
		<updated>2010-10-21T19:58:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;Some users may experience &amp;quot;SSL\TLS handshake&amp;quot; timeouts, this may happen when somehow these packets get corrupt, regardless of their protocol (TCP/UDP) or port.&amp;lt;br&amp;gt; Now we&amp;#039;re goin…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Some users may experience &amp;quot;SSL\TLS handshake&amp;quot; timeouts, this may happen when somehow these packets get corrupt, regardless of their protocol (TCP/UDP) or port.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we're going to add &amp;quot;HMAC signature&amp;quot; to packets, so that every packet not bearing the signature can be dropped, after adding this your connection will be more secure &amp;amp; those timeouts will dissapear!&amp;lt;br&amp;gt;&lt;br /&gt;
Here is how:&lt;br /&gt;
&lt;br /&gt;
'''Things to do on server :'''&amp;lt;br&amp;gt;&lt;br /&gt;
Open &amp;quot;Terminal&amp;quot; or use SSH to login into server as root, run these commands:&lt;br /&gt;
&lt;br /&gt;
:''cd /etc/openvpn/amahi''&lt;br /&gt;
:''openvpn -–genkey -–secret ta.key''&lt;br /&gt;
&lt;br /&gt;
*If using Terminal:&lt;br /&gt;
::''gedit /etc/openvpn/amahi.conf''&lt;br /&gt;
&lt;br /&gt;
*If using SSH: &lt;br /&gt;
::''nano /etc/openvpn/amahi.conf&lt;br /&gt;
&lt;br /&gt;
Now add these lines to the end of file:&lt;br /&gt;
:''tls-auth /etc/openvpn/amahi/ta.key 0''&lt;br /&gt;
:''cipher AES-256-CBC''&lt;br /&gt;
&lt;br /&gt;
Save the config file:&lt;br /&gt;
:*If using Terminal : Save the file (Ctrl+s)''&lt;br /&gt;
:*If using SSH: press Ctrl+x , then y ,then press Enter&lt;br /&gt;
&lt;br /&gt;
Let's restart openvpn service:&lt;br /&gt;
:''service openvpn restart''&lt;br /&gt;
&lt;br /&gt;
You'll get something like this after this command :&lt;br /&gt;
:''Shutting down openvpn.... [OK]&lt;br /&gt;
:''Starting openvpn... [OK]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OK, there is one more thing left to do on server, you need to copy &amp;quot;ta.key&amp;quot; to a shared folder, because you have to use it on VPN client. a simple way to do this is to enter the following command, it will copy &amp;quot;ta.key&amp;quot; to &amp;quot;Docs&amp;quot; share folder which is accessible via Windows Share:&lt;br /&gt;
&lt;br /&gt;
:''cp /etc/openvpn/amahi/ta.key /var/hda/files/docs''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Things to do on Client:'''&lt;br /&gt;
:*If using windows: Run HDAConnect GUI, right-click on the red &amp;quot;A&amp;quot; icon in tray &amp;amp; choose &amp;quot;Edit Config&amp;quot;.&lt;br /&gt;
:* If using other OS, you need to edit OpenVpn client config file via a text editor.&amp;lt;br&amp;gt;&lt;br /&gt;
Now add these lines to end of the file:&lt;br /&gt;
&lt;br /&gt;
:''tls-auth ta.key 1''&lt;br /&gt;
:''cipher AES-256-CBC''&lt;br /&gt;
&lt;br /&gt;
Then save it, now we need to copy &amp;quot;ta.key&amp;quot; to the folder where the config file exists.&lt;br /&gt;
:*On 32-bit Windows it should be copied to &amp;quot;C:\Program files\HDAConnect\config&amp;quot;.&lt;br /&gt;
:*On 64-bit Windows copy it to &amp;quot;C:\Program Files (x86)\HDAConnect\config&amp;quot;.&lt;br /&gt;
:*On other OS, it should be placed where the config file exists.&lt;br /&gt;
&lt;br /&gt;
='''Done!'''=&lt;br /&gt;
Everything is set, fire up Openvpn client and use your username/password to connect.&amp;lt;br&amp;gt;(As you know you cannot make a vpn tunnel from yourself to yourself! so you have to test it from another network.)&lt;/div&gt;</summary>
		<author><name>Alireza2n</name></author>
		
	</entry>
</feed>