I recently put up a new DNS server using 'bind9' and installed CSF.
I prefer to filter outgoing traffic, as much as possible, as well as incoming.
In the past, I allowed port 53 TCP and UDP in both incoming and outgoing directions with TCP_IN, TCP_OUT, UDP_IN and UDP_OUT.
However, apparently, by default and for security reasons, Bind9 uses random source ports for outside lookups. This can apparently be modified with a named.conf configuration option like:
Code: Select all
query-source address * port 53;
Code: Select all
using specific query-source port suppresses port randomization and can be insecure
Thanks in advance,
G