My PC doesn't have a public IP, so I want to use a VPN with support for port forwarding for the following applications:
- Remote access software
- Home Assistant
- SSH
- LM Studio
- A1111 (gradio)
- ... and possibly more
I will be interacting with these applications via an Android phone with an internet connection.
Between the cheap VPN options I looked at, all of them expose a single random port. Of course, I can't use a single port for the above services, since Linux won't know which application wants what traffic. However, I had an idea:
The client device could set the destination port for all segments to the VPN's port, but encapsulate the application data in another layer that contains the destination port. The server would then look at this layer and determine which application to send the data to. The same would happen for packets in the other direction.
Does this sound possible? Does software that facilitates this exist?