1
General Discussion / Re: Unbound returns IPs of all interfaces OPNsense
« on: August 03, 2024, 08:02:03 pm »@stefanpf Thanks a lot! It works great
Maybe for someone else comes in handy; Add to field "Custom options";Code: [Select]#Access control for remote IP Range
access-control-view: 192.168.130.128/25 bridgelan
access-control-view: 192.168.131.128/29 wirelessguest
access-control-view: 192.168.132.1/24 bridgeiot
access-control-view: 192.168.133.128/29 dmz
#View to return for external range only defined ip for firewall, assumed 192.168.100.254 is the IP of opnsense
view:
name: "bridgelan"
local-zone: "myradon.net" transparent
local-data: "opnsense.myradon.net A 192.168.130.129"
local-data: "opnsense A 192.168.130.129"
#view-first Unbound will try to use the view’s local-zone tree, and if there is no match it will search the global tree.
view-first: yes
view:
name: "wirelessguest"
local-zone: "myradon.net" transparent
local-data: "opnsense.myradon.net A 192.168.131.129"
local-data: "opnsense A 192.168.131.129"
#view-first Unbound will try to use the view’s local-zone tree, and if there is no match it will search the global tree.
view-first: yes
view:
name: "bridgeiot"
local-zone: "myradon.net" transparent
local-data: "opnsense.myradon.net A 192.168.132.1"
local-data: "opnsense A 192.168.132.1"
#view-first Unbound will try to use the view’s local-zone tree, and if there is no match it will search the global tree.
view-first: yes
view:
name: "dmz"
local-zone: "myradon.net" transparent
local-data: "opnsense.myradon.net A 192.168.133.129"
local-data: "opnsense A 192.168.133.129"
#view-first Unbound will try to use the view’s local-zone tree, and if there is no match it will search the global tree.
view-first: yes
Hey, have you found a better option? I was thinking of adding an override to have just 1 IP