Currently our network looks like this:
The issue is that
OpenVPN Access Server does not support working behind a proxy server so some features are currently not working. As we only have 1 external IP and we have no possibilities to add some extra, i try to find a way to get
OpenVPN AS working and hosting some website's (on other servers) at the same time.
I was thinking, maybe i can "route" traffic to vpn.company.com (443) directly from pfSense (dns based port forwarding or something???) to the
OpenVPN AS and all other traffic (port 443) to the
Nginx proxy server. This would make the network looking like this:
This way, the
OpenVPN AS is not behind a proxy server anymore and can work like a direct port forwarding. The other website's still work like they currently do.
- Is it possible to do some routing, based on a (external) domain at all? (with other words can my idea work?)
- If 1. is answered with yes, is it possible with pfSense? if yes, how?
I tried to Google this and found a lot of stuff but nothing that could help me. Orriginialy I'm a software engineer and no network engineer so apologize if i ask something stupid.