interface=SERVER is interface where is connected my server eth10_ISP is interface which is connected to ISP dst-address=192.168.1.6 is my internal AD/DC server which forwards all DNS query to ISP
my goal is allow from the SERVER to the Internet DNS query only, but via the rule is allows also ICMP
what is the best way to isolate the server by Internet?
ThankYou
The first rule accepts DNS queries in the forward chain. If a connection from your server matches these criteria, it will not be processed further in the firewall.
The second rule matches all other traffic which does not match the rule above.
Of course, you could also just invert your protocol matcher to protocol=!udp in your drop rule but that makes it:
harder to read and understand in the config
harder to add possible future exceptions when you encounter them (think of NTP for example)