firewall rule to DNS destination instead of IP

Started by robertkwild, July 20, 2022, 07:30:47 PM

Previous topic - Next topic
July 20, 2022, 07:30:47 PM Last Edit: July 20, 2022, 08:42:06 PM by robertkwild
hi all,

making a firewall rule but instead of the destination being an "ip" i want it to be a "DNS" record, is it possible to put in a DNS name ie dns.msftncsi.com and that resolves to the ip

if not has it got the plugin squid?

thanks,
rob

Create an alias containing the URL and set the fw rule destination to this alias :)
i am not an expert... just trying to help...

July 25, 2022, 07:28:03 AM #2 Last Edit: July 25, 2022, 07:37:41 AM by yourfriendarmando
This is very good to know

I'm sure this is costly L7 to L4 transition, short of loading an alias with IP blocks, or implementing proxy

Quote from: robertkwild on July 20, 2022, 07:30:47 PM
hi all,

making a firewall rule but instead of the destination being an "ip" i want it to be a "DNS" record, is it possible to put in a DNS name ie dns.msftncsi.com and that resolves to the ip

if not has it got the plugin squid?

thanks,
rob

You cannot use a DNS name in a firewall rule, only IP addresses.
You can use aliases in OPNsense and define a host/DNS name in there.