Is it possible to create firewall rules (in this case NAT) to use hostname rather than IP? Our case is that we are going to re route traffic to different IP based on the host names. Concerning that we have multiple application running on the same port but separated in multiple local server with their own local IP. Rather than having different port setting for each server, we are looking for seamless solution by creating rule based on the hostname. CMIIW, This idea is similar with apache virtual hostname actually. Will it be possible guys? What am I looking is like code below:
it’s impossible just because packet does not contain hostnames - only IP addresses. so just replace hostnames in your rules with their IP addresses. PROFIT
Nope, we don’t load balance our DNS nor filtering on http headers. All we know is that there are applications which run on the same port within the network. And all of these application should be accessible from the net.
Thats the problem, all the DNS entry were CNAME, addressing the same IP. That’s why we need to add firewall rule based on the hostname not the IP.