# Failed to authenticate through VPN

**URL:** <https://forums.vitalpbx.org/t/failed-to-authenticate-through-vpn/2091>\
**Category:** VitalPBX\
**Created:** [December 7, 2022, 1:04pm UTC](https://forums.vitalpbx.org/t/failed-to-authenticate-through-vpn/2091 "2022-12-07T13:04:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fdeutsch51](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/f/46a35a/32.png) [@fdeutsch51](https://forums.vitalpbx.org/u/fdeutsch51)\
**Post date:** [December 7, 2022, 1:04pm UTC](https://forums.vitalpbx.org/t/failed-to-authenticate-through-vpn/2091/1 "2022-12-07T13:04:08Z")

</div>

Hello everyone,

I have two VitalPBXs on two different sites linked by a built in OpenVPN tunnel, I have a trunk on both side to make sure my calls go through as if it was internal calls.

My trunk is up as my calls go through the other VitalPBX (seen via _sngrep -c_) but are rejected because of _No matching endpoint found_ and _Failed to authenticate_ (seen via _asterisk -rvvvv_)

I am a novice regarding Asterisk so I don’t really know what I am doing wrong.

Does anyone have run into this issue before ?

Regards,

---

<div class="post-metadata">

**Author:** ![miguel](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/miguel/32/415_2.png) [@miguel](https://forums.vitalpbx.org/u/miguel)\
**Post date:** [December 7, 2022, 5:51pm UTC](https://forums.vitalpbx.org/t/failed-to-authenticate-through-vpn/2091/2 "2022-12-07T17:51:03Z")

</div>

Are you using PJSIP for your trunks?

Did you define the IP Address of your server under the match field of your trunk?

---

<div class="post-metadata">

**Author:** ![fdeutsch51](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/f/46a35a/32.png) [@fdeutsch51](https://forums.vitalpbx.org/u/fdeutsch51)\
**Post date:** [December 30, 2022, 11:29am UTC](https://forums.vitalpbx.org/t/failed-to-authenticate-through-vpn/2091/3 "2022-12-30T11:29:52Z")

</div>

I was using PJSIP trunks but switched to SIP and it is working now.

Thanks for the reply.

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://forums.vitalpbx.org/uploads/default/original/1X/672b458a1d454755270c2c16adc5316b641c3c6a.png) [@system](https://forums.vitalpbx.org/u/system)\
**Post date:** [January 29, 2023, 11:29am UTC](https://forums.vitalpbx.org/t/failed-to-authenticate-through-vpn/2091/4 "2023-01-29T11:29:57Z")

</div>

Closed on January 29, 2023, 11:29am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
