DNS Resolver
-
Hello All,
I'm facing a strange issue in DNS Resolver custom-option.
If I allowed any restricted user in bypass list , it works fine and restriction lifted and If I block that user again just simply adding
#access-control-view: 192.168.2.10/32 bypass
it does not block that IP and user able to access all website :/ . I've gone the pfblocker-ng config if there is any issue it should not blocked that ip in first place .
server: # access-control-view: 1192.168.2.10/32 bypass access-control-view: 192.168.2.0/24 dnsbl view: name: "bypass" view-first: yes view: name: "dnsbl" view-first: yes include: /var/unbound/pfb_dnsbl.*conf
Regards
-
The image shows that pfBlockerNg-devel adds
"/var/unbound/pfb_dnsbl.*conf" in a include block, which is put in a "server" block.You've added "include: /var/unbound/pfb_dnsbl.*conf" in a "view" block.
Is is (syntax) possible ?
-
Thanks for your prompt response @Gertjan
well I have been using config above for months with out any issue. let me put include after server and will get back to you.server: include: /var/unbound/pfb_dnsbl.*conf # access-control-view: 1192.168.2.10/32 bypass access-control-view: 1192.168.2.11/32 bypass access-control-view: 192.168.2.0/24 dnsbl view: name: "bypass" view-first: yes view: name: "dnsbl" view-first: yes
Doing above config now youtube is blocked for every one :/ . even bypass IPs . So I changed it config back to old .
Regards
-
@Gertjan said in DNS Resolver:
Is is (syntax) possible ?
Well ... your initial "Custom options" wasn't wrong.
Gogol pointed me to
https://forum.netgate.com/topic/129365/bypassing-dnsbl-for-specific-ipswhere you will find
: "this works for me"
: "doesn't work for me".Can't tell what why it works for one, and not for another.
-
well very strange thing I've seen , when putting static 8.8.8.8 on windows client as secondary DNS and primary DNS of my pfsense IP . it does open youtube , if I remove Secondary DNS 8.8.8.8 it does block youtube and other sites which pfblocker should do . :/ . I do have firewall rule
I do I prevent users not use other then firewall IP as primary DNS.Regards