Configuring DNS caching server able to get all traffic without the firewall and with firewall only the IPV4 traffic is resolving, having some syntax issue with the config regarding the IPV6 (using FreeBSD 12.1)
Configuring IPv6 for the first time let me know if there is any error or do you suggest me to change the syntax.
Code:
ipfw -q -f flush
cmd="ipfw -q add"
pif="em0" # interface name of NIC
$cmd 00116 allow ipv6 from me6 to any 853 out proto tcp via $pif setup keep-state #Forwarding DNS to Public DNS servers via TLS
$cmd 00251 allow icmp6 from any to any proto ipv6-icmp out via $pif keep-state #to ping external IPV6 hosts
$cmd 00466 allow ipv6 from any to me6 53 in proto tcp via $pif setup keep-state #Accepting the incoming DNS TCP requests
$cmd 00467 allow ipv6 from any to me6 53 in proto udp via $pif keep-state #Accepting incoming DNS UDP requests
Last edited by a moderator: