1 |
Thank you. [SOLVED] |
2 |
|
3 |
All I needed was on sever.conf line: |
4 |
tls-auth /etc/openvpn/cert/ta.key 0 |
5 |
|
6 |
In my case it was pointing it to a wrong file :-/ |
7 |
|
8 |
Thelma |
9 |
|
10 |
On 02/22/2020 03:30 AM, Roger Welsh wrote: |
11 |
> Hi Thelma, |
12 |
> |
13 |
> I think you need |
14 |
> tls-server |
15 |
> And |
16 |
> tls-client |
17 |
> In your respective configs below. |
18 |
> |
19 |
> Reference: |
20 |
> https://askubuntu.com/questions/594868/openvpn-hmac-authentication-failure-no-matter-what-i-do |
21 |
> |
22 |
> And |
23 |
> https://openvpn.net/community-resources/reference-manual-for-openvpn-2-4/ |
24 |
> Grep for tls-server. |
25 |
> |
26 |
> |
27 |
> On 22 February 2020 11:08:02 PM NZDT, thelma@×××××××××××.com wrote: |
28 |
>> When I try to start openVPN on a client I see this error on a server: |
29 |
>> |
30 |
>> Sat Feb 22 02:32:10 2020 Authenticate/Decrypt packet error: packet HMAC |
31 |
>> authentication failed |
32 |
>> Sat Feb 22 02:32:10 2020 TLS Error: incoming packet authentication |
33 |
>> failed from [AF_INET] |
34 |
>> |
35 |
>> cat server.conf |
36 |
>> proto udp |
37 |
>> port 9000 |
38 |
>> dev tun |
39 |
>> mode server |
40 |
>> ca /etc/openvpn/cert/ca.crt |
41 |
>> cert /etc/openvpn/cert/clinic_atom.crt |
42 |
>> key /etc/openvpn/cert/clinic_atom.key |
43 |
>> dh /etc/openvpn/cert/dh.pem |
44 |
>> topology subnet |
45 |
>> server 192.168.141.0 255.255.255.0 |
46 |
>> client-to-client |
47 |
>> ifconfig-pool-persist ipp.txt |
48 |
>> client-config-dir ccd |
49 |
>> keepalive 10 120 |
50 |
>> tls-auth vpn_clinic.key 0 |
51 |
>> tun-mtu 1500 |
52 |
>> tun-mtu-extra 32 |
53 |
>> mssfix 1200 |
54 |
>> duplicate-cn |
55 |
>> comp-lzo |
56 |
>> max-clients 100 |
57 |
>> persist-key |
58 |
>> persist-tun |
59 |
>> status openvpn-status.log |
60 |
>> log /var/log/openvpn.log |
61 |
>> log-append /var/log/openvpn.log |
62 |
>> verb 3 |
63 |
>> |
64 |
>> On client-config: |
65 |
>> clinic_atom.conf |
66 |
>> client |
67 |
>> dev tun |
68 |
>> proto udp |
69 |
>> port 9070 |
70 |
>> topology subnet |
71 |
>> remote xxx.xx.xx.xx 9070 # static IP |
72 |
>> resolv-retry infinite |
73 |
>> tun-mtu 1500 |
74 |
>> tun-mtu-extra 32 |
75 |
>> mssfix 1200 |
76 |
>> persist-key |
77 |
>> persist-tun |
78 |
>> remote-cert-tls server |
79 |
>> ca "/etc/openvpn/clinic_atom/ca.crt" |
80 |
>> cert "/etc/openvpn/clinic_atom/syscon7.crt" |
81 |
>> key "/etc/openvpn/clinic_atom/syscon7.key" |
82 |
>> tls-auth "/etc/openvpn/clinic_atom/ta.key" 1 |
83 |
>> comp-lzo |
84 |
>> log /var/log/openvpn.log |
85 |
>> log-append /var/log/openvpn.log |
86 |
>> verb 3 |
87 |
>> |
88 |
>> -- |
89 |
>> Thelma |
90 |
> |
91 |
> -- |
92 |
> Kind regards, |
93 |
> |
94 |
> Roger |
95 |
> |