Score:0

OpenVPN clinet cannot connect after re install OpenVPN server

my flag

I was forced to re-install the Ubuntu openvpn server I have many users who were connected to the server.

Before reinstall OS and installing the new OpenVPN I copy all the OpenVPN folders from etc and restored to new ubuntu folder. but old users cannot connect to the OpenVPN server but when I create a new user it can register!

Does anybody have the same issue that can help me?

Thank You

zwets avatar
us flag
I'm not familiar with the OpenVPN server setup, but if it follows standard Linux / POSIX practice, it won't keep user data in `/etc`. The `/etc` directory is for configuration, not for variable data. Most likely, it keeps user data below `/var/lib`, e.g. in `/var/lib/openvpn`.
M.Yazdian avatar
my flag
I can see users under /etc/openvpn/server/easy-rsa/pki/issued my clients just connect by crt and key file in their local computer and they don't have usernames and passwords. I can see my clients trying to connect to OpenVPN server when I do tcpdump on port 1194 but I get this error on syslog openvpn[766]: tls-crypt unwrap error: packet authentication failed
zwets avatar
us flag
Did you make sure ownership and permissions on all files were preserved when they were copied over?
zwets avatar
us flag
It will be helpful to add some logging output, as there is very little information to go on now.
M.Yazdian avatar
my flag
all the sub files and folders under /etc/openvpn/server have 0755 permission
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.