Files
dawnline/backend/apply/testdata/resolver.json
T
Aemeath ac90575b0b
Build packages / CI (push) Blocked by required conditions
Build packages / Version (push) Waiting to run
CI / Web (format, types, tests, bundles) (push) Blocked by required conditions
CI / ShellCheck (push) Blocked by required conditions
CI / Backend (Go: vet, tests, a real ubusd and uhttpd) (push) Blocked by required conditions
CI / Package files (push) Blocked by required conditions
Dawnline 0.20.0
- **Backend rewritten in Go.** One daemon, `dawnlined`, replaces the whole ucode backend: the rpcd plugin, the agent, the CLI and the updater. The package no longer depends on ucode.
- **Per-architecture builds.** The release carries the backend for arm64, ARMv7, mips, mipsle and amd64; the router fetches its own after the package is installed and checks its sha256. Dawnline does not run on other architectures (older ARM, 32-bit x86, RISC-V).
- **Faster on the router.** A firewall sync takes 0.06 s instead of 0.9 s; a full apply takes about 300 ms. The portal is served by the daemon itself, without a CGI process per request.
- **Live pages.** The admin and the portal follow a live stream from the router instead of re-fetching the whole state every 30 seconds.
- **Admin redesigned in the portal's style.** Three sections (Overview · Log · Settings); a server is a page of its own with People, Places and Settings; a device opens as a dialog over its person.
- **Changes wait for «Apply».** Every setting, and a person's access, is staged in one dock before it reaches the router.
- **Configuration rollout.** After a change that makes devices fetch their configuration again, the admin shows how many have fetched it and who has not. Every setting shows beforehand (⟳N) how many devices it will touch.
- **Waiting for a decision.** Overview and People put first the people who need one (access ended, limit reached, a device that does not connect), each with its one action a tap away.
- **Bulk actions on people.** «Select» (or a long press on a card) picks several people to extend by a month, pause or resume at once.
- **Undo.** An action done from a card or a request is undone from its toast.
- **Update dialogs redesigned.** An update is one view from its question to its result; Dawnline's own update runs in it like every other, and the page reloads itself once the new version answers. Other versions are a list, each with its notes and Install on a page of its own.
- **Site to site: networks behind a router.** A router connected as a device can have networks behind it (up to eight, /16 to /30): the server routes them and applies the router's access to them. A network that shares addresses with a tunnel, the router's own networks or another site is refused by name.
- **Routers from the portal.** People can add a router and name its networks on their own page; the admin accepts or declines with a reason, or lets them through without asking.
- **Check access and Health know the networks behind routers.**
- **Usage limits reworked.** A monthly limit no longer follows the calendar. A person's month starts with their first traffic and ends a month later; the next one starts only when they connect again, so time away uses up none of it. Before, everyone's limit reset on the 1st.
- Extra data lasts until that person's month ends; «Reset usage» starts the month anew.
- A limit is for a month or for the whole term; the admin and the portal show when it resets.
- Charts that said «this month» show the last 30 days.
- After the update nobody loses what was counted: the month that was running becomes the person's first and ends on the 1st.
- **Access by time of day removed.** The Hours limit is gone from the admin, the portal and the backend; saved hours are dropped.
- **Expiry simplified.** An end date always stops access, with a heads-up three days before; the per-person choice is gone.
- **No false disconnects from sleeping phones.** A phone or a tablet stays online through ten minutes of silence.
- **Mobile Safari fixes.** Pressing a control no longer sends the page to its top; tab tracks that do not fit scroll; switches animate after a press.
2026-11-13 09:43:50 +03:00

108 lines
5.7 KiB
JSON

