Page 1 of 1

how to connect website to raspberry pi vpn (background login)

Posted: Wed Mar 25, 2020 9:00 am
by clivesgt

i need to make a secure connection between an esp32 (microcontroller) connected wirelessly to my router and my website on the internet.

i am thinking of using a raspberry pi with piVnp as a VPN.

is there a way i can connect the website (logging in to the vpn in the background so that the user is unaware of the login process) to the vpn so that i can communicate securely with the esp32? i want the website to be open to the public. i would probably be using XMLHttpRequest(), javascript fetch or axios to communicate between esp32 and the website.