# Connecting to custom Database using VPN

**URL:** <https://community.auth0.com/t/connecting-to-custom-database-using-vpn/37453>\
**Category:** Get Help\
**Tags:** database-connections, vpn\
**Created:** [February 5, 2020, 2:43pm UTC](https://community.auth0.com/t/connecting-to-custom-database-using-vpn/37453 "2020-02-05T14:43:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GenadyMgr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/genadymgr/32/18959_2.png) [@GenadyMgr](https://community.auth0.com/u/GenadyMgr)\
**Post date:** [February 5, 2020, 2:43pm UTC](https://community.auth0.com/t/connecting-to-custom-database-using-vpn/37453/1 "2020-02-05T14:43:00Z")

</div>

Hi all!  
I’m trying to use custom database to connect to my existing Users in my DB. The issue is that connection to the DB must go through VPN. Is there a way in Auth0 to configure VPN connection?

Thanks a lot for the help.

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [February 5, 2020, 4:50pm UTC](https://community.auth0.com/t/connecting-to-custom-database-using-vpn/37453/2 "2020-02-05T16:50:43Z")

</div>

Hi GenadyMgr

You would have to configure the VPN in the custom DB scripts in Javascript Code.

John

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 5, 2020, 5:05pm UTC](https://community.auth0.com/t/connecting-to-custom-database-using-vpn/37453/3 "2020-02-05T17:05:43Z")

</div>

Let us know if you have any further questions regarding that!

---

<div class="post-metadata">

**Author:** ![bill.adams](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bill.adams/32/34386_2.png) [@bill.adams](https://community.auth0.com/u/bill.adams)\
**Post date:** [October 25, 2022, 6:52pm UTC](https://community.auth0.com/t/connecting-to-custom-database-using-vpn/37453/4 "2022-10-25T18:52:22Z")

</div>

Any docs on how to actually set this up in the code?