{
"dhcp": "config dnsmasq\n\toption domainneeded\t1\n\toption boguspriv\t1\n\toption filterwin2k\t0 # enable for dial on demand\n\toption localise_queries\t1\n\toption rebind_protection 1 # disable if upstream must serve RFC1918 addresses\n\toption rebind_localhost 1 # enable for RBL checking and similar services\n\t#list rebind_domain example.lan # whitelist RFC1918 responses for domains\n\toption local\t'/lan/'\n\toption domain\t'lan'\n\toption expandhosts\t1\n\toption nonegcache\t0\n\toption cachesize\t1000\n\toption authoritative\t1\n\toption readethers\t1\n\toption leasefile\t'/tmp/dhcp.leases'\n\toption resolvfile\t'/tmp/resolv.conf.d/resolv.conf.auto'\n\t#list server\t\t'/mycompany.local/1.2.3.4'\n\toption nonwildcard\t1 # bind to & keep track of interfaces\n\t#list interface\t\tbr-lan\n\t#list notinterface\tlo\n\t#list bogusnxdomain '64.94.110.11'\n\toption localservice\t1 # disable to allow DNS requests from non-local subnets\n\toption ednspacket_max\t1232\n\toption filter_aaaa\t0\n\toption filter_a\t\t0\n\t#list addnmount\t\t/some/path # read-only mount path to expose it to dnsmasq\n\nconfig dhcp lan\n\toption interface\tlan\n\toption start \t100\n\toption limit\t150\n\toption leasetime\t12h\n\nconfig dhcp wan\n\toption interface\twan\n\toption ignore\t1\n",
"steps": [
{
"what": "on the tunnels, home names from the LAN",
"target": {
"mode": "root",
"port": 5354
},
"lan": "192.168.77.1",
"changed": true,
"conf": "# mode=root\n# Generated by Dawnline: plain DNS for Home-only tunnel clients.\nport=5354\nno-hosts\nbogus-priv\ncache-size=1000\npid-file=/var/run/dawnline-dns.pid\nuser=dnsmasq\ngroup=dnsmasq\nbind-dynamic\ninterface=dawn0\ninterface=dawn1\ninterface=dawn2\nresolv-file=/var/etc/dawnline-dns.resolv\nserver=/lan/192.168.77.1\n",
"resolv": "nameserver 9.9.9.9\nnameserver 149.112.112.112\n",
"cmds": [
"ubus call network.interface.wan status",
"ubus call network.interface.wan6 status",
"ubus call network.interface.wan status",
"ubus call network.interface.wan6 status"
]
},
{
"what": "again: nothing to do",
"target": {
"mode": "root",
"port": 5354
},
"lan": "192.168.77.1",
"changed": false,
"conf": "# mode=root\n# Generated by Dawnline: plain DNS for Home-only tunnel clients.\nport=5354\nno-hosts\nbogus-priv\ncache-size=1000\npid-file=/var/run/dawnline-dns.pid\nuser=dnsmasq\ngroup=dnsmasq\nbind-dynamic\ninterface=dawn0\ninterface=dawn1\ninterface=dawn2\nresolv-file=/var/etc/dawnline-dns.resolv\nserver=/lan/192.168.77.1\n",
"resolv": "nameserver 9.9.9.9\nnameserver 149.112.112.112\n",
"cmds": [
"ubus call network.interface.wan status",
"ubus call network.interface.wan6 status"
]
},
{
"what": "inside the netns",
"target": {
"mode": "ns",
"address": "100.127.0.2",
"port": 53
},
"lan": "192.168.77.53",
"changed": true,
"conf": "# mode=ns\n# Generated by Dawnline: plain DNS for Home-only tunnel clients.\nport=53\nno-hosts\nbogus-priv\ncache-size=1000\npid-file=/var/run/dawnline-dns.pid\nuser=dnsmasq\ngroup=dnsmasq\nlisten-address=100.127.0.2\nbind-interfaces\nno-resolv\nserver=9.9.9.9@100.127.0.2\nserver=149.112.112.112@100.127.0.2\nserver=/lan/192.168.77.53\n",
"resolv": "nameserver 9.9.9.9\nnameserver 149.112.112.112\n",
"cmds": [
"ubus call network.interface.wan status",
"ubus call network.interface.wan6 status",
"ubus call network.interface.wan status",
"ubus call network.interface.wan6 status"
]
},
{
"what": "back on the tunnels with one of them off, no DNS on the LAN, a running one to stop",
"target": {
"mode": "root",
"port": 5354
},
"lan": null,
"changed": true,
"conf": "# mode=root\n# Generated by Dawnline: plain DNS for Home-only tunnel clients.\nport=5354\nno-hosts\nbogus-priv\ncache-size=1000\npid-file=/var/run/dawnline-dns.pid\nuser=dnsmasq\ngroup=dnsmasq\nbind-dynamic\ninterface=dawn0\ninterface=dawn2\nresolv-file=/var/etc/dawnline-dns.resolv\n",
"resolv": "nameserver 9.9.9.9\nnameserver 149.112.112.112\n",
"cmds": [
"ubus call network.interface.wan status",
"ubus call network.interface.wan6 status",
"ubus call network.interface.wan status",
"ubus call network.interface.wan6 status"
]
},
{
"what": "no tunnel on: loopback only",
"target": {
"mode": "root",
"port": 5354
},
"lan": "192.168.77.1",
"changed": true,
"conf": "# mode=root\n# Generated by Dawnline: plain DNS for Home-only tunnel clients.\nport=5354\nno-hosts\nbogus-priv\ncache-size=1000\npid-file=/var/run/dawnline-dns.pid\nuser=dnsmasq\ngroup=dnsmasq\nbind-dynamic\nlisten-address=127.0.0.1\nresolv-file=/var/etc/dawnline-dns.resolv\nserver=/lan/192.168.77.1\n",
"resolv": "nameserver 9.9.9.9\nnameserver 149.112.112.112\n",
"cmds": [
"ubus call network.interface.wan status",
"ubus call network.interface.wan6 status",
"ubus call network.interface.wan status",
"ubus call network.interface.wan6 status"
]
},
{
"what": "the WAN says nothing of DNS: two public ones",
"target": {
"mode": "ns",
"address": "100.127.0.2",
"port": 53
},
"lan": "192.168.77.1",
"changed": true,
"conf": "# mode=ns\n# Generated by Dawnline: plain DNS for Home-only tunnel clients.\nport=53\nno-hosts\nbogus-priv\ncache-size=1000\npid-file=/var/run/dawnline-dns.pid\nuser=dnsmasq\ngroup=dnsmasq\nlisten-address=100.127.0.2\nbind-interfaces\nno-resolv\nserver=1.1.1.1@100.127.0.2\nserver=8.8.8.8@100.127.0.2\nserver=/lan/192.168.77.1\n",
"resolv": "nameserver 9.9.9.9\nnameserver 149.112.112.112\n",
"cmds": [
"ubus call network.interface.wan status",
"ubus call network.interface.wan6 status",
"ubus call network.interface.wan status",
"ubus call network.interface.wan6 status"
]
}
]
}