hello,is the firt time I had to say "the problem is my FreeBSD"..but well
the scenario is this, I have a proxy/firewall with PF , in the rules I had one to redirect all traffic for port 53 to my internal dns server
so no matter if the user change his dns in network settings always will pass from my dns server
<red_local> is a table with the list of local ip that I want to have this redirect (to exclude servers and "special" users)
and my FreeBSD box is in that table...
I tested it with Windows machines and its works,no matter what dns i put, allways pass to 192.168.1.254
but my box not, respect %100 the /etc/resolv.conf file
and more, in tcpdump (in proxy) there is notting and 192.168.1.3 is my machine
when I change the src host I see the others machines redirecting to my internal dns
the scenario is this, I have a proxy/firewall with PF , in the rules I had one to redirect all traffic for port 53 to my internal dns server
so no matter if the user change his dns in network settings always will pass from my dns server
Code:
rdr on $int_if proto { tcp , udp } from <red_local> to any port 53 -> 192.168.1.254 port 53
<red_local> is a table with the list of local ip that I want to have this redirect (to exclude servers and "special" users)
and my FreeBSD box is in that table...
I tested it with Windows machines and its works,no matter what dns i put, allways pass to 192.168.1.254
but my box not, respect %100 the /etc/resolv.conf file
and more, in tcpdump (in proxy) there is notting and 192.168.1.3 is my machine
Code:
tcpdump -i em1 -n -e -tttt src host 192.168.1.3 and port 53
when I change the src host I see the others machines redirecting to my internal dns