1
Zenarmor (Sensei) / Re: Upgrading Zenarmor doesn't complete without powering down
« on: August 11, 2023, 05:45:22 pm »
Nope - it's been some time since I've run it in passive mode
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
It turns out my issue was a formatting issue. I got rid of the quotes around the view name and fixed the indents and now it starts with the following custom config. I guess the older version of unbound tolerated formatting issues but the newer version doesn't.
Not sure why you need custom views here, a simple port forward rule would do just fine:
Select all (V)LANs in scope, Proto UDP, Source Any Destination Any DPort 123 Redirect 127.0.0.1 Port 123
You can then clone the rule and change NTP to DNS, adjust the proto to TCP/UDP
[01-Aug-2023 11:28:57 America/New_York] PHP Fatal error: Uncaught TypeError: flock(): Argument #1 ($stream) must be of type resource, bool given in /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/JsonKeyValueStoreField.php:132
Stack trace:
#0 /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/JsonKeyValueStoreField.php(132): flock(false, 2)
#1 /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php(193): OPNsense\Base\FieldTypes\JsonKeyValueStoreField->actionPostLoadingEvent()
#2 /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php(191): OPNsense\Base\FieldTypes\BaseField->eventPostLoading()
#3 /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php(191): OPNsense\Base\FieldTypes\BaseField->eventPostLoading()
#4 /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php(191): OPNsense\Base\FieldTypes\BaseField->eventPostLoading()
#5 /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php(191): OPNsense\Base\FieldTypes\BaseField->eventPostLoading()
#6 /usr/local/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php(367): OPNsense\Base\FieldTypes\BaseField->eventPostLoading()
#7 [internal function]: OPNsense\Base\BaseModel->__construct()
#8 /usr/local/opnsense/mvc/script/run_migrations.php(52): ReflectionClass->newInstance()
#9 {main}
thrown in /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/JsonKeyValueStoreField.php on line 132
2023-08-01T11:32:08-04:00 Error opnsense /usr/local/sbin/pluginctl: The command '/bin/kill -'TERM' '65031'' returned exit code '1', the output was 'kill: 65031: No such process'
2023-08-01T11:32:08-04:00 Notice opnsense /usr/local/sbin/pluginctl: plugins_configure unbound_start (execute task : unbound_configure_do(1))
2023-08-01T11:32:08-04:00 Notice opnsense /usr/local/sbin/pluginctl: plugins_configure unbound_start (1)
access-control-view: 10.0.10.0/24 trusted
access-control-view: 10.0.20.0/24 kids
access-control-view: 10.0.30.0/24 iot
access-control-view: 10.0.40.0/24 dmz
access-control-view: 10.0.50.0/24 cameras
view:
name: "trusted"
local-zone: "beaker.ddnsgeek.com" transparent
local-data: "opnsense.beaker.ddnsgeek.com A 10.0.10.1"
local-data: "opnsense A 10.0.10.1"
view-first: yes
view:
name: "kids"
local-zone: "beaker.ddnsgeek.com" transparent
local-data: "opnsense.beaker.ddnsgeek.com A 10.0.20.1"
local-data: "opnsense A 10.0.20.1"
view-first: yes
view:
name: "iot"
local-zone: "beaker.ddnsgeek.com" transparent
local-data: "opnsense.beaker.ddnsgeek.com A 10.0.30.1"
local-data: "opnsense A 10.0.30.1"
local-zone: "ntp.org" redirect
local-data: "ntp.org A 10.0.30.1"
view-first: yes
view:
name: "dmz"
local-zone: "beaker.ddnsgeek.com" transparent
local-data: "opnsense.beaker.ddnsgeek.com A 10.0.40.1"
local-data: "opnsense A 10.0.40.1"
view-first: yes
view:
name: "cameras"
local-zone: "beaker.ddnsgeek.com" transparent
local-data: "opnsense.beaker.ddnsgeek.com A 10.0.50.1"
local-data: "opnsense A 10.0.50.1"
local-zone: "ntp.org" redirect
local-data: "ntp.org A 10.0.50.1"
view-first: yes
Any idea of what I can look at to resolve this?
I have so little config within Unbound that there's little to clear out, but I'll give it a shot...
under general DNS> i have one DNS server applied to WAN.
9.9.9.9
my upgrade worked fine, i decided to tinker when i read this thread:
under unbound i setup DNS over TLS
9.9.9.9
dns.quad.net
port 853
traffic stopped entirely.
deleted the configuration. and everything went back to working again!
[
{
"description": "ACME client",
"pidfile": "/var/run/lighttpd-acme-challenge.pid",
"configd": {
"restart": [
"acme-http-challenge restart"
],
"start": [
"acme-http-challenge start"
],
"stop": [
"acme-http-challenge stop"
]
},
"name": "acme",
"status": "acme is running as pid 25973."
},
{
"description": "chrony daemon",
"configd": {
"restart": [
"chrony restart"
],
"start": [
"chrony start"
],
"stop": [
"chrony stop"
]
},
"name": "chronyd",
"pidfile": "/var/run/chrony/chronyd.pid",
"status": "chronyd is running as pid 13315."
},
{
"description": "System Configuration Daemon",
"pidfile": "/var/run/configd.pid",
"mwexec": {
"restart": [
"/usr/local/etc/rc.d/configd restart"
],
"start": [
"/usr/local/etc/rc.d/configd start"
],
"stop": [
"/usr/local/etc/rc.d/configd stop"
]
},
"name": "configd",
"locked": true,
"status": "configd is running as pid 252."
},
{
"description": "Cron",
"php": {
"start": [
"system_cron_configure"
],
"restart": [
"system_cron_configure"
]
},
"pidfile": "/var/run/cron.pid",
"name": "cron",
"status": "cron is running as pid 86746."
},
{
"description": "CrowdSec",
"configd": {
"restart": [
"crowdsec restart"
],
"start": [
"crowdsec start"
],
"stop": [
"crowdsec stop"
]
},
"name": "crowdsec",
"status": "crowdsec is running as pid 4807."
},
{
"description": "ddclient",
"configd": {
"restart": [
"ddclient restart"
],
"start": [
"ddclient start"
],
"stop": [
"ddclient stop"
]
},
"name": "ddclient",
"pidfile": "/var/run/ddclient.pid",
"status": "ddclient is running as pid 61506."
},
{
"name": "dhcpd",
"description": "DHCPv4 Server",
"php": {
"restart": [
"dhcpd_dhcp4_configure"
],
"start": [
"dhcpd_dhcp4_configure"
]
},
"pidfile": "/var/dhcpd/var/run/dhcpd.pid",
"status": "dhcpd is running as pid 60955."
},
{
"description": "Shaper",
"configd": {
"restart": [
"ipfw reload"
],
"start": [
"ipfw reload"
],
"stop": [
"ipfw reload"
]
},
"name": "ipfw",
"nocheck": true,
"status": "ipfw is running."
},
{
"description": "Users and Groups",
"php": {
"restart": [
"system_login_configure"
]
},
"nocheck": true,
"name": "login",
"status": "login is running."
},
{
"description": "mDNS Repeater",
"configd": {
"restart": [
"mdnsrepeater restart"
],
"start": [
"mdnsrepeater start"
],
"stop": [
"mdnsrepeater stop"
]
},
"name": "mdns-repeater",
"status": "mdns-repeater is running as pid 14027."
},
{
"description": "Monit System Monitoring",
"configd": {
"restart": [
"monit restart"
],
"start": [
"monit start"
],
"stop": [
"monit stop"
]
},
"name": "monit",
"status": "monit is running as pid 11721."
},
{
"description": "Secure Shell Daemon",
"configd": {
"restart": [
"openssh restart"
],
"start": [
"openssh start"
],
"stop": [
"openssh stop"
]
},
"pidfile": "/var/run/sshd.pid",
"name": "openssh",
"status": "openssh is running as pid 13333."
},
{
"description": "Packet Filter",
"configd": {
"restart": [
"filter reload"
]
},
"nocheck": true,
"name": "pf",
"status": "pf is running."
},
{
"description": "System routing",
"php": {
"restart": [
"system_routing_configure"
]
},
"nocheck": true,
"name": "routing",
"status": "routing is running."
},
{
"description": "System tunables",
"php": {
"restart": [
"system_sysctl_configure"
]
},
"nocheck": true,
"name": "sysctl",
"status": "sysctl is running."
},
{
"description": "Syslog-ng Daemon",
"php": {
"stop": [
"system_syslog_stop"
],
"start": [
"system_syslog_start"
],
"restart": [
"system_syslog_start"
]
},
"pidfile": "/var/run/syslog-ng.pid",
"name": "syslog-ng",
"status": "syslog-ng is running as pid 18470."
},
{
"name": "unbound",
"dns_ports": [
"53"
],
"description": "Unbound DNS",
"php": {
"restart": [
"unbound_configure_do"
],
"start": [
"unbound_configure_do"
],
"stop": [
"unbound_service_stop"
]
},
"pidfile": "/var/run/unbound.pid",
"status": "unbound is not running."
},
{
"pidfile": "/var/run/lighty-webConfigurator.pid",
"description": "Web GUI",
"php": {
"restart": [
"webgui_configure_defer"
]
},
"name": "webgui",
"locked": true,
"status": "webgui is running as pid 18277."
}
]