Hi.
I`ve AdguardHome running in a container in a server in my lan. I want thar all DNS requests go to that server, so I've configured in firewall this:
config redirect
option dest 'lan'
option target 'DNAT'
option name 'DNS'
option src 'lan'
option src_ip '!192.168.3.2'
option src_dport '53'
option dest_ip '192.168.3.2'
option dest_port '53'
option enabled '1'
config nat
option name 'DNS'
list proto 'tcp'
list proto 'udp'
option src 'lan'
option dest_ip '192.168.3.2'
option dest_port '53'
option target 'MASQUERADE'
192.168.3.2 is the IP of docker server (port 53 is exposed from AdguardHome container)
All is ok, but Adguard shows all request as originated by 192.168.3.1 (router). Is there any option to preserve the client IP and adguard shows it in the dashboard? I thought that masquerade rule was for that...
Thanks