Skip to content
Najman Husaini edited this page Feb 7, 2024 · 1 revision

Lunaserver only has one connection to the outside world, and that is through port 22735 of 5.tcp.ngrok.io. This is only a TCP port, and is used primarily for ssh. However, what if we wanted to test Lunabase, which requires a remote connection to a different, UDP port? What if we wanted to start a remote display so we could look at graphical data only available on Lunaserver?

Traditionally, we would start an ssh tunnel, but this required members to run a program on the server and their own computer, and this would be done for each port that they wanted. Now, we have implemented a multiplexer over port 22735 that would reroute regular ssh traffic to port 22, and OpenVPN traffic to port 1194. This means that people using ssh are completely unaffected, but now Lunaserver is also acting as a literal VPN server. Members can connect to this VPN server to be on the same Virtual Private Network as Lunaserver. This means that it is equivalent to being connected to the same router as Lunaserver, which would grant you access to all the ports on Lunaserver! A funny quirk is that a VPN server is not an actual member of its own network, so Lunaserver also connects to itself as a client. So it is both a server and a client!

To get started, download an OpenVPN client at this link. Next, contact me, indicating your interest in using the VPN. I will then provide you a config file that you must keep private, and also place in the config folder created by OpenVPN (for Windows, it is C:\Program Files\OpenVPN\config. For other OS', consult the internet). If you are facing issues connecting, try running OpenVPN as administrator (you may need to restart your computer if it is already running. Also remove it from your startup apps list so that you can actually start it yourself as an admin).

Clone this wiki locally