I'm trying to configure a DNS redirect for all my client IPs, except a specific IP range. The DNS redirect works fine, but the excluded IP range gets ignored so far. Something seems to be wrong with my config. I tried this with address-lists and with one single IP address, but the result was the same.
Following configuration:
Code: Select all
# Create a list for the excluded IP Range
/ip firewall address-list
add list=UseLocalDNS address=192.168.10.220-224
add list=UseLocalDNS address=192.168.20.220-224
# Create NAT rule to redirect DNS to 192.168.255.1 for all IPs, except the IPs in the address-list "UseLocalDNS"
/ip firewall nat
add chain=dstnat action=dst-nat src-address-list=!UseLocalDNS to-addresses=192.168.255.1 to-ports=53 protocol=tcp dst-port=53
add chain=dstnat action=dst-nat src-address-list=!UseLocalDNS to-addresses=192.168.255.1 to-ports=53 protocol=udp dst-port=53
Best regards