Regarding line endings, try Notepad++ for Windows.
It can covert the line endings iirc.
Hmac Address not found
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
- Pippin
- Forum Team
- Posts: 1201
- Joined: Wed Jul 01, 2015 8:03 am
- Location: irc://irc.libera.chat:6697/openvpn
Re: Hmac Address not found
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp
Halton Arp
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Hmac Address not found
Let me re-state what I mean. You are not using Easy-TLS correctly ..Mythic1049 wrote: ↑Wed Mar 17, 2021 5:51 pmI don't understand what makes you think I'm not using Easy-TLS
When Easy-TLS creates an inline file the TLS-AUTH key is the last inline section. However, in your files the TLS-AUTH key is the first inline section, so you have edited the file in an unexpected way. In doing so, you have made some error.
You don't need to edit the inline file at all, instead you can reference it like so:
Code: Select all
# THIS IS AN EXAMPLE, IT IS NOT LIVE CODE.
server 10.8.0.0 255.255.255.0
config "C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\easytls\\RoyerServer1.inline"
And finally, do not address the key file directly with:
Code: Select all
tls-auth ta.key 1
-
- OpenVpn Newbie
- Posts: 12
- Joined: Tue Mar 09, 2021 3:58 am
Re: Hmac Address not found
Well, the solution turns out to be a whole lot simpler. I got too frustrated and was over thinking the process, and most importantly the VERY basic steps. Turns out the port I was using was already in use by an old openvpn I built 3 years ago. My new current client was failing to authorize on a 3 year old server. So no wonder I couldn't find out why the tls-auth wasn't working even though my side was correct. I appreciate your help and I'm sorry I turned a small fix into a headache. Definitely educated myself on this new process as well. Thank you again.TinCanTech wrote: ↑Wed Mar 17, 2021 6:13 pmLet me re-state what I mean. You are not using Easy-TLS correctly ..Mythic1049 wrote: ↑Wed Mar 17, 2021 5:51 pmI don't understand what makes you think I'm not using Easy-TLS
When Easy-TLS creates an inline file the TLS-AUTH key is the last inline section. However, in your files the TLS-AUTH key is the first inline section, so you have edited the file in an unexpected way. In doing so, you have made some error.
You don't need to edit the inline file at all, instead you can reference it like so:
You can do the same in your client config but you must ensure that the inline file is the correct one and it remains intact as you transfer it. I don't have a MAC to test this on, so you'll have to figure that out for yourself.Code: Select all
# THIS IS AN EXAMPLE, IT IS NOT LIVE CODE. server 10.8.0.0 255.255.255.0 config "C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\easytls\\RoyerServer1.inline"
And finally, do not address the key file directly with:or any other way because this will conflict with the inline file.Code: Select all
tls-auth ta.key 1
Hopefully this whole thread, can help out someone new to openvpn and it's inline files.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Hmac Address not found
No problem.Mythic1049 wrote: ↑Wed Mar 17, 2021 9:48 pmI appreciate your help and I'm sorry I turned a small fix into a headache
And thanks for trying out Easy-TLS, I hope it helps you in future.