You need to specify the URI for the mongodb server and verify configs.
MongoDB Connection scripts for Mongoose I posted in this post here.
Otherwise, your MongoDB configs are off.
/etc/mongod.conf and make sure you update the net.bindIp
setting to 0.0.0.0
. and ensure you have firewall with port 27017 open, and MongoDB user with the necessary permissions to access the database over VPN, you need access perms. You also need to make sure you add a route to the VPN configuration to route traffic to the MongoDB server’s IP address.