Just a heads-up, everything that I’m writing below could be completely wrong since it’s my newbie guesses, so if you have a better idea on how to do this, I’ll listen.
Hello, I’ve been searching for a while, but I couldn’t figure it out by myself how to do this, I’ve come across a few posts, so I know that this is possible.
So far, I know that I would need to assign a custom DNS, so my machine actually solves the domain locally. This part is covered (I think) since I use a OpenWrt router in my setup with the main DNS being the router itself.
But now I need to figure it out how to bind my host IP (192.168.2.X) to a local domain (example.home or something like that), I do use PBR on my router to preroute stuff to my VPN Interface, but nothing else, I think it can of use somehow.
This post is intended for me to learn this stuff, since I have no idea how to this, and I’m only that on my local network for the sake of it. So if there’s any misconceptions or something that makes no sense, my bad.
If any info is needed, I’ll gladly provide, thanks.
P.S. After doing the DNS part, if anyone knows about doing a self-signed certificate for each domain, I would appreciate it.