NAT Only if client from DNS
-
Hi, i use pfsense 2.1 to protect my network.
In my network, i have a http server linux / apache2.
For now i have configured NAT to forward my_ip:1234 -> http_server:80 all i working well, but i have registred a dns and i want to NAT only if client is connection to mydomain.com
Is this possible ?
Yes i know i can configure apache to only listen if domain name is used, but that's not what i want. -
There is no way around a reverse http proxy.
Search the forum for "reverse http proxy".This might be what you are looking for:
https://doc.pfsense.org/index.php/Haproxy_package