There’s an internal ip address for the VPN server, say 4.3.2.1, you point the http dns record to that address.
The VPN server has 2 addresses by definition, an internal address and an external, public one that you connect the VPN to. Make sure the webserver only exposes itself on the private address, either by configuration (nginx/apache listen address) or by firewall (iptables -A input -j DROP)
elbarto777@lemmy.world 1 year ago
Whatever you do with IPs, you can do with ports too.
“Allow this port, but not that one”.
TheQuantumPhysicist@lemmy.world 1 year ago
Please see this comment to understand my frustrations with the answers in this thread: lemmy.world/comment/2363248
elbarto777@lemmy.world 1 year ago
I’m sorry. I don’t know enough about the subject. I’m sure there are firewall daemons, or IPTABLES configuration that can do what you want, but that’s beyond my area of expertise. Good luck.