Forward name to internal host
-
How can i forward the name requests to a internal host?
Example:
subdomian1.domain.com -> 192.168.0.2
subdomain2.domain.com -> 192.168.0.3
subdomain3.domain.com -> 192.168.0.4The pfsense can do that?
-
depends on what it is, you can do a domain override for that subdomain.
https://fwip/services_dnsmasq.php
add it there under host, if you need more than that you need to setup tinyDNS
yes
-
If you only have one public IP, you can't do that for most services.
For web servers, you can try to use a reverse proxy. There are a couple packages, mod_proxy and haproxy that might be able to do this by name.
For other services, they do not differentiate based on the hostname used, only the IP address. You'd have to use different port numbers for each domain.
On the other hand, if you have multiple public IPs, just setup 1:1 NAT between the public IP for that hostname and the private IP you want it to match up with.