OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: Yourry on December 15, 2021, 06:28:07 PM

Title: openvpn client + server
Post by: Yourry on December 15, 2021, 06:28:07 PM
Hello everyone,
I wanted to know if there are any people using the openvpn client and the openvpn server.
I would eventually like to set up a specific vlan with a client vpn and on another vlan access to my home automation via openvpn server.
At the moment I just can't seem to get both to work.
If I stop the client, the server is working correctly and I can connect with my phone for example.
On the other hand if I activate the VPN customer service (I am at NordVPN) then impossible to connect with my phone.
The log file indicates this error:

Server VPN (nok):
2021-12-15T18:14:25 openvpn[43478] XX.XX.XX.XX:49605 TLS Error: incoming packet authentication failed from [AF_INET]XX.XX.XX.XX:49605
2021-12-15T18:14:25 openvpn[43478] XX.XX.XX.XX:49605 Authenticate/Decrypt packet error: bad packet ID (may be a replay): [ #1 / time = (1639588468) 2021-12-15 18:14:28 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
2021-12-15T18:14:24 openvpn[43478] XX.XX.XX.XX:49605 TLS Error: incoming packet authentication failed from [AF_INET]XX.XX.XX.XX:49605
2021-12-15T18:14:24 openvpn[43478] XX.XX.XX.XX:49605 Authenticate/Decrypt packet error: bad packet ID (may be a replay): [ #1 / time = (1639588468) 2021-12-15 18:14:28 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings

Client VPN (ok):
2021-12-15T18:12:28 openvpn[79666] Initialization Sequence Completed


I specify that the WAN does not pass via the vpn client (nordvpn).
Thank you
Title: Re: openvpn client + server
Post by: Yourry on January 08, 2022, 10:47:31 AM
Hello everyone,
I have tried to assign virtual interfaces for the server and client but it does not work. While I had a config where it worked.
Worse, so as not to spend too much time, I installed Wireguard telling myself that I connect by VPN with wireguard for home automation and with the openVPN client for the machines on the lan that need NordVPN and that ... . does not work.
Either alone works but if I run both at the same time Wireguard doesn't work anymore ...
It is to understand nothing!