Dawnline 0.20.0
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
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
- **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.
This commit is contained in:
1 parent
f8130e39a8
commit
ac90575b0b
788 files changed
+139244
-41720
No files matched your search
Vendored
+122
@@ -0,0 +1,122 @@
|
||||
{
|
||||
"steps": [
|
||||
{
|
||||
"what": "the first time: a zone a tunnel, the way home and out, the ports",
|
||||
"dry": false,
|
||||
"changed": true,
|
||||
"before": "config defaults\n\toption syn_flood\t1\n\toption input\t\tREJECT\n\toption output\t\tACCEPT\n\toption forward\t\tREJECT\n# Uncomment this line to disable ipv6 rules\n#\toption disable_ipv6\t1\n\nconfig zone\n\toption name\t\tlan\n\tlist network\t\t'lan'\n\toption input\t\tACCEPT\n\toption output\t\tACCEPT\n\toption forward\t\tACCEPT\n\nconfig zone\n\toption name\t\twan\n\tlist network\t\t'wan'\n\tlist network\t\t'wan6'\n\toption input\t\tREJECT\n\toption output\t\tACCEPT\n\toption forward\t\tDROP\n\toption masq\t\t1\n\toption mtu_fix\t\t1\n\nconfig forwarding\n\toption src\t\tlan\n\toption dest\t\twan\n\n# We need to accept udp packets on port 68,\n# see https://dev.openwrt.org/ticket/4108\nconfig rule\n\toption name\t\tAllow-DHCP-Renew\n\toption src\t\twan\n\toption proto\t\tudp\n\toption dest_port\t68\n\toption target\t\tACCEPT\n\toption family\t\tipv4\n\n# Allow IPv4 ping\nconfig rule\n\toption name\t\tAllow-Ping\n\toption src\t\twan\n\toption proto\t\ticmp\n\toption icmp_type\techo-request\n\toption family\t\tipv4\n\toption target\t\tACCEPT\n\nconfig rule\n\toption name\t\tAllow-IGMP\n\toption src\t\twan\n\toption proto\t\tigmp\n\toption family\t\tipv4\n\toption target\t\tACCEPT\n\n# Allow DHCPv6 replies\n# see https://github.com/openwrt/openwrt/issues/5066\nconfig rule\n\toption name\t\tAllow-DHCPv6\n\toption src\t\twan\n\toption proto\t\tudp\n\toption dest_port\t546\n\toption family\t\tipv6\n\toption target\t\tACCEPT\n\nconfig rule\n\toption name\t\tAllow-MLD\n\toption src\t\twan\n\toption proto\t\ticmp\n\toption src_ip\t\tfe80::/10\n\tlist icmp_type\t\t'130/0'\n\tlist icmp_type\t\t'131/0'\n\tlist icmp_type\t\t'132/0'\n\tlist icmp_type\t\t'143/0'\n\toption family\t\tipv6\n\toption target\t\tACCEPT\n\n# Allow essential incoming IPv6 ICMP traffic\nconfig rule\n\toption name\t\tAllow-ICMPv6-Input\n\toption src\t\twan\n\toption proto\ticmp\n\tlist icmp_type\t\techo-request\n\tlist icmp_type\t\techo-reply\n\tlist icmp_type\t\tdestination-unreachable\n\tlist icmp_type\t\tpacket-too-big\n\tlist icmp_type\t\ttime-exceeded\n\tlist icmp_type\t\tbad-header\n\tlist icmp_type\t\tunknown-header-type\n\tlist icmp_type\t\trouter-solicitation\n\tlist icmp_type\t\tneighbour-solicitation\n\tlist icmp_type\t\trouter-advertisement\n\tlist icmp_type\t\tneighbour-advertisement\n\toption limit\t\t1000/sec\n\toption family\t\tipv6\n\toption target\t\tACCEPT\n\n# Allow essential forwarded IPv6 ICMP traffic\nconfig rule\n\toption name\t\tAllow-ICMPv6-Forward\n\toption src\t\twan\n\toption dest\t\t*\n\toption proto\t\ticmp\n\tlist icmp_type\t\techo-request\n\tlist icmp_type\t\techo-reply\n\tlist icmp_type\t\tdestination-unreachable\n\tlist icmp_type\t\tpacket-too-big\n\tlist icmp_type\t\ttime-exceeded\n\tlist icmp_type\t\tbad-header\n\tlist icmp_type\t\tunknown-header-type\n\toption limit\t\t1000/sec\n\toption family\t\tipv6\n\toption target\t\tACCEPT\n\nconfig rule\n\toption name\t\tAllow-IPSec-ESP\n\toption src\t\twan\n\toption dest\t\tlan\n\toption proto\t\tesp\n\toption target\t\tACCEPT\n\nconfig rule\n\toption name\t\tAllow-ISAKMP\n\toption src\t\twan\n\toption dest\t\tlan\n\toption dest_port\t500\n\toption proto\t\tudp\n\toption target\t\tACCEPT\n\n\n### EXAMPLE CONFIG SECTIONS\n# do not allow a specific ip to access wan\n#config rule\n#\toption src\t\tlan\n#\toption src_ip\t192.168.45.2\n#\toption dest\t\twan\n#\toption proto\ttcp\n#\toption target\tREJECT\n\n# block a specific mac on wan\n#config rule\n#\toption dest\t\twan\n#\toption src_mac\t00:11:22:33:44:66\n#\toption target\tREJECT\n\n# block incoming ICMP traffic on a zone\n#config rule\n#\toption src\t\tlan\n#\toption proto\tICMP\n#\toption target\tDROP\n\n# port redirect port coming in on wan to lan\n#config redirect\n#\toption src\t\t\twan\n#\toption src_dport\t80\n#\toption dest\t\t\tlan\n#\toption dest_ip\t\t192.168.16.235\n#\toption dest_port\t80\n#\toption proto\t\ttcp\n\n# port redirect of remapped ssh port (22001) on wan\n#config redirect\n#\toption src\t\twan\n#\toption src_dport\t22001\n#\toption dest\t\tlan\n#\toption dest_port\t22\n#\toption proto\t\ttcp\n\n### FULL CONFIG SECTIONS\n#config rule\n#\toption src\t\tlan\n#\toption src_ip\t192.168.45.2\n#\toption src_mac\t00:11:22:33:44:55\n#\toption src_port\t80\n#\toption dest\t\twan\n#\toption dest_ip\t194.25.2.129\n#\toption dest_port\t120\n#\toption proto\ttcp\n#\toption target\tREJECT\n\n#config redirect\n#\toption src\t\tlan\n#\toption src_ip\t192.168.45.2\n#\toption src_mac\t00:11:22:33:44:55\n#\toption src_port\t\t1024\n#\toption src_dport\t80\n#\toption dest_ip\t194.25.2.129\n#\toption dest_port\t120\n#\toption proto\ttcp\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n",
|
||||
"firewall": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig rule 'dawnline_home_loopdns'\n\toption name 'Dawnline-dawn0-names'\n\toption src 'dawn0'\n\toption dest 'dl_loop'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4500'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_cabin_zone'\n\toption name 'dawn1'\n\tlist network 'dawn1'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_cabin_lan'\n\toption src 'dawn1'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_cabin_from_lan'\n\toption src 'home'\n\toption dest 'dawn1'\n\nconfig forwarding 'dawnline_cabin_wan'\n\toption src 'dawn1'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_cabin_loop'\n\toption src 'dawn1'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_cabin_port'\n\toption name 'Dawnline-dawn1'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4600'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'home'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_open_loop'\n\toption src 'dawn2'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4700Line truncated
|
||||
"cmds": [
|
||||
"ubus call network.interface dump",
|
||||
"fw4 -q reload"
|
||||
]
|
||||
},
|
||||
{
|
||||
"what": "again: nothing to do",
|
||||
"dry": false,
|
||||
"changed": false,
|
||||
"before": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig rule 'dawnline_home_loopdns'\n\toption name 'Dawnline-dawn0-names'\n\toption src 'dawn0'\n\toption dest 'dl_loop'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4500'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_cabin_zone'\n\toption name 'dawn1'\n\tlist network 'dawn1'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_cabin_lan'\n\toption src 'dawn1'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_cabin_from_lan'\n\toption src 'home'\n\toption dest 'dawn1'\n\nconfig forwarding 'dawnline_cabin_wan'\n\toption src 'dawn1'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_cabin_loop'\n\toption src 'dawn1'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_cabin_port'\n\toption name 'Dawnline-dawn1'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4600'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'home'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_open_loop'\n\toption src 'dawn2'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4700'\Line truncated
|
||||
"firewall": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig rule 'dawnline_home_loopdns'\n\toption name 'Dawnline-dawn0-names'\n\toption src 'dawn0'\n\toption dest 'dl_loop'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4500'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_cabin_zone'\n\toption name 'dawn1'\n\tlist network 'dawn1'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_cabin_lan'\n\toption src 'dawn1'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_cabin_from_lan'\n\toption src 'home'\n\toption dest 'dawn1'\n\nconfig forwarding 'dawnline_cabin_wan'\n\toption src 'dawn1'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_cabin_loop'\n\toption src 'dawn1'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_cabin_port'\n\toption name 'Dawnline-dawn1'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4600'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'home'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_open_loop'\n\toption src 'dawn2'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4700Line truncated
|
||||
"cmds": [
|
||||
"ubus call network.interface dump"
|
||||
]
|
||||
},
|
||||
{
|
||||
"what": "a port changed, a server turned off, a second home zone",
|
||||
"dry": false,
|
||||
"changed": true,
|
||||
"before": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig rule 'dawnline_home_loopdns'\n\toption name 'Dawnline-dawn0-names'\n\toption src 'dawn0'\n\toption dest 'dl_loop'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4500'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_cabin_zone'\n\toption name 'dawn1'\n\tlist network 'dawn1'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_cabin_lan'\n\toption src 'dawn1'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_cabin_from_lan'\n\toption src 'home'\n\toption dest 'dawn1'\n\nconfig forwarding 'dawnline_cabin_wan'\n\toption src 'dawn1'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_cabin_loop'\n\toption src 'dawn1'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_cabin_port'\n\toption name 'Dawnline-dawn1'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4600'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'home'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_open_loop'\n\toption src 'dawn2'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4700'\Line truncated
|
||||
"firewall": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig rule 'dawnline_home_loopdns'\n\toption name 'Dawnline-dawn0-names'\n\toption src 'dawn0'\n\toption dest 'dl_loop'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4501'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_cabin_zone'\n\toption name 'dawn1'\n\tlist network 'dawn1'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_cabin_lan'\n\toption src 'dawn1'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_cabin_from_lan'\n\toption src 'home'\n\toption dest 'dawn1'\n\nconfig forwarding 'dawnline_cabin_wan'\n\toption src 'dawn1'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_cabin_loop'\n\toption src 'dawn1'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_cabin_port'\n\toption name 'Dawnline-dawn1'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4600'\n\toption target 'ACCEPT'\n\toption enabled '0'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'home'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_open_loop'\n\toption src 'dawn2'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\n\tLine truncated
|
||||
"cmds": [
|
||||
"ubus call network.interface dump",
|
||||
"fw4 -q reload"
|
||||
]
|
||||
},
|
||||
{
|
||||
"what": "a server that does not reach the zone of the DNS of the LAN",
|
||||
"dry": false,
|
||||
"changed": true,
|
||||
"before": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig rule 'dawnline_home_loopdns'\n\toption name 'Dawnline-dawn0-names'\n\toption src 'dawn0'\n\toption dest 'dl_loop'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4501'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_cabin_zone'\n\toption name 'dawn1'\n\tlist network 'dawn1'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_cabin_lan'\n\toption src 'dawn1'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_cabin_from_lan'\n\toption src 'home'\n\toption dest 'dawn1'\n\nconfig forwarding 'dawnline_cabin_wan'\n\toption src 'dawn1'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_cabin_loop'\n\toption src 'dawn1'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_cabin_port'\n\toption name 'Dawnline-dawn1'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4600'\n\toption target 'ACCEPT'\n\toption enabled '0'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'home'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_open_loop'\n\toption src 'dawn2'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\n\topLine truncated
|
||||
"firewall": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig rule 'dawnline_home_loopdns'\n\toption name 'Dawnline-dawn0-names'\n\toption src 'dawn0'\n\toption dest 'dl_loop'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4501'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_cabin_zone'\n\toption name 'dawn1'\n\tlist network 'dawn1'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_cabin_lan'\n\toption src 'dawn1'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_cabin_from_lan'\n\toption src 'home'\n\toption dest 'dawn1'\n\nconfig forwarding 'dawnline_cabin_wan'\n\toption src 'dawn1'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_cabin_loop'\n\toption src 'dawn1'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_cabin_port'\n\toption name 'Dawnline-dawn1'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4600'\n\toption target 'ACCEPT'\n\toption enabled '0'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'guest'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_open_loop'\n\toption src 'dawn2'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\nLine truncated
|
||||
"cmds": [
|
||||
"ubus call network.interface dump",
|
||||
"fw4 -q reload"
|
||||
]
|
||||
},
|
||||
{
|
||||
"what": "the portal on a port it never takes",
|
||||
"dry": false,
|
||||
"changed": true,
|
||||
"before": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig rule 'dawnline_home_loopdns'\n\toption name 'Dawnline-dawn0-names'\n\toption src 'dawn0'\n\toption dest 'dl_loop'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4501'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_cabin_zone'\n\toption name 'dawn1'\n\tlist network 'dawn1'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_cabin_lan'\n\toption src 'dawn1'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_cabin_from_lan'\n\toption src 'home'\n\toption dest 'dawn1'\n\nconfig forwarding 'dawnline_cabin_wan'\n\toption src 'dawn1'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_cabin_loop'\n\toption src 'dawn1'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_cabin_port'\n\toption name 'Dawnline-dawn1'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4600'\n\toption target 'ACCEPT'\n\toption enabled '0'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'guest'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_open_loop'\n\toption src 'dawn2'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\n\tLine truncated
|
||||
"firewall": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig rule 'dawnline_home_loopdns'\n\toption name 'Dawnline-dawn0-names'\n\toption src 'dawn0'\n\toption dest 'dl_loop'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4501'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_cabin_zone'\n\toption name 'dawn1'\n\tlist network 'dawn1'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_cabin_lan'\n\toption src 'dawn1'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_cabin_from_lan'\n\toption src 'home'\n\toption dest 'dawn1'\n\nconfig forwarding 'dawnline_cabin_wan'\n\toption src 'dawn1'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_cabin_loop'\n\toption src 'dawn1'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_cabin_port'\n\toption name 'Dawnline-dawn1'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4600'\n\toption target 'ACCEPT'\n\toption enabled '0'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'guest'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_open_loop'\n\toption src 'dawn2'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\nLine truncated
|
||||
"cmds": [
|
||||
"ubus call network.interface dump",
|
||||
"fw4 -q reload"
|
||||
]
|
||||
},
|
||||
{
|
||||
"what": "the portal back, with names only: no plain HTTP",
|
||||
"dry": false,
|
||||
"changed": true,
|
||||
"before": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig rule 'dawnline_home_loopdns'\n\toption name 'Dawnline-dawn0-names'\n\toption src 'dawn0'\n\toption dest 'dl_loop'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4501'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_cabin_zone'\n\toption name 'dawn1'\n\tlist network 'dawn1'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_cabin_lan'\n\toption src 'dawn1'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_cabin_from_lan'\n\toption src 'home'\n\toption dest 'dawn1'\n\nconfig forwarding 'dawnline_cabin_wan'\n\toption src 'dawn1'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_cabin_loop'\n\toption src 'dawn1'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_cabin_port'\n\toption name 'Dawnline-dawn1'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4600'\n\toption target 'ACCEPT'\n\toption enabled '0'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'guest'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_open_loop'\n\toption src 'dawn2'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\n\tLine truncated
|
||||
"firewall": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig rule 'dawnline_home_loopdns'\n\toption name 'Dawnline-dawn0-names'\n\toption src 'dawn0'\n\toption dest 'dl_loop'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4501'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_cabin_zone'\n\toption name 'dawn1'\n\tlist network 'dawn1'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_cabin_lan'\n\toption src 'dawn1'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_cabin_from_lan'\n\toption src 'home'\n\toption dest 'dawn1'\n\nconfig forwarding 'dawnline_cabin_wan'\n\toption src 'dawn1'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_cabin_loop'\n\toption src 'dawn1'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_cabin_port'\n\toption name 'Dawnline-dawn1'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4600'\n\toption target 'ACCEPT'\n\toption enabled '0'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'guest'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_open_loop'\n\toption src 'dawn2'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\nLine truncated
|
||||
"cmds": [
|
||||
"ubus call network.interface dump",
|
||||
"fw4 -q reload"
|
||||
]
|
||||
},
|
||||
{
|
||||
"what": "would it change: asked only",
|
||||
"dry": true,
|
||||
"changed": true,
|
||||
"before": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig rule 'dawnline_home_loopdns'\n\toption name 'Dawnline-dawn0-names'\n\toption src 'dawn0'\n\toption dest 'dl_loop'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4501'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_cabin_zone'\n\toption name 'dawn1'\n\tlist network 'dawn1'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_cabin_lan'\n\toption src 'dawn1'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_cabin_from_lan'\n\toption src 'home'\n\toption dest 'dawn1'\n\nconfig forwarding 'dawnline_cabin_wan'\n\toption src 'dawn1'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_cabin_loop'\n\toption src 'dawn1'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_cabin_port'\n\toption name 'Dawnline-dawn1'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4600'\n\toption target 'ACCEPT'\n\toption enabled '0'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'guest'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_open_loop'\n\toption src 'dawn2'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\n\tLine truncated
|
||||
"firewall": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig rule 'dawnline_home_loopdns'\n\toption name 'Dawnline-dawn0-names'\n\toption src 'dawn0'\n\toption dest 'dl_loop'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4501'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_cabin_zone'\n\toption name 'dawn1'\n\tlist network 'dawn1'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_cabin_lan'\n\toption src 'dawn1'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_cabin_from_lan'\n\toption src 'home'\n\toption dest 'dawn1'\n\nconfig forwarding 'dawnline_cabin_wan'\n\toption src 'dawn1'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_cabin_loop'\n\toption src 'dawn1'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_cabin_port'\n\toption name 'Dawnline-dawn1'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4600'\n\toption target 'ACCEPT'\n\toption enabled '0'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'guest'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_open_loop'\n\toption src 'dawn2'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\nLine truncated
|
||||
"cmds": [
|
||||
"ubus call network.interface dump"
|
||||
]
|
||||
},
|
||||
{
|
||||
"what": "a server removed, another like a home device",
|
||||
"dry": false,
|
||||
"changed": true,
|
||||
"before": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig rule 'dawnline_home_loopdns'\n\toption name 'Dawnline-dawn0-names'\n\toption src 'dawn0'\n\toption dest 'dl_loop'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4501'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_cabin_zone'\n\toption name 'dawn1'\n\tlist network 'dawn1'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_cabin_lan'\n\toption src 'dawn1'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_cabin_from_lan'\n\toption src 'home'\n\toption dest 'dawn1'\n\nconfig forwarding 'dawnline_cabin_wan'\n\toption src 'dawn1'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_cabin_loop'\n\toption src 'dawn1'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_cabin_port'\n\toption name 'Dawnline-dawn1'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4600'\n\toption target 'ACCEPT'\n\toption enabled '0'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'guest'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_open_loop'\n\toption src 'dawn2'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\n\tLine truncated
|
||||
"firewall": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4502'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'guest'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_open_loop'\n\toption src 'dawn2'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4700'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_loop'\n\toption name 'dl_loop'\n\tlist device 'dlx0'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig forwarding 'dawnline_loop_wan'\n\toption src 'dl_loop'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_home_lan_guest'\n\toption src 'dawn0'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_home_from_lan_guest'\n\toption src 'guest'\n\toption dest 'dawn0'\n\nconfig rule 'dawnline_open_landns'\n\toption name 'Dawnline-dawn2-dns'\n\toption src 'dawn2'\n\toption dest 'home'\n\toption dest_ip '192.168.77.1'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig rule 'dawnline_portal'\n\toption name 'Dawnline-Portal'\n\toption src 'wan'\n\toption proto 'tcp'\n\toption dest_port '8443'\n\toption target 'ACCEPT'\n\nconfig forwarding 'dawnlinLine truncated
|
||||
"cmds": [
|
||||
"ubus call network.interface dump",
|
||||
"fw4 -q reload"
|
||||
]
|
||||
},
|
||||
{
|
||||
"what": "nobody like a home device",
|
||||
"dry": false,
|
||||
"changed": true,
|
||||
"before": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4502'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'guest'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_open_loop'\n\toption src 'dawn2'\n\toption dest 'dl_loop'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4700'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_loop'\n\toption name 'dl_loop'\n\tlist device 'dlx0'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig forwarding 'dawnline_loop_wan'\n\toption src 'dl_loop'\n\toption dest 'wan'\n\nconfig forwarding 'dawnline_home_lan_guest'\n\toption src 'dawn0'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_home_from_lan_guest'\n\toption src 'guest'\n\toption dest 'dawn0'\n\nconfig rule 'dawnline_open_landns'\n\toption name 'Dawnline-dawn2-dns'\n\toption src 'dawn2'\n\toption dest 'home'\n\toption dest_ip '192.168.77.1'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig rule 'dawnline_portal'\n\toption name 'Dawnline-Portal'\n\toption src 'wan'\n\toption proto 'tcp'\n\toption dest_port '8443'\n\toption target 'ACCEPT'\n\nconfig forwarding 'dawnline_Line truncated
|
||||
"firewall": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4502'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'guest'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4700'\n\toption target 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan_guest'\n\toption src 'dawn0'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_home_from_lan_guest'\n\toption src 'guest'\n\toption dest 'dawn0'\n\nconfig rule 'dawnline_open_landns'\n\toption name 'Dawnline-dawn2-dns'\n\toption src 'dawn2'\n\toption dest 'home'\n\toption dest_ip '192.168.77.1'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig rule 'dawnline_portal'\n\toption name 'Dawnline-Portal'\n\toption src 'wan'\n\toption proto 'tcp'\n\toption dest_port '8443'\n\toption target 'ACCEPT'\n\n",
|
||||
"cmds": [
|
||||
"ubus call network.interface dump",
|
||||
"fw4 -q reload"
|
||||
]
|
||||
},
|
||||
{
|
||||
"what": "a section of another kind under our name, one of a server long gone, the portal off",
|
||||
"dry": false,
|
||||
"changed": true,
|
||||
"before": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4502'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'guest'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4700'\n\toption target 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan_guest'\n\toption src 'dawn0'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_home_from_lan_guest'\n\toption src 'guest'\n\toption dest 'dawn0'\n\nconfig rule 'dawnline_open_landns'\n\toption name 'Dawnline-dawn2-dns'\n\toption src 'dawn2'\n\toption dest 'home'\n\toption dest_ip '192.168.77.1'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig rule 'dawnline_portal'\n\toption name 'Dawnline-Portal'\n\toption src 'wan'\n\toption proto 'tcp'\n\toption dest_port '8443'\n\toption target 'ACCEPT'\n\nconfig rule 'dawnline_home_zone'\n\toption name 'Not a zone'\n\nconfig forwarding 'dawnline_old_wan'\n\toption src 'dawn9'\n\n",
|
||||
"firewall": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4502'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'guest'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4700'\n\toption target 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan_guest'\n\toption src 'dawn0'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_home_from_lan_guest'\n\toption src 'guest'\n\toption dest 'dawn0'\n\nconfig rule 'dawnline_open_landns'\n\toption name 'Dawnline-dawn2-dns'\n\toption src 'dawn2'\n\toption dest 'home'\n\toption dest_ip '192.168.77.1'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\n",
|
||||
"cmds": [
|
||||
"ubus call network.interface dump",
|
||||
"fw4 -q reload"
|
||||
]
|
||||
},
|
||||
{
|
||||
"what": "would it change: no",
|
||||
"dry": true,
|
||||
"changed": false,
|
||||
"before": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4502'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'guest'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4700'\n\toption target 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan_guest'\n\toption src 'dawn0'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_home_from_lan_guest'\n\toption src 'guest'\n\toption dest 'dawn0'\n\nconfig rule 'dawnline_open_landns'\n\toption name 'Dawnline-dawn2-dns'\n\toption src 'dawn2'\n\toption dest 'home'\n\toption dest_ip '192.168.77.1'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\n",
|
||||
"firewall": "\nconfig defaults\n\toption syn_flood '1'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'REJECT'\n\nconfig zone\n\toption name 'lan'\n\tlist network 'lan'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig zone\n\toption name 'wan'\n\tlist network 'wan'\n\tlist network 'wan6'\n\toption input 'REJECT'\n\toption output 'ACCEPT'\n\toption forward 'DROP'\n\toption masq '1'\n\toption mtu_fix '1'\n\nconfig forwarding\n\toption src 'lan'\n\toption dest 'wan'\n\nconfig rule\n\toption name 'Allow-DHCP-Renew'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '68'\n\toption target 'ACCEPT'\n\toption family 'ipv4'\n\nconfig rule\n\toption name 'Allow-Ping'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption icmp_type 'echo-request'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IGMP'\n\toption src 'wan'\n\toption proto 'igmp'\n\toption family 'ipv4'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-DHCPv6'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '546'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-MLD'\n\toption src 'wan'\n\toption proto 'icmp'\n\toption src_ip 'fe80::/10'\n\tlist icmp_type '130/0'\n\tlist icmp_type '131/0'\n\tlist icmp_type '132/0'\n\tlist icmp_type '143/0'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Input'\n\toption src 'wan'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\tlist icmp_type 'router-solicitation'\n\tlist icmp_type 'neighbour-solicitation'\n\tlist icmp_type 'router-advertisement'\n\tlist icmp_type 'neighbour-advertisement'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ICMPv6-Forward'\n\toption src 'wan'\n\toption dest '*'\n\toption proto 'icmp'\n\tlist icmp_type 'echo-request'\n\tlist icmp_type 'echo-reply'\n\tlist icmp_type 'destination-unreachable'\n\tlist icmp_type 'packet-too-big'\n\tlist icmp_type 'time-exceeded'\n\tlist icmp_type 'bad-header'\n\tlist icmp_type 'unknown-header-type'\n\toption limit '1000/sec'\n\toption family 'ipv6'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-IPSec-ESP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'esp'\n\toption target 'ACCEPT'\n\nconfig rule\n\toption name 'Allow-ISAKMP'\n\toption src 'wan'\n\toption dest 'lan'\n\toption dest_port '500'\n\toption proto 'udp'\n\toption target 'ACCEPT'\n\nconfig zone\n\toption name 'guest'\n\tlist device 'dlguest'\n\nconfig zone\n\toption name 'home'\n\toption device 'br-lan dlhome'\n\nconfig forwarding 'dawnline_home_lan'\n\toption src 'dawn0'\n\toption dest 'home'\n\nconfig forwarding 'dawnline_home_from_lan'\n\toption src 'home'\n\toption dest 'dawn0'\n\nconfig forwarding 'dawnline_home_wan'\n\toption src 'dawn0'\n\toption dest 'wan'\n\nconfig rule 'dawnline_home_port'\n\toption name 'Dawnline-dawn0'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4502'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_open_zone'\n\toption name 'dawn2'\n\tlist network 'dawn2'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\nconfig forwarding 'dawnline_open_lan'\n\toption src 'dawn2'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_open_from_lan'\n\toption src 'guest'\n\toption dest 'dawn2'\n\nconfig forwarding 'dawnline_open_wan'\n\toption src 'dawn2'\n\toption dest 'wan'\n\nconfig rule 'dawnline_open_port'\n\toption name 'Dawnline-dawn2'\n\toption src 'wan'\n\toption proto 'udp'\n\toption dest_port '4700'\n\toption target 'ACCEPT'\n\nconfig forwarding 'dawnline_home_lan_guest'\n\toption src 'dawn0'\n\toption dest 'guest'\n\nconfig forwarding 'dawnline_home_from_lan_guest'\n\toption src 'guest'\n\toption dest 'dawn0'\n\nconfig rule 'dawnline_open_landns'\n\toption name 'Dawnline-dawn2-dns'\n\toption src 'dawn2'\n\toption dest 'home'\n\toption dest_ip '192.168.77.1'\n\toption proto 'tcp udp'\n\toption dest_port '53'\n\toption target 'ACCEPT'\n\nconfig zone 'dawnline_home_zone'\n\toption name 'dawn0'\n\tlist network 'dawn0'\n\toption input 'ACCEPT'\n\toption output 'ACCEPT'\n\toption forward 'ACCEPT'\n\n",
|
||||
"cmds": [
|
||||
"ubus call network.interface dump"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Vendored
+1537
File diff suppressed because it is too large.
Load diff
Vendored
+307
@@ -0,0 +1,307 @@
|
||||
{
|
||||
"steps": [
|
||||
{
|
||||
"what": "the first time: two tunnels made, a third whose name is taken",
|
||||
"changed": true,
|
||||
"network": "\nconfig interface 'loopback'\n\toption device 'lo'\n\toption proto 'static'\n\tlist ipaddr '127.0.0.1/8'\n\nconfig globals 'globals'\n\toption ula_prefix 'fd00:1234::/48'\n\nconfig device\n\toption name 'br-lan'\n\toption type 'bridge'\n\tlist ports 'lan1'\n\tlist ports 'lan2'\n\nconfig interface 'lan'\n\toption device 'br-lan'\n\toption proto 'static'\n\toption ipaddr '192.168.77.1/24'\n\toption note 'it'\\''s the LAN'\n\nconfig interface 'dawn2'\n\toption proto 'wireguard'\n\toption private_key 'someone else'\\''s'\n\nconfig interface 'dawn0'\n\toption proto 'amneziawg'\n\toption private_key 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA='\n\toption listen_port '4500'\n\tlist addresses '10.77.0.1/24'\n\toption mtu '1380'\n\toption _dawnline 'home'\n\toption _dawnline_name 'Home'\n\nconfig interface 'dawn1'\n\toption proto 'amneziawg'\n\toption private_key 'ccccccccccccccccccccccccccccccccccccccccccA='\n\toption listen_port '4600'\n\tlist addresses '10.78.0.1/24'\n\toption mtu '1380'\n\toption _dawnline 'cabin'\n\toption _dawnline_name 'Cabin'\n\n",
|
||||
"blocked": {
|
||||
"open": {
|
||||
"code": "taken",
|
||||
"ifname": "dawn2"
|
||||
}
|
||||
},
|
||||
"model_blocked": {
|
||||
"home": null,
|
||||
"cabin": null,
|
||||
"open": {
|
||||
"code": "taken",
|
||||
"ifname": "dawn2"
|
||||
}
|
||||
},
|
||||
"cmds": [
|
||||
"ubus call network reload",
|
||||
"ifup dawn0",
|
||||
"ifup dawn1"
|
||||
],
|
||||
"intents": {
|
||||
"dawn0": {
|
||||
"reason": "settings",
|
||||
"name": "Home"
|
||||
},
|
||||
"dawn1": {
|
||||
"reason": "settings",
|
||||
"name": "Cabin"
|
||||
}
|
||||
},
|
||||
"no_awg": false
|
||||
},
|
||||
{
|
||||
"what": "again: nothing to do",
|
||||
"changed": false,
|
||||
"network": "\nconfig interface 'loopback'\n\toption device 'lo'\n\toption proto 'static'\n\tlist ipaddr '127.0.0.1/8'\n\nconfig globals 'globals'\n\toption ula_prefix 'fd00:1234::/48'\n\nconfig device\n\toption name 'br-lan'\n\toption type 'bridge'\n\tlist ports 'lan1'\n\tlist ports 'lan2'\n\nconfig interface 'lan'\n\toption device 'br-lan'\n\toption proto 'static'\n\toption ipaddr '192.168.77.1/24'\n\toption note 'it'\\''s the LAN'\n\nconfig interface 'dawn2'\n\toption proto 'wireguard'\n\toption private_key 'someone else'\\''s'\n\nconfig interface 'dawn0'\n\toption proto 'amneziawg'\n\toption private_key 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA='\n\toption listen_port '4500'\n\tlist addresses '10.77.0.1/24'\n\toption mtu '1380'\n\toption _dawnline 'home'\n\toption _dawnline_name 'Home'\n\nconfig interface 'dawn1'\n\toption proto 'amneziawg'\n\toption private_key 'ccccccccccccccccccccccccccccccccccccccccccA='\n\toption listen_port '4600'\n\tlist addresses '10.78.0.1/24'\n\toption mtu '1380'\n\toption _dawnline 'cabin'\n\toption _dawnline_name 'Cabin'\n\n",
|
||||
"blocked": {
|
||||
"open": {
|
||||
"code": "taken",
|
||||
"ifname": "dawn2"
|
||||
}
|
||||
},
|
||||
"model_blocked": {
|
||||
"home": null,
|
||||
"cabin": null,
|
||||
"open": {
|
||||
"code": "taken",
|
||||
"ifname": "dawn2"
|
||||
}
|
||||
},
|
||||
"cmds": [
|
||||
],
|
||||
"intents": {
|
||||
"dawn0": {
|
||||
"reason": "settings",
|
||||
"name": "Home"
|
||||
},
|
||||
"dawn1": {
|
||||
"reason": "settings",
|
||||
"name": "Cabin"
|
||||
}
|
||||
},
|
||||
"no_awg": false
|
||||
},
|
||||
{
|
||||
"what": "a port changed, a server turned off",
|
||||
"changed": true,
|
||||
"network": "\nconfig interface 'loopback'\n\toption device 'lo'\n\toption proto 'static'\n\tlist ipaddr '127.0.0.1/8'\n\nconfig globals 'globals'\n\toption ula_prefix 'fd00:1234::/48'\n\nconfig device\n\toption name 'br-lan'\n\toption type 'bridge'\n\tlist ports 'lan1'\n\tlist ports 'lan2'\n\nconfig interface 'lan'\n\toption device 'br-lan'\n\toption proto 'static'\n\toption ipaddr '192.168.77.1/24'\n\toption note 'it'\\''s the LAN'\n\nconfig interface 'dawn2'\n\toption proto 'wireguard'\n\toption private_key 'someone else'\\''s'\n\nconfig interface 'dawn0'\n\toption proto 'amneziawg'\n\toption private_key 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA='\n\toption listen_port '4501'\n\tlist addresses '10.77.0.1/24'\n\toption mtu '1380'\n\toption _dawnline 'home'\n\toption _dawnline_name 'Home'\n\nconfig interface 'dawn1'\n\toption proto 'amneziawg'\n\toption private_key 'ccccccccccccccccccccccccccccccccccccccccccA='\n\toption listen_port '4600'\n\tlist addresses '10.78.0.1/24'\n\toption mtu '1380'\n\toption _dawnline 'cabin'\n\toption _dawnline_name 'Cabin'\n\toption disabled '1'\n\toption auto '0'\n\n",
|
||||
"blocked": {
|
||||
"open": {
|
||||
"code": "taken",
|
||||
"ifname": "dawn2"
|
||||
}
|
||||
},
|
||||
"model_blocked": {
|
||||
"home": null,
|
||||
"cabin": null,
|
||||
"open": {
|
||||
"code": "taken",
|
||||
"ifname": "dawn2"
|
||||
}
|
||||
},
|
||||
"cmds": [
|
||||
"ubus call network reload",
|
||||
"ifup dawn0"
|
||||
],
|
||||
"intents": {
|
||||
"dawn0": {
|
||||
"reason": "settings",
|
||||
"name": "Home"
|
||||
},
|
||||
"dawn1": {
|
||||
"reason": "off",
|
||||
"name": "Cabin"
|
||||
}
|
||||
},
|
||||
"no_awg": false
|
||||
},
|
||||
{
|
||||
"what": "a disguise AmneziaWG cannot take: the tunnel goes",
|
||||
"changed": true,
|
||||
"network": "\nconfig interface 'loopback'\n\toption device 'lo'\n\toption proto 'static'\n\tlist ipaddr '127.0.0.1/8'\n\nconfig globals 'globals'\n\toption ula_prefix 'fd00:1234::/48'\n\nconfig device\n\toption name 'br-lan'\n\toption type 'bridge'\n\tlist ports 'lan1'\n\tlist ports 'lan2'\n\nconfig interface 'lan'\n\toption device 'br-lan'\n\toption proto 'static'\n\toption ipaddr '192.168.77.1/24'\n\toption note 'it'\\''s the LAN'\n\nconfig interface 'dawn2'\n\toption proto 'wireguard'\n\toption private_key 'someone else'\\''s'\n\nconfig interface 'dawn1'\n\toption proto 'amneziawg'\n\toption private_key 'ccccccccccccccccccccccccccccccccccccccccccA='\n\toption listen_port '4600'\n\tlist addresses '10.78.0.1/24'\n\toption mtu '1380'\n\toption _dawnline 'cabin'\n\toption _dawnline_name 'Cabin'\n\toption disabled '1'\n\toption auto '0'\n\n",
|
||||
"blocked": {
|
||||
"home": {
|
||||
"code": "disguise_invalid"
|
||||
},
|
||||
"open": {
|
||||
"code": "taken",
|
||||
"ifname": "dawn2"
|
||||
}
|
||||
},
|
||||
"model_blocked": {
|
||||
"home": {
|
||||
"code": "disguise_invalid"
|
||||
},
|
||||
"cabin": null,
|
||||
"open": {
|
||||
"code": "taken",
|
||||
"ifname": "dawn2"
|
||||
}
|
||||
},
|
||||
"cmds": [
|
||||
"ifdown dawn0",
|
||||
"ubus call network reload"
|
||||
],
|
||||
"intents": {
|
||||
"dawn0": {
|
||||
"reason": "removed",
|
||||
"name": "Home"
|
||||
},
|
||||
"dawn1": {
|
||||
"reason": "off",
|
||||
"name": "Cabin"
|
||||
}
|
||||
},
|
||||
"no_awg": false
|
||||
},
|
||||
{
|
||||
"what": "put right, and the server renamed",
|
||||
"changed": true,
|
||||
"network": "\nconfig interface 'loopback'\n\toption device 'lo'\n\toption proto 'static'\n\tlist ipaddr '127.0.0.1/8'\n\nconfig globals 'globals'\n\toption ula_prefix 'fd00:1234::/48'\n\nconfig device\n\toption name 'br-lan'\n\toption type 'bridge'\n\tlist ports 'lan1'\n\tlist ports 'lan2'\n\nconfig interface 'lan'\n\toption device 'br-lan'\n\toption proto 'static'\n\toption ipaddr '192.168.77.1/24'\n\toption note 'it'\\''s the LAN'\n\nconfig interface 'dawn2'\n\toption proto 'wireguard'\n\toption private_key 'someone else'\\''s'\n\nconfig interface 'dawn1'\n\toption proto 'amneziawg'\n\toption private_key 'ccccccccccccccccccccccccccccccccccccccccccA='\n\toption listen_port '4600'\n\tlist addresses '10.78.0.1/24'\n\toption mtu '1380'\n\toption _dawnline 'cabin'\n\toption _dawnline_name 'Cabin'\n\toption disabled '1'\n\toption auto '0'\n\nconfig interface 'dawn0'\n\toption proto 'amneziawg'\n\toption private_key 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA='\n\toption listen_port '4501'\n\tlist addresses '10.77.0.1/24'\n\toption mtu '1380'\n\toption _dawnline 'home'\n\toption _dawnline_name 'Anna'\\''s house'\n\n",
|
||||
"blocked": {
|
||||
"open": {
|
||||
"code": "taken",
|
||||
"ifname": "dawn2"
|
||||
}
|
||||
},
|
||||
"model_blocked": {
|
||||
"home": null,
|
||||
"cabin": null,
|
||||
"open": {
|
||||
"code": "taken",
|
||||
"ifname": "dawn2"
|
||||
}
|
||||
},
|
||||
"cmds": [
|
||||
"ubus call network reload",
|
||||
"ifup dawn0"
|
||||
],
|
||||
"intents": {
|
||||
"dawn0": {
|
||||
"reason": "settings",
|
||||
"name": "Anna's house"
|
||||
},
|
||||
"dawn1": {
|
||||
"reason": "off",
|
||||
"name": "Cabin"
|
||||
}
|
||||
},
|
||||
"no_awg": false
|
||||
},
|
||||
{
|
||||
"what": "renamed again: only the marker moves",
|
||||
"changed": true,
|
||||
"network": "\nconfig interface 'loopback'\n\toption device 'lo'\n\toption proto 'static'\n\tlist ipaddr '127.0.0.1/8'\n\nconfig globals 'globals'\n\toption ula_prefix 'fd00:1234::/48'\n\nconfig device\n\toption name 'br-lan'\n\toption type 'bridge'\n\tlist ports 'lan1'\n\tlist ports 'lan2'\n\nconfig interface 'lan'\n\toption device 'br-lan'\n\toption proto 'static'\n\toption ipaddr '192.168.77.1/24'\n\toption note 'it'\\''s the LAN'\n\nconfig interface 'dawn2'\n\toption proto 'wireguard'\n\toption private_key 'someone else'\\''s'\n\nconfig interface 'dawn1'\n\toption proto 'amneziawg'\n\toption private_key 'ccccccccccccccccccccccccccccccccccccccccccA='\n\toption listen_port '4600'\n\tlist addresses '10.78.0.1/24'\n\toption mtu '1380'\n\toption _dawnline 'cabin'\n\toption _dawnline_name 'Cabin'\n\toption disabled '1'\n\toption auto '0'\n\nconfig interface 'dawn0'\n\toption proto 'amneziawg'\n\toption private_key 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA='\n\toption listen_port '4501'\n\tlist addresses '10.77.0.1/24'\n\toption mtu '1380'\n\toption _dawnline 'home'\n\toption _dawnline_name 'House'\n\n",
|
||||
"blocked": {
|
||||
"open": {
|
||||
"code": "taken",
|
||||
"ifname": "dawn2"
|
||||
}
|
||||
},
|
||||
"model_blocked": {
|
||||
"home": null,
|
||||
"cabin": null,
|
||||
"open": {
|
||||
"code": "taken",
|
||||
"ifname": "dawn2"
|
||||
}
|
||||
},
|
||||
"cmds": [
|
||||
],
|
||||
"intents": {
|
||||
"dawn0": {
|
||||
"reason": "settings",
|
||||
"name": "Anna's house"
|
||||
},
|
||||
"dawn1": {
|
||||
"reason": "off",
|
||||
"name": "Cabin"
|
||||
}
|
||||
},
|
||||
"no_awg": false
|
||||
},
|
||||
{
|
||||
"what": "a server removed, another given a name that will not do",
|
||||
"changed": true,
|
||||
"network": "\nconfig interface 'loopback'\n\toption device 'lo'\n\toption proto 'static'\n\tlist ipaddr '127.0.0.1/8'\n\nconfig globals 'globals'\n\toption ula_prefix 'fd00:1234::/48'\n\nconfig device\n\toption name 'br-lan'\n\toption type 'bridge'\n\tlist ports 'lan1'\n\tlist ports 'lan2'\n\nconfig interface 'lan'\n\toption device 'br-lan'\n\toption proto 'static'\n\toption ipaddr '192.168.77.1/24'\n\toption note 'it'\\''s the LAN'\n\nconfig interface 'dawn2'\n\toption proto 'wireguard'\n\toption private_key 'someone else'\\''s'\n\nconfig interface 'dawn0'\n\toption proto 'amneziawg'\n\toption private_key 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA='\n\toption listen_port '4501'\n\tlist addresses '10.77.0.1/24'\n\toption mtu '1380'\n\toption _dawnline 'home'\n\toption _dawnline_name 'House'\n\n",
|
||||
"blocked": {
|
||||
"open": {
|
||||
"code": "ifname",
|
||||
"ifname": "Not-A-Name"
|
||||
}
|
||||
},
|
||||
"model_blocked": {
|
||||
"home": null,
|
||||
"open": {
|
||||
"code": "ifname",
|
||||
"ifname": "Not-A-Name"
|
||||
}
|
||||
},
|
||||
"cmds": [
|
||||
"ifdown dawn1",
|
||||
"ubus call network reload"
|
||||
],
|
||||
"intents": {
|
||||
"dawn0": {
|
||||
"reason": "settings",
|
||||
"name": "Anna's house"
|
||||
},
|
||||
"dawn1": {
|
||||
"reason": "removed",
|
||||
"name": "Cabin"
|
||||
}
|
||||
},
|
||||
"no_awg": false
|
||||
},
|
||||
{
|
||||
"what": "a 3.1 disguise, and a list of DNS-shaped packets",
|
||||
"changed": true,
|
||||
"network": "\nconfig interface 'loopback'\n\toption device 'lo'\n\toption proto 'static'\n\tlist ipaddr '127.0.0.1/8'\n\nconfig globals 'globals'\n\toption ula_prefix 'fd00:1234::/48'\n\nconfig device\n\toption name 'br-lan'\n\toption type 'bridge'\n\tlist ports 'lan1'\n\tlist ports 'lan2'\n\nconfig interface 'lan'\n\toption device 'br-lan'\n\toption proto 'static'\n\toption ipaddr '192.168.77.1/24'\n\toption note 'it'\\''s the LAN'\n\nconfig interface 'dawn2'\n\toption proto 'wireguard'\n\toption private_key 'someone else'\\''s'\n\nconfig interface 'dawn0'\n\toption proto 'amneziawg'\n\toption private_key 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA='\n\toption listen_port '4501'\n\tlist addresses '10.77.0.1/24'\n\toption mtu '1368'\n\toption _dawnline 'home'\n\toption _dawnline_name 'House'\n\toption awg_s1 '12'\n\toption awg_s2 '12'\n\toption awg_s3 '12'\n\toption awg_s4 '12'\n\toption awg_i1 '<b 0x01><r 2>'\n\toption awg_header_protection_key 'yAnz5TF+lXXJte14tji3zlMNq+hd2rYUIgJBgB3fBmk='\n\n",
|
||||
"blocked": {
|
||||
"open": {
|
||||
"code": "ifname",
|
||||
"ifname": "Not-A-Name"
|
||||
}
|
||||
},
|
||||
"model_blocked": {
|
||||
"home": null,
|
||||
"open": {
|
||||
"code": "ifname",
|
||||
"ifname": "Not-A-Name"
|
||||
}
|
||||
},
|
||||
"cmds": [
|
||||
"ubus call network reload",
|
||||
"ifup dawn0"
|
||||
],
|
||||
"intents": {
|
||||
"dawn0": {
|
||||
"reason": "settings",
|
||||
"name": "House"
|
||||
},
|
||||
"dawn1": {
|
||||
"reason": "removed",
|
||||
"name": "Cabin"
|
||||
}
|
||||
},
|
||||
"no_awg": false
|
||||
},
|
||||
{
|
||||
"what": "the tools are gone: nothing is touched",
|
||||
"changed": false,
|
||||
"network": "\nconfig interface 'loopback'\n\toption device 'lo'\n\toption proto 'static'\n\tlist ipaddr '127.0.0.1/8'\n\nconfig globals 'globals'\n\toption ula_prefix 'fd00:1234::/48'\n\nconfig device\n\toption name 'br-lan'\n\toption type 'bridge'\n\tlist ports 'lan1'\n\tlist ports 'lan2'\n\nconfig interface 'lan'\n\toption device 'br-lan'\n\toption proto 'static'\n\toption ipaddr '192.168.77.1/24'\n\toption note 'it'\\''s the LAN'\n\nconfig interface 'dawn2'\n\toption proto 'wireguard'\n\toption private_key 'someone else'\\''s'\n\nconfig interface 'dawn0'\n\toption proto 'amneziawg'\n\toption private_key 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA='\n\toption listen_port '4501'\n\tlist addresses '10.77.0.1/24'\n\toption mtu '1368'\n\toption _dawnline 'home'\n\toption _dawnline_name 'House'\n\toption awg_s1 '12'\n\toption awg_s2 '12'\n\toption awg_s3 '12'\n\toption awg_s4 '12'\n\toption awg_i1 '<b 0x01><r 2>'\n\toption awg_header_protection_key 'yAnz5TF+lXXJte14tji3zlMNq+hd2rYUIgJBgB3fBmk='\n\n",
|
||||
"blocked": {
|
||||
"open": {
|
||||
"code": "ifname",
|
||||
"ifname": "Not-A-Name"
|
||||
}
|
||||
},
|
||||
"model_blocked": {
|
||||
"home": null,
|
||||
"open": {
|
||||
"code": "ifname",
|
||||
"ifname": "Not-A-Name"
|
||||
}
|
||||
},
|
||||
"cmds": [
|
||||
],
|
||||
"intents": {
|
||||
"dawn0": {
|
||||
"reason": "settings",
|
||||
"name": "House"
|
||||
},
|
||||
"dawn1": {
|
||||
"reason": "removed",
|
||||
"name": "Cabin"
|
||||
}
|
||||
},
|
||||
"no_awg": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
|
||||
config interface 'loopback'
|
||||
option device 'lo'
|
||||
option proto 'static'
|
||||
list ipaddr '127.0.0.1/8'
|
||||
|
||||
config globals 'globals'
|
||||
option ula_prefix 'fd00:1234::/48'
|
||||
|
||||
config device
|
||||
option name 'br-lan'
|
||||
option type 'bridge'
|
||||
list ports 'lan1'
|
||||
list ports 'lan2'
|
||||
|
||||
config interface 'lan'
|
||||
option device 'br-lan'
|
||||
option proto 'static'
|
||||
option ipaddr '192.168.77.1/24'
|
||||
option note 'it'\''s the LAN'
|
||||
|
||||
config interface 'dawn2'
|
||||
option proto 'wireguard'
|
||||
option private_key 'someone else'\''s'
|
||||
|
||||
Vendored
+107
@@ -0,0 +1,107 @@
|
||||
{
|
||||
"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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"sigs": [
|
||||
"{ \"wan\": \"eth0\", \"lan\": \"br-lan\", \"addrs\": [ \"192.168.77.1/24\" ], \"servers\": { \"home\": { \"wan\": { \"dev\": \"eth0\", \"auto\": true, \"zone\": \"wan\", \"missing\": false }, \"home\": [ { \"dev\": \"dlhome\", \"auto\": false, \"nets\": [ \"192.168.50.0/24\" ], \"zone\": \"home\", \"missing\": false }, { \"dev\": \"br-lan\", \"auto\": false, \"nets\": [ \"192.168.77.0/24\" ], \"zone\": \"home\", \"missing\": false } ], \"nets\": [ \"192.168.50.0/24\", \"192.168.77.0/24\" ], \"zones\": [ \"home\" ] }, \"cabin\": { \"wan\": { \"dev\": \"eth0\", \"auto\": true, \"zone\": \"wan\", \"missing\": false }, \"home\": [ { \"dev\": \"dlhome\", \"auto\": false, \"nets\": [ \"192.168.50.0/24\" ], \"zone\": \"home\", \"missing\": false } ], \"nets\": [ \"192.168.50.0/24\" ], \"zones\": [ \"home\" ] }, \"open\": { \"wan\": { \"dev\": \"eth0\", \"auto\": true, \"zone\": \"wan\", \"missing\": false }, \"home\": [ { \"dev\": \"br-lan\", \"auto\": false, \"nets\": [ \"192.168.77.0/24\" ], \"zone\": \"home\", \"missing\": false } ], \"nets\": [ \"192.168.77.0/24\" ], \"zones\": [ \"home\" ] } }, \"dns\": \"192.168.77.1\", \"loop\": null }",
|
||||
"{ \"wan\": \"eth0\", \"lan\": \"br-lan\", \"addrs\": [ \"192.168.77.1/24\" ], \"servers\": { \"home\": { \"wan\": { \"dev\": \"eth0\", \"auto\": true, \"zone\": \"wan\", \"missing\": false }, \"home\": [ { \"dev\": \"dlhome\", \"auto\": false, \"nets\": [ \"192.168.50.0/24\" ], \"zone\": \"home\", \"missing\": false }, { \"dev\": \"nope0\", \"auto\": false, \"nets\": [ ], \"zone\": null, \"missing\": true } ], \"nets\": [ \"192.168.50.0/24\" ], \"zones\": [ \"home\" ] }, \"cabin\": { \"wan\": { \"dev\": \"eth0\", \"auto\": true, \"zone\": \"wan\", \"missing\": false }, \"home\": [ { \"dev\": \"br-lan\", \"auto\": true, \"nets\": [ \"192.168.77.0/24\" ], \"zone\": \"home\", \"missing\": false }, { \"dev\": \"dlhome\", \"auto\": false, \"nets\": [ \"192.168.50.0/24\" ], \"zone\": \"home\", \"missing\": false } ], \"nets\": [ \"192.168.50.0/24\", \"192.168.77.0/24\" ], \"zones\": [ \"home\" ] }, \"open\": { \"wan\": { \"dev\": \"wg9\", \"auto\": false, \"zone\": \"wan\", \"missing\": false }, \"home\": [ { \"dev\": \"br-lan\", \"auto\": false, \"nets\": [ \"192.168.77.0/24\" ], \"zone\": \"home\", \"missing\": false } ], \"nets\": [ \"192.168.77.0/24\" ], \"zones\": [ \"home\" ] } }, \"dns\": \"192.168.77.1\", \"loop\": null }",
|
||||
"{ \"wan\": \"eth0\", \"lan\": \"br-lan\", \"addrs\": [ \"192.168.77.1/24\" ], \"servers\": { \"home\": { \"wan\": { \"dev\": \"eth0\", \"auto\": true, \"zone\": \"wan\", \"missing\": false }, \"home\": [ { \"dev\": \"dlhome\", \"auto\": false, \"nets\": [ \"192.168.50.0/24\" ], \"zone\": \"home\", \"missing\": false }, { \"dev\": \"nope0\", \"auto\": false, \"nets\": [ ], \"zone\": null, \"missing\": true } ], \"nets\": [ \"192.168.50.0/24\" ], \"zones\": [ \"home\" ] }, \"cabin\": { \"wan\": { \"dev\": \"eth0\", \"auto\": true, \"zone\": \"wan\", \"missing\": false }, \"home\": [ { \"dev\": \"br-lan\", \"auto\": true, \"nets\": [ \"192.168.77.0/24\" ], \"zone\": \"home\", \"missing\": false }, { \"dev\": \"dlhome\", \"auto\": false, \"nets\": [ \"192.168.50.0/24\" ], \"zone\": \"home\", \"missing\": false } ], \"nets\": [ \"192.168.50.0/24\", \"192.168.77.0/24\" ], \"zones\": [ \"home\" ] }, \"open\": { \"wan\": { \"dev\": \"gone7\", \"auto\": false, \"zone\": \"wan\", \"missing\": true }, \"home\": [ { \"dev\": \"gone8\", \"auto\": false, \"nets\": [ ], \"zone\": null, \"missing\": true } ], \"nets\": [ ], \"zones\": [ ] } }, \"dns\": \"192.168.77.1\", \"loop\": null }"
|
||||
]
|
||||
}
|
||||
Vendored
+328
@@ -0,0 +1,328 @@
|
||||
{
|
||||
"steps": [
|
||||
{
|
||||
"what": "no table yet: the update fails, the table is built",
|
||||
"peers": {
|
||||
"home": "ok",
|
||||
"cabin": "ok",
|
||||
"open": "ok"
|
||||
},
|
||||
"table": null,
|
||||
"warning": null,
|
||||
"states": {
|
||||
"anna": "active",
|
||||
"boris": "active",
|
||||
"clara": "active",
|
||||
"dima": "active",
|
||||
"eva": "active",
|
||||
"fedor": "active",
|
||||
"gleb": "paused",
|
||||
"hana": "active",
|
||||
"ivan": "active",
|
||||
"kira": "active",
|
||||
"lev": "active",
|
||||
"nora": "active"
|
||||
},
|
||||
"scripts": [
|
||||
"table inet dawnline\ndelete table inet dawnline\ntable inet dawnline {\n\tset home_home { type ipv4_addr; flags interval; elements = { 192.168.50.0/24, 192.168.77.0/24 } }\n\tset home_cabin { type ipv4_addr; flags interval; elements = { 192.168.50.0/24 } }\n\tset home_open { type ipv4_addr; flags interval; elements = { 192.168.77.0/24 } }\n\tset tun_nets { type ipv4_addr; flags interval; elements = { 10.77.0.0/24, 10.78.0.0/24, 10.79.0.0/24 } }\n\tset lan_ok { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.7, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset lan_all { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3 } }\n\tset lan_part { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.7 . 192.168.50.0/24, 10.77.0.11 . 192.168.77.0/24 } }\n\tset mesh_pairs { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.2 . 10.77.0.3, 10.77.0.2 . 10.77.0.5, 10.77.0.2 . 10.77.0.11, 10.77.0.3 . 10.77.0.2, 10.77.0.3 . 10.77.0.5, 10.77.0.3 . 10.77.0.11, 10.77.0.5 . 10.77.0.2, 10.77.0.5 . 10.77.0.3, 10.77.0.5 . 10.77.0.11, 10.77.0.11 . 10.77.0.2, 10.77.0.11 . 10.77.0.3, 10.77.0.11 . 10.77.0.5 } }\n\tset inet_ok { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.6, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset svc_ok { type ipv4_addr . ipv4_addr . inet_service; flags interval; }\n\tset svc_host { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.8 . 192.168.77.5, 10.77.0.8 . 192.168.50.30 } }\n\tset dns_real { type ipv4_addr; flags interval; }\n\tchain pre {\n\t\ttype filter hook prerouting priority -160; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } jump guard\n\t}\n\tchain guard {\n\t\tmeta nfproto ipv6 drop\n\t\tct state related accept\n\t\tct status dnat accept\n\t\ticmp type { echo-request, echo-reply } fib daddr type local accept\n\t\tfib daddr type local meta l4proto { tcp, udp } th dport 53 accept\n\t\tfib daddr type local tcp dport { 4500, 4501 } accept\n\t\tfib daddr type local ip saddr @lan_all accept\n\t\tfib daddr type local ip saddr . ip daddr @lan_part accept\n\t\tfib daddr type local counter drop\n\t\tiifname \"dawn0\" ip daddr @home_home ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn1\" ip daddr @home_cabin ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn2\" ip daddr @home_open ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tip saddr . ip daddr @lan_part ip daddr != @tun_nets accept\n\t\tiifname \"dawn0\" ip saddr . ip daddr @mesh_pairs accept\n\t\tiifname \"dawn2\" ip saddr @lan_ok ip daddr @lan_ok accept\n\t\tmeta l4proto { tcp, udp } ip saddr . ip daddr . th dport @svc_ok accept\n\t\tip saddr . ip daddr @svc_host accept\n\t\tip daddr { 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10, 169.254.0.0/16, 224.0.0.0/3 } counter drop\n\t\tip saddr @inet_ok accept\n\t\tcounter drop\n\t}\n\tchain inbound {\n\t\ttype filter hook forward priority filter - 5; policy accept;\n\t\toifname { \"dawn0\", \"dawn1\", \"dawn2\" } iifname != { \"dawn0\", \"dawn1\", \"dawn2\" } ct state new jump to_device\n\t}\n\tchain to_device {\n\t\tmeta nfproto ipv6 drop\n\t\tct status dnat accept\n\t\toifname \"dawn0\" ip saddr @home_home ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn1\" ip saddr @home_cabin ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn2\" ip saddr @home_open ip saddr != @tun_nets ip daddr @lan_all accept\n\t\tip daddr . ip saddr @lan_part ip saddr != @tun_nets accept\n\t\tcounter reject with icmpx admin-prohibited\n\t}\n\tchain dns {\n\t\ttype nat hook prerouting priority dstnat - 5; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } ip saddr @dns_real meta l4proto { tcp, udp } th dport 53 redirect to :5354\n\t}\n\tchain dns_lan {\n\t\ttype nat hook prerouting priority dstnat + 5; policy accept;\n\t\tiifname \"dawn0\" ip daddr 10.77.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn1\" ip daddr 10.78.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn2\" ip daddr 10.79.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t}\n}\n"
|
||||
],
|
||||
"confs": {
|
||||
"dawn0": "[Interface]\nPrivateKey = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA=\nListenPort = 4500\n\n[Peer]\nPublicKey = BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBA=\nAllowedIPs = 10.77.0.2/32\n\n[Peer]\nPublicKey = CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCA=\nAllowedIPs = 10.77.0.3/32\n\n[Peer]\nPublicKey = EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEA=\nAllowedIPs = 10.77.0.5/32\n\n[Peer]\nPublicKey = FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA=\nAllowedIPs = 10.77.0.6/32\n\n[Peer]\nPublicKey = GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGA=\nAllowedIPs = 10.77.0.7/32\n\n[Peer]\nPublicKey = HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHA=\nAllowedIPs = 10.77.0.8/32\n\n[Peer]\nPublicKey = IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIA=\nAllowedIPs = 10.77.0.9/32\n\n[Peer]\nPublicKey = OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOA=\nAllowedIPs = 10.77.0.11/32\n",
|
||||
"dawn1": "[Interface]\nPrivateKey = ccccccccccccccccccccccccccccccccccccccccccA=\nListenPort = 4600\n\n[Peer]\nPublicKey = KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKA=\nAllowedIPs = 10.78.0.2/32\n\n[Peer]\nPublicKey = LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLA=\nAllowedIPs = 10.78.0.3/32\n",
|
||||
"dawn2": "[Interface]\nPrivateKey = eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeA=\nListenPort = 4700\n\n[Peer]\nPublicKey = MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMA=\nAllowedIPs = 10.79.0.2/32\n\n[Peer]\nPublicKey = NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNA=\nAllowedIPs = 10.79.0.3/32\n"
|
||||
},
|
||||
"hosts": "10.77.0.2 phone.anna.lan\n10.77.0.3 laptop.anna.lan\n10.77.0.4 old.anna.lan\n10.77.0.5 bphone.boris.lan\n10.77.0.6 cphone.clara.lan\n10.77.0.7 dphone.dima.lan\n10.77.0.8 ephone.eva.lan\n10.77.0.9 fphone.fedor.lan\n10.77.0.10 gphone.gleb.lan\n10.78.0.2 hphone.hana.lan\n10.78.0.3 iphone.ivan.lan\n10.79.0.2 kphone.kira.lan\n10.79.0.3 lphone.lev.lan\n10.77.0.11 nphone.nora.lan\n",
|
||||
"hosts_mode": true,
|
||||
"nft_err": null,
|
||||
"present": true
|
||||
},
|
||||
{
|
||||
"what": "again: the sets alone",
|
||||
"peers": {
|
||||
"home": "ok",
|
||||
"cabin": "ok",
|
||||
"open": "ok"
|
||||
},
|
||||
"table": null,
|
||||
"warning": null,
|
||||
"states": {
|
||||
"anna": "active",
|
||||
"boris": "active",
|
||||
"clara": "active",
|
||||
"dima": "active",
|
||||
"eva": "active",
|
||||
"fedor": "active",
|
||||
"gleb": "paused",
|
||||
"hana": "active",
|
||||
"ivan": "active",
|
||||
"kira": "active",
|
||||
"lev": "active",
|
||||
"nora": "active"
|
||||
},
|
||||
"scripts": [
|
||||
"table inet dawnline\ndelete table inet dawnline\ntable inet dawnline {\n\tset home_home { type ipv4_addr; flags interval; elements = { 192.168.50.0/24, 192.168.77.0/24 } }\n\tset home_cabin { type ipv4_addr; flags interval; elements = { 192.168.50.0/24 } }\n\tset home_open { type ipv4_addr; flags interval; elements = { 192.168.77.0/24 } }\n\tset tun_nets { type ipv4_addr; flags interval; elements = { 10.77.0.0/24, 10.78.0.0/24, 10.79.0.0/24 } }\n\tset lan_ok { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.7, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset lan_all { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3 } }\n\tset lan_part { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.7 . 192.168.50.0/24, 10.77.0.11 . 192.168.77.0/24 } }\n\tset mesh_pairs { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.2 . 10.77.0.3, 10.77.0.2 . 10.77.0.5, 10.77.0.2 . 10.77.0.11, 10.77.0.3 . 10.77.0.2, 10.77.0.3 . 10.77.0.5, 10.77.0.3 . 10.77.0.11, 10.77.0.5 . 10.77.0.2, 10.77.0.5 . 10.77.0.3, 10.77.0.5 . 10.77.0.11, 10.77.0.11 . 10.77.0.2, 10.77.0.11 . 10.77.0.3, 10.77.0.11 . 10.77.0.5 } }\n\tset inet_ok { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.6, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset svc_ok { type ipv4_addr . ipv4_addr . inet_service; flags interval; }\n\tset svc_host { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.8 . 192.168.77.5, 10.77.0.8 . 192.168.50.30 } }\n\tset dns_real { type ipv4_addr; flags interval; }\n\tchain pre {\n\t\ttype filter hook prerouting priority -160; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } jump guard\n\t}\n\tchain guard {\n\t\tmeta nfproto ipv6 drop\n\t\tct state related accept\n\t\tct status dnat accept\n\t\ticmp type { echo-request, echo-reply } fib daddr type local accept\n\t\tfib daddr type local meta l4proto { tcp, udp } th dport 53 accept\n\t\tfib daddr type local tcp dport { 4500, 4501 } accept\n\t\tfib daddr type local ip saddr @lan_all accept\n\t\tfib daddr type local ip saddr . ip daddr @lan_part accept\n\t\tfib daddr type local counter drop\n\t\tiifname \"dawn0\" ip daddr @home_home ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn1\" ip daddr @home_cabin ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn2\" ip daddr @home_open ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tip saddr . ip daddr @lan_part ip daddr != @tun_nets accept\n\t\tiifname \"dawn0\" ip saddr . ip daddr @mesh_pairs accept\n\t\tiifname \"dawn2\" ip saddr @lan_ok ip daddr @lan_ok accept\n\t\tmeta l4proto { tcp, udp } ip saddr . ip daddr . th dport @svc_ok accept\n\t\tip saddr . ip daddr @svc_host accept\n\t\tip daddr { 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10, 169.254.0.0/16, 224.0.0.0/3 } counter drop\n\t\tip saddr @inet_ok accept\n\t\tcounter drop\n\t}\n\tchain inbound {\n\t\ttype filter hook forward priority filter - 5; policy accept;\n\t\toifname { \"dawn0\", \"dawn1\", \"dawn2\" } iifname != { \"dawn0\", \"dawn1\", \"dawn2\" } ct state new jump to_device\n\t}\n\tchain to_device {\n\t\tmeta nfproto ipv6 drop\n\t\tct status dnat accept\n\t\toifname \"dawn0\" ip saddr @home_home ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn1\" ip saddr @home_cabin ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn2\" ip saddr @home_open ip saddr != @tun_nets ip daddr @lan_all accept\n\t\tip daddr . ip saddr @lan_part ip saddr != @tun_nets accept\n\t\tcounter reject with icmpx admin-prohibited\n\t}\n\tchain dns {\n\t\ttype nat hook prerouting priority dstnat - 5; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } ip saddr @dns_real meta l4proto { tcp, udp } th dport 53 redirect to :5354\n\t}\n\tchain dns_lan {\n\t\ttype nat hook prerouting priority dstnat + 5; policy accept;\n\t\tiifname \"dawn0\" ip daddr 10.77.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn1\" ip daddr 10.78.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn2\" ip daddr 10.79.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t}\n}\n"
|
||||
],
|
||||
"confs": {
|
||||
"dawn0": "[Interface]\nPrivateKey = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA=\nListenPort = 4500\n\n[Peer]\nPublicKey = BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBA=\nAllowedIPs = 10.77.0.2/32\n\n[Peer]\nPublicKey = CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCA=\nAllowedIPs = 10.77.0.3/32\n\n[Peer]\nPublicKey = EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEA=\nAllowedIPs = 10.77.0.5/32\n\n[Peer]\nPublicKey = FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA=\nAllowedIPs = 10.77.0.6/32\n\n[Peer]\nPublicKey = GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGA=\nAllowedIPs = 10.77.0.7/32\n\n[Peer]\nPublicKey = HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHA=\nAllowedIPs = 10.77.0.8/32\n\n[Peer]\nPublicKey = IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIA=\nAllowedIPs = 10.77.0.9/32\n\n[Peer]\nPublicKey = OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOA=\nAllowedIPs = 10.77.0.11/32\n",
|
||||
"dawn1": "[Interface]\nPrivateKey = ccccccccccccccccccccccccccccccccccccccccccA=\nListenPort = 4600\n\n[Peer]\nPublicKey = KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKA=\nAllowedIPs = 10.78.0.2/32\n\n[Peer]\nPublicKey = LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLA=\nAllowedIPs = 10.78.0.3/32\n",
|
||||
"dawn2": "[Interface]\nPrivateKey = eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeA=\nListenPort = 4700\n\n[Peer]\nPublicKey = MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMA=\nAllowedIPs = 10.79.0.2/32\n\n[Peer]\nPublicKey = NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNA=\nAllowedIPs = 10.79.0.3/32\n"
|
||||
},
|
||||
"hosts": "10.77.0.2 phone.anna.lan\n10.77.0.3 laptop.anna.lan\n10.77.0.4 old.anna.lan\n10.77.0.5 bphone.boris.lan\n10.77.0.6 cphone.clara.lan\n10.77.0.7 dphone.dima.lan\n10.77.0.8 ephone.eva.lan\n10.77.0.9 fphone.fedor.lan\n10.77.0.10 gphone.gleb.lan\n10.78.0.2 hphone.hana.lan\n10.78.0.3 iphone.ivan.lan\n10.79.0.2 kphone.kira.lan\n10.79.0.3 lphone.lev.lan\n10.77.0.11 nphone.nora.lan\n",
|
||||
"hosts_mode": true,
|
||||
"nft_err": null,
|
||||
"present": true
|
||||
},
|
||||
{
|
||||
"what": "someone is paused",
|
||||
"peers": {
|
||||
"home": "ok",
|
||||
"cabin": "ok",
|
||||
"open": "ok"
|
||||
},
|
||||
"table": null,
|
||||
"warning": null,
|
||||
"states": {
|
||||
"anna": "paused",
|
||||
"boris": "active",
|
||||
"clara": "active",
|
||||
"dima": "active",
|
||||
"eva": "active",
|
||||
"fedor": "active",
|
||||
"gleb": "paused",
|
||||
"hana": "active",
|
||||
"ivan": "active",
|
||||
"kira": "active",
|
||||
"lev": "active",
|
||||
"nora": "active"
|
||||
},
|
||||
"scripts": [
|
||||
"table inet dawnline\ndelete table inet dawnline\ntable inet dawnline {\n\tset home_home { type ipv4_addr; flags interval; elements = { 192.168.50.0/24, 192.168.77.0/24 } }\n\tset home_cabin { type ipv4_addr; flags interval; elements = { 192.168.50.0/24 } }\n\tset home_open { type ipv4_addr; flags interval; elements = { 192.168.77.0/24 } }\n\tset tun_nets { type ipv4_addr; flags interval; elements = { 10.77.0.0/24, 10.78.0.0/24, 10.79.0.0/24 } }\n\tset lan_ok { type ipv4_addr; flags interval; elements = { 10.77.0.5, 10.77.0.7, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset lan_all { type ipv4_addr; flags interval; elements = { 10.77.0.5, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3 } }\n\tset lan_part { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.7 . 192.168.50.0/24, 10.77.0.11 . 192.168.77.0/24 } }\n\tset mesh_pairs { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.5 . 10.77.0.11, 10.77.0.11 . 10.77.0.5 } }\n\tset inet_ok { type ipv4_addr; flags interval; elements = { 10.77.0.5, 10.77.0.6, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset svc_ok { type ipv4_addr . ipv4_addr . inet_service; flags interval; }\n\tset svc_host { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.8 . 192.168.77.5, 10.77.0.8 . 192.168.50.30 } }\n\tset dns_real { type ipv4_addr; flags interval; }\n\tchain pre {\n\t\ttype filter hook prerouting priority -160; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } jump guard\n\t}\n\tchain guard {\n\t\tmeta nfproto ipv6 drop\n\t\tct state related accept\n\t\tct status dnat accept\n\t\ticmp type { echo-request, echo-reply } fib daddr type local accept\n\t\tfib daddr type local meta l4proto { tcp, udp } th dport 53 accept\n\t\tfib daddr type local tcp dport { 4500, 4501 } accept\n\t\tfib daddr type local ip saddr @lan_all accept\n\t\tfib daddr type local ip saddr . ip daddr @lan_part accept\n\t\tfib daddr type local counter drop\n\t\tiifname \"dawn0\" ip daddr @home_home ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn1\" ip daddr @home_cabin ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn2\" ip daddr @home_open ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tip saddr . ip daddr @lan_part ip daddr != @tun_nets accept\n\t\tiifname \"dawn0\" ip saddr . ip daddr @mesh_pairs accept\n\t\tiifname \"dawn2\" ip saddr @lan_ok ip daddr @lan_ok accept\n\t\tmeta l4proto { tcp, udp } ip saddr . ip daddr . th dport @svc_ok accept\n\t\tip saddr . ip daddr @svc_host accept\n\t\tip daddr { 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10, 169.254.0.0/16, 224.0.0.0/3 } counter drop\n\t\tip saddr @inet_ok accept\n\t\tcounter drop\n\t}\n\tchain inbound {\n\t\ttype filter hook forward priority filter - 5; policy accept;\n\t\toifname { \"dawn0\", \"dawn1\", \"dawn2\" } iifname != { \"dawn0\", \"dawn1\", \"dawn2\" } ct state new jump to_device\n\t}\n\tchain to_device {\n\t\tmeta nfproto ipv6 drop\n\t\tct status dnat accept\n\t\toifname \"dawn0\" ip saddr @home_home ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn1\" ip saddr @home_cabin ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn2\" ip saddr @home_open ip saddr != @tun_nets ip daddr @lan_all accept\n\t\tip daddr . ip saddr @lan_part ip saddr != @tun_nets accept\n\t\tcounter reject with icmpx admin-prohibited\n\t}\n\tchain dns {\n\t\ttype nat hook prerouting priority dstnat - 5; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } ip saddr @dns_real meta l4proto { tcp, udp } th dport 53 redirect to :5354\n\t}\n\tchain dns_lan {\n\t\ttype nat hook prerouting priority dstnat + 5; policy accept;\n\t\tiifname \"dawn0\" ip daddr 10.77.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn1\" ip daddr 10.78.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn2\" ip daddr 10.79.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t}\n}\n"
|
||||
],
|
||||
"confs": {
|
||||
"dawn0": "[Interface]\nPrivateKey = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA=\nListenPort = 4500\n\n[Peer]\nPublicKey = EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEA=\nAllowedIPs = 10.77.0.5/32\n\n[Peer]\nPublicKey = FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA=\nAllowedIPs = 10.77.0.6/32\n\n[Peer]\nPublicKey = GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGA=\nAllowedIPs = 10.77.0.7/32\n\n[Peer]\nPublicKey = HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHA=\nAllowedIPs = 10.77.0.8/32\n\n[Peer]\nPublicKey = IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIA=\nAllowedIPs = 10.77.0.9/32\n\n[Peer]\nPublicKey = OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOA=\nAllowedIPs = 10.77.0.11/32\n",
|
||||
"dawn1": "[Interface]\nPrivateKey = ccccccccccccccccccccccccccccccccccccccccccA=\nListenPort = 4600\n\n[Peer]\nPublicKey = KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKA=\nAllowedIPs = 10.78.0.2/32\n\n[Peer]\nPublicKey = LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLA=\nAllowedIPs = 10.78.0.3/32\n",
|
||||
"dawn2": "[Interface]\nPrivateKey = eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeA=\nListenPort = 4700\n\n[Peer]\nPublicKey = MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMA=\nAllowedIPs = 10.79.0.2/32\n\n[Peer]\nPublicKey = NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNA=\nAllowedIPs = 10.79.0.3/32\n"
|
||||
},
|
||||
"hosts": "10.77.0.2 phone.anna.lan\n10.77.0.3 laptop.anna.lan\n10.77.0.4 old.anna.lan\n10.77.0.5 bphone.boris.lan\n10.77.0.6 cphone.clara.lan\n10.77.0.7 dphone.dima.lan\n10.77.0.8 ephone.eva.lan\n10.77.0.9 fphone.fedor.lan\n10.77.0.10 gphone.gleb.lan\n10.78.0.2 hphone.hana.lan\n10.78.0.3 iphone.ivan.lan\n10.79.0.2 kphone.kira.lan\n10.79.0.3 lphone.lev.lan\n10.77.0.11 nphone.nora.lan\n",
|
||||
"hosts_mode": true,
|
||||
"nft_err": null,
|
||||
"present": true
|
||||
},
|
||||
{
|
||||
"what": "the table will not load, the old one stays",
|
||||
"peers": {
|
||||
"home": "ok",
|
||||
"cabin": "ok",
|
||||
"open": "ok"
|
||||
},
|
||||
"table": "rules:1:1-5: Error: a made-up failure",
|
||||
"warning": "Access rules couldn't be updated (rules:1:1-5: Error: a made-up failure): the previous rules stay, so this change isn't in effect yet. Open Overview → Health.",
|
||||
"states": {
|
||||
"anna": "active",
|
||||
"boris": "active",
|
||||
"clara": "active",
|
||||
"dima": "active",
|
||||
"eva": "active",
|
||||
"fedor": "active",
|
||||
"gleb": "paused",
|
||||
"hana": "active",
|
||||
"ivan": "active",
|
||||
"kira": "active",
|
||||
"lev": "active",
|
||||
"nora": "active"
|
||||
},
|
||||
"scripts": [
|
||||
"table inet dawnline\ndelete table inet dawnline\ntable inet dawnline {\n\tset home_home { type ipv4_addr; flags interval; elements = { 192.168.50.0/24, 192.168.77.0/24 } }\n\tset home_cabin { type ipv4_addr; flags interval; elements = { 192.168.50.0/24 } }\n\tset home_open { type ipv4_addr; flags interval; elements = { 192.168.77.0/24 } }\n\tset tun_nets { type ipv4_addr; flags interval; elements = { 10.77.0.0/24, 10.78.0.0/24, 10.79.0.0/24 } }\n\tset lan_ok { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.7, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset lan_all { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3 } }\n\tset lan_part { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.7 . 192.168.50.0/24, 10.77.0.11 . 192.168.77.0/24 } }\n\tset mesh_pairs { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.2 . 10.77.0.3, 10.77.0.2 . 10.77.0.5, 10.77.0.2 . 10.77.0.11, 10.77.0.3 . 10.77.0.2, 10.77.0.3 . 10.77.0.5, 10.77.0.3 . 10.77.0.11, 10.77.0.5 . 10.77.0.2, 10.77.0.5 . 10.77.0.3, 10.77.0.5 . 10.77.0.11, 10.77.0.11 . 10.77.0.2, 10.77.0.11 . 10.77.0.3, 10.77.0.11 . 10.77.0.5 } }\n\tset inet_ok { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.6, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset svc_ok { type ipv4_addr . ipv4_addr . inet_service; flags interval; }\n\tset svc_host { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.8 . 192.168.77.5, 10.77.0.8 . 192.168.50.30 } }\n\tset dns_real { type ipv4_addr; flags interval; }\n\tchain pre {\n\t\ttype filter hook prerouting priority -160; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } jump guard\n\t}\n\tchain guard {\n\t\tmeta nfproto ipv6 drop\n\t\tct state related accept\n\t\tct status dnat accept\n\t\ticmp type { echo-request, echo-reply } fib daddr type local accept\n\t\tfib daddr type local meta l4proto { tcp, udp } th dport 53 accept\n\t\tfib daddr type local tcp dport { 4500, 4501 } accept\n\t\tfib daddr type local ip saddr @lan_all accept\n\t\tfib daddr type local ip saddr . ip daddr @lan_part accept\n\t\tfib daddr type local counter drop\n\t\tiifname \"dawn0\" ip daddr @home_home ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn1\" ip daddr @home_cabin ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn2\" ip daddr @home_open ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tip saddr . ip daddr @lan_part ip daddr != @tun_nets accept\n\t\tiifname \"dawn0\" ip saddr . ip daddr @mesh_pairs accept\n\t\tiifname \"dawn2\" ip saddr @lan_ok ip daddr @lan_ok accept\n\t\tmeta l4proto { tcp, udp } ip saddr . ip daddr . th dport @svc_ok accept\n\t\tip saddr . ip daddr @svc_host accept\n\t\tip daddr { 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10, 169.254.0.0/16, 224.0.0.0/3 } counter drop\n\t\tip saddr @inet_ok accept\n\t\tcounter drop\n\t}\n\tchain inbound {\n\t\ttype filter hook forward priority filter - 5; policy accept;\n\t\toifname { \"dawn0\", \"dawn1\", \"dawn2\" } iifname != { \"dawn0\", \"dawn1\", \"dawn2\" } ct state new jump to_device\n\t}\n\tchain to_device {\n\t\tmeta nfproto ipv6 drop\n\t\tct status dnat accept\n\t\toifname \"dawn0\" ip saddr @home_home ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn1\" ip saddr @home_cabin ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn2\" ip saddr @home_open ip saddr != @tun_nets ip daddr @lan_all accept\n\t\tip daddr . ip saddr @lan_part ip saddr != @tun_nets accept\n\t\tcounter reject with icmpx admin-prohibited\n\t}\n\tchain dns {\n\t\ttype nat hook prerouting priority dstnat - 5; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } ip saddr @dns_real meta l4proto { tcp, udp } th dport 53 redirect to :5354\n\t}\n\tchain dns_lan {\n\t\ttype nat hook prerouting priority dstnat + 5; policy accept;\n\t\tiifname \"dawn0\" ip daddr 10.77.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn1\" ip daddr 10.78.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn2\" ip daddr 10.79.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t}\n}\n"
|
||||
],
|
||||
"confs": {
|
||||
"dawn0": "[Interface]\nPrivateKey = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA=\nListenPort = 4500\n\n[Peer]\nPublicKey = BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBA=\nAllowedIPs = 10.77.0.2/32\n\n[Peer]\nPublicKey = CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCA=\nAllowedIPs = 10.77.0.3/32\n\n[Peer]\nPublicKey = EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEA=\nAllowedIPs = 10.77.0.5/32\n\n[Peer]\nPublicKey = FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA=\nAllowedIPs = 10.77.0.6/32\n\n[Peer]\nPublicKey = GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGA=\nAllowedIPs = 10.77.0.7/32\n\n[Peer]\nPublicKey = HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHA=\nAllowedIPs = 10.77.0.8/32\n\n[Peer]\nPublicKey = IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIA=\nAllowedIPs = 10.77.0.9/32\n\n[Peer]\nPublicKey = OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOA=\nAllowedIPs = 10.77.0.11/32\n",
|
||||
"dawn1": "[Interface]\nPrivateKey = ccccccccccccccccccccccccccccccccccccccccccA=\nListenPort = 4600\n\n[Peer]\nPublicKey = KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKA=\nAllowedIPs = 10.78.0.2/32\n\n[Peer]\nPublicKey = LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLA=\nAllowedIPs = 10.78.0.3/32\n",
|
||||
"dawn2": "[Interface]\nPrivateKey = eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeA=\nListenPort = 4700\n\n[Peer]\nPublicKey = MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMA=\nAllowedIPs = 10.79.0.2/32\n\n[Peer]\nPublicKey = NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNA=\nAllowedIPs = 10.79.0.3/32\n"
|
||||
},
|
||||
"hosts": "10.77.0.2 phone.anna.lan\n10.77.0.3 laptop.anna.lan\n10.77.0.4 old.anna.lan\n10.77.0.5 bphone.boris.lan\n10.77.0.6 cphone.clara.lan\n10.77.0.7 dphone.dima.lan\n10.77.0.8 ephone.eva.lan\n10.77.0.9 fphone.fedor.lan\n10.77.0.10 gphone.gleb.lan\n10.78.0.2 hphone.hana.lan\n10.78.0.3 iphone.ivan.lan\n10.79.0.2 kphone.kira.lan\n10.79.0.3 lphone.lev.lan\n10.77.0.11 nphone.nora.lan\n",
|
||||
"hosts_mode": true,
|
||||
"nft_err": "rules:1:1-5: Error: a made-up failure",
|
||||
"present": true
|
||||
},
|
||||
{
|
||||
"what": "the table will not load and there is none: nobody is loaded",
|
||||
"peers": {
|
||||
"home": "ok",
|
||||
"cabin": "ok",
|
||||
"open": "ok"
|
||||
},
|
||||
"table": "rules:1:1-5: Error: a made-up failure",
|
||||
"warning": "Access rules couldn't load (rules:1:1-5: Error: a made-up failure): no device is loaded into the tunnels until they do. Open Overview → Health.",
|
||||
"states": {
|
||||
"anna": "active",
|
||||
"boris": "active",
|
||||
"clara": "active",
|
||||
"dima": "active",
|
||||
"eva": "active",
|
||||
"fedor": "active",
|
||||
"gleb": "paused",
|
||||
"hana": "active",
|
||||
"ivan": "active",
|
||||
"kira": "active",
|
||||
"lev": "active",
|
||||
"nora": "active"
|
||||
},
|
||||
"scripts": [
|
||||
"table inet dawnline\ndelete table inet dawnline\ntable inet dawnline {\n\tset home_home { type ipv4_addr; flags interval; elements = { 192.168.50.0/24, 192.168.77.0/24 } }\n\tset home_cabin { type ipv4_addr; flags interval; elements = { 192.168.50.0/24 } }\n\tset home_open { type ipv4_addr; flags interval; elements = { 192.168.77.0/24 } }\n\tset tun_nets { type ipv4_addr; flags interval; elements = { 10.77.0.0/24, 10.78.0.0/24, 10.79.0.0/24 } }\n\tset lan_ok { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.7, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset lan_all { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3 } }\n\tset lan_part { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.7 . 192.168.50.0/24, 10.77.0.11 . 192.168.77.0/24 } }\n\tset mesh_pairs { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.2 . 10.77.0.3, 10.77.0.2 . 10.77.0.5, 10.77.0.2 . 10.77.0.11, 10.77.0.3 . 10.77.0.2, 10.77.0.3 . 10.77.0.5, 10.77.0.3 . 10.77.0.11, 10.77.0.5 . 10.77.0.2, 10.77.0.5 . 10.77.0.3, 10.77.0.5 . 10.77.0.11, 10.77.0.11 . 10.77.0.2, 10.77.0.11 . 10.77.0.3, 10.77.0.11 . 10.77.0.5 } }\n\tset inet_ok { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.6, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset svc_ok { type ipv4_addr . ipv4_addr . inet_service; flags interval; }\n\tset svc_host { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.8 . 192.168.77.5, 10.77.0.8 . 192.168.50.30 } }\n\tset dns_real { type ipv4_addr; flags interval; }\n\tchain pre {\n\t\ttype filter hook prerouting priority -160; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } jump guard\n\t}\n\tchain guard {\n\t\tmeta nfproto ipv6 drop\n\t\tct state related accept\n\t\tct status dnat accept\n\t\ticmp type { echo-request, echo-reply } fib daddr type local accept\n\t\tfib daddr type local meta l4proto { tcp, udp } th dport 53 accept\n\t\tfib daddr type local tcp dport { 4500, 4501 } accept\n\t\tfib daddr type local ip saddr @lan_all accept\n\t\tfib daddr type local ip saddr . ip daddr @lan_part accept\n\t\tfib daddr type local counter drop\n\t\tiifname \"dawn0\" ip daddr @home_home ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn1\" ip daddr @home_cabin ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn2\" ip daddr @home_open ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tip saddr . ip daddr @lan_part ip daddr != @tun_nets accept\n\t\tiifname \"dawn0\" ip saddr . ip daddr @mesh_pairs accept\n\t\tiifname \"dawn2\" ip saddr @lan_ok ip daddr @lan_ok accept\n\t\tmeta l4proto { tcp, udp } ip saddr . ip daddr . th dport @svc_ok accept\n\t\tip saddr . ip daddr @svc_host accept\n\t\tip daddr { 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10, 169.254.0.0/16, 224.0.0.0/3 } counter drop\n\t\tip saddr @inet_ok accept\n\t\tcounter drop\n\t}\n\tchain inbound {\n\t\ttype filter hook forward priority filter - 5; policy accept;\n\t\toifname { \"dawn0\", \"dawn1\", \"dawn2\" } iifname != { \"dawn0\", \"dawn1\", \"dawn2\" } ct state new jump to_device\n\t}\n\tchain to_device {\n\t\tmeta nfproto ipv6 drop\n\t\tct status dnat accept\n\t\toifname \"dawn0\" ip saddr @home_home ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn1\" ip saddr @home_cabin ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn2\" ip saddr @home_open ip saddr != @tun_nets ip daddr @lan_all accept\n\t\tip daddr . ip saddr @lan_part ip saddr != @tun_nets accept\n\t\tcounter reject with icmpx admin-prohibited\n\t}\n\tchain dns {\n\t\ttype nat hook prerouting priority dstnat - 5; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } ip saddr @dns_real meta l4proto { tcp, udp } th dport 53 redirect to :5354\n\t}\n\tchain dns_lan {\n\t\ttype nat hook prerouting priority dstnat + 5; policy accept;\n\t\tiifname \"dawn0\" ip daddr 10.77.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn1\" ip daddr 10.78.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn2\" ip daddr 10.79.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t}\n}\n"
|
||||
],
|
||||
"confs": {
|
||||
"dawn0": "[Interface]\nPrivateKey = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA=\nListenPort = 4500\n",
|
||||
"dawn1": "[Interface]\nPrivateKey = ccccccccccccccccccccccccccccccccccccccccccA=\nListenPort = 4600\n",
|
||||
"dawn2": "[Interface]\nPrivateKey = eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeA=\nListenPort = 4700\n"
|
||||
},
|
||||
"hosts": "10.77.0.2 phone.anna.lan\n10.77.0.3 laptop.anna.lan\n10.77.0.4 old.anna.lan\n10.77.0.5 bphone.boris.lan\n10.77.0.6 cphone.clara.lan\n10.77.0.7 dphone.dima.lan\n10.77.0.8 ephone.eva.lan\n10.77.0.9 fphone.fedor.lan\n10.77.0.10 gphone.gleb.lan\n10.78.0.2 hphone.hana.lan\n10.78.0.3 iphone.ivan.lan\n10.79.0.2 kphone.kira.lan\n10.79.0.3 lphone.lev.lan\n10.77.0.11 nphone.nora.lan\n",
|
||||
"hosts_mode": true,
|
||||
"nft_err": "rules:1:1-5: Error: a made-up failure",
|
||||
"present": false
|
||||
},
|
||||
{
|
||||
"what": "the same failure again: told once",
|
||||
"peers": {
|
||||
"home": "ok",
|
||||
"cabin": "ok",
|
||||
"open": "ok"
|
||||
},
|
||||
"table": "rules:1:1-5: Error: a made-up failure",
|
||||
"warning": "Access rules couldn't load (rules:1:1-5: Error: a made-up failure): no device is loaded into the tunnels until they do. Open Overview → Health.",
|
||||
"states": {
|
||||
"anna": "active",
|
||||
"boris": "active",
|
||||
"clara": "active",
|
||||
"dima": "active",
|
||||
"eva": "active",
|
||||
"fedor": "active",
|
||||
"gleb": "paused",
|
||||
"hana": "active",
|
||||
"ivan": "active",
|
||||
"kira": "active",
|
||||
"lev": "active",
|
||||
"nora": "active"
|
||||
},
|
||||
"scripts": [
|
||||
"table inet dawnline\ndelete table inet dawnline\ntable inet dawnline {\n\tset home_home { type ipv4_addr; flags interval; elements = { 192.168.50.0/24, 192.168.77.0/24 } }\n\tset home_cabin { type ipv4_addr; flags interval; elements = { 192.168.50.0/24 } }\n\tset home_open { type ipv4_addr; flags interval; elements = { 192.168.77.0/24 } }\n\tset tun_nets { type ipv4_addr; flags interval; elements = { 10.77.0.0/24, 10.78.0.0/24, 10.79.0.0/24 } }\n\tset lan_ok { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.7, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset lan_all { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3 } }\n\tset lan_part { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.7 . 192.168.50.0/24, 10.77.0.11 . 192.168.77.0/24 } }\n\tset mesh_pairs { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.2 . 10.77.0.3, 10.77.0.2 . 10.77.0.5, 10.77.0.2 . 10.77.0.11, 10.77.0.3 . 10.77.0.2, 10.77.0.3 . 10.77.0.5, 10.77.0.3 . 10.77.0.11, 10.77.0.5 . 10.77.0.2, 10.77.0.5 . 10.77.0.3, 10.77.0.5 . 10.77.0.11, 10.77.0.11 . 10.77.0.2, 10.77.0.11 . 10.77.0.3, 10.77.0.11 . 10.77.0.5 } }\n\tset inet_ok { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.6, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset svc_ok { type ipv4_addr . ipv4_addr . inet_service; flags interval; }\n\tset svc_host { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.8 . 192.168.77.5, 10.77.0.8 . 192.168.50.30 } }\n\tset dns_real { type ipv4_addr; flags interval; }\n\tchain pre {\n\t\ttype filter hook prerouting priority -160; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } jump guard\n\t}\n\tchain guard {\n\t\tmeta nfproto ipv6 drop\n\t\tct state related accept\n\t\tct status dnat accept\n\t\ticmp type { echo-request, echo-reply } fib daddr type local accept\n\t\tfib daddr type local meta l4proto { tcp, udp } th dport 53 accept\n\t\tfib daddr type local tcp dport { 4500, 4501 } accept\n\t\tfib daddr type local ip saddr @lan_all accept\n\t\tfib daddr type local ip saddr . ip daddr @lan_part accept\n\t\tfib daddr type local counter drop\n\t\tiifname \"dawn0\" ip daddr @home_home ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn1\" ip daddr @home_cabin ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn2\" ip daddr @home_open ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tip saddr . ip daddr @lan_part ip daddr != @tun_nets accept\n\t\tiifname \"dawn0\" ip saddr . ip daddr @mesh_pairs accept\n\t\tiifname \"dawn2\" ip saddr @lan_ok ip daddr @lan_ok accept\n\t\tmeta l4proto { tcp, udp } ip saddr . ip daddr . th dport @svc_ok accept\n\t\tip saddr . ip daddr @svc_host accept\n\t\tip daddr { 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10, 169.254.0.0/16, 224.0.0.0/3 } counter drop\n\t\tip saddr @inet_ok accept\n\t\tcounter drop\n\t}\n\tchain inbound {\n\t\ttype filter hook forward priority filter - 5; policy accept;\n\t\toifname { \"dawn0\", \"dawn1\", \"dawn2\" } iifname != { \"dawn0\", \"dawn1\", \"dawn2\" } ct state new jump to_device\n\t}\n\tchain to_device {\n\t\tmeta nfproto ipv6 drop\n\t\tct status dnat accept\n\t\toifname \"dawn0\" ip saddr @home_home ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn1\" ip saddr @home_cabin ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn2\" ip saddr @home_open ip saddr != @tun_nets ip daddr @lan_all accept\n\t\tip daddr . ip saddr @lan_part ip saddr != @tun_nets accept\n\t\tcounter reject with icmpx admin-prohibited\n\t}\n\tchain dns {\n\t\ttype nat hook prerouting priority dstnat - 5; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } ip saddr @dns_real meta l4proto { tcp, udp } th dport 53 redirect to :5354\n\t}\n\tchain dns_lan {\n\t\ttype nat hook prerouting priority dstnat + 5; policy accept;\n\t\tiifname \"dawn0\" ip daddr 10.77.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn1\" ip daddr 10.78.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn2\" ip daddr 10.79.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t}\n}\n"
|
||||
],
|
||||
"confs": {
|
||||
"dawn0": "[Interface]\nPrivateKey = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA=\nListenPort = 4500\n",
|
||||
"dawn1": "[Interface]\nPrivateKey = ccccccccccccccccccccccccccccccccccccccccccA=\nListenPort = 4600\n",
|
||||
"dawn2": "[Interface]\nPrivateKey = eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeA=\nListenPort = 4700\n"
|
||||
},
|
||||
"hosts": "10.77.0.2 phone.anna.lan\n10.77.0.3 laptop.anna.lan\n10.77.0.4 old.anna.lan\n10.77.0.5 bphone.boris.lan\n10.77.0.6 cphone.clara.lan\n10.77.0.7 dphone.dima.lan\n10.77.0.8 ephone.eva.lan\n10.77.0.9 fphone.fedor.lan\n10.77.0.10 gphone.gleb.lan\n10.78.0.2 hphone.hana.lan\n10.78.0.3 iphone.ivan.lan\n10.79.0.2 kphone.kira.lan\n10.79.0.3 lphone.lev.lan\n10.77.0.11 nphone.nora.lan\n",
|
||||
"hosts_mode": true,
|
||||
"nft_err": "rules:1:1-5: Error: a made-up failure",
|
||||
"present": false
|
||||
},
|
||||
{
|
||||
"what": "it loads again; a tunnel refuses its devices",
|
||||
"peers": {
|
||||
"home": "Line unrecognized: a made-up refusal",
|
||||
"cabin": "ok",
|
||||
"open": "ok"
|
||||
},
|
||||
"table": null,
|
||||
"warning": "Couldn't load devices into Home: Line unrecognized: a made-up refusal. Open Overview → Health.",
|
||||
"states": {
|
||||
"anna": "active",
|
||||
"boris": "active",
|
||||
"clara": "active",
|
||||
"dima": "active",
|
||||
"eva": "active",
|
||||
"fedor": "active",
|
||||
"gleb": "paused",
|
||||
"hana": "active",
|
||||
"ivan": "active",
|
||||
"kira": "active",
|
||||
"lev": "active",
|
||||
"nora": "active"
|
||||
},
|
||||
"scripts": [
|
||||
"table inet dawnline\ndelete table inet dawnline\ntable inet dawnline {\n\tset home_home { type ipv4_addr; flags interval; elements = { 192.168.50.0/24, 192.168.77.0/24 } }\n\tset home_cabin { type ipv4_addr; flags interval; elements = { 192.168.50.0/24 } }\n\tset home_open { type ipv4_addr; flags interval; elements = { 192.168.77.0/24 } }\n\tset tun_nets { type ipv4_addr; flags interval; elements = { 10.77.0.0/24, 10.78.0.0/24, 10.79.0.0/24 } }\n\tset lan_ok { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.7, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset lan_all { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3 } }\n\tset lan_part { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.7 . 192.168.50.0/24, 10.77.0.11 . 192.168.77.0/24 } }\n\tset mesh_pairs { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.2 . 10.77.0.3, 10.77.0.2 . 10.77.0.5, 10.77.0.2 . 10.77.0.11, 10.77.0.3 . 10.77.0.2, 10.77.0.3 . 10.77.0.5, 10.77.0.3 . 10.77.0.11, 10.77.0.5 . 10.77.0.2, 10.77.0.5 . 10.77.0.3, 10.77.0.5 . 10.77.0.11, 10.77.0.11 . 10.77.0.2, 10.77.0.11 . 10.77.0.3, 10.77.0.11 . 10.77.0.5 } }\n\tset inet_ok { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.6, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset svc_ok { type ipv4_addr . ipv4_addr . inet_service; flags interval; }\n\tset svc_host { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.8 . 192.168.77.5, 10.77.0.8 . 192.168.50.30 } }\n\tset dns_real { type ipv4_addr; flags interval; }\n\tchain pre {\n\t\ttype filter hook prerouting priority -160; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } jump guard\n\t}\n\tchain guard {\n\t\tmeta nfproto ipv6 drop\n\t\tct state related accept\n\t\tct status dnat accept\n\t\ticmp type { echo-request, echo-reply } fib daddr type local accept\n\t\tfib daddr type local meta l4proto { tcp, udp } th dport 53 accept\n\t\tfib daddr type local tcp dport { 4500, 4501 } accept\n\t\tfib daddr type local ip saddr @lan_all accept\n\t\tfib daddr type local ip saddr . ip daddr @lan_part accept\n\t\tfib daddr type local counter drop\n\t\tiifname \"dawn0\" ip daddr @home_home ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn1\" ip daddr @home_cabin ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn2\" ip daddr @home_open ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tip saddr . ip daddr @lan_part ip daddr != @tun_nets accept\n\t\tiifname \"dawn0\" ip saddr . ip daddr @mesh_pairs accept\n\t\tiifname \"dawn2\" ip saddr @lan_ok ip daddr @lan_ok accept\n\t\tmeta l4proto { tcp, udp } ip saddr . ip daddr . th dport @svc_ok accept\n\t\tip saddr . ip daddr @svc_host accept\n\t\tip daddr { 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10, 169.254.0.0/16, 224.0.0.0/3 } counter drop\n\t\tip saddr @inet_ok accept\n\t\tcounter drop\n\t}\n\tchain inbound {\n\t\ttype filter hook forward priority filter - 5; policy accept;\n\t\toifname { \"dawn0\", \"dawn1\", \"dawn2\" } iifname != { \"dawn0\", \"dawn1\", \"dawn2\" } ct state new jump to_device\n\t}\n\tchain to_device {\n\t\tmeta nfproto ipv6 drop\n\t\tct status dnat accept\n\t\toifname \"dawn0\" ip saddr @home_home ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn1\" ip saddr @home_cabin ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn2\" ip saddr @home_open ip saddr != @tun_nets ip daddr @lan_all accept\n\t\tip daddr . ip saddr @lan_part ip saddr != @tun_nets accept\n\t\tcounter reject with icmpx admin-prohibited\n\t}\n\tchain dns {\n\t\ttype nat hook prerouting priority dstnat - 5; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } ip saddr @dns_real meta l4proto { tcp, udp } th dport 53 redirect to :5354\n\t}\n\tchain dns_lan {\n\t\ttype nat hook prerouting priority dstnat + 5; policy accept;\n\t\tiifname \"dawn0\" ip daddr 10.77.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn1\" ip daddr 10.78.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn2\" ip daddr 10.79.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t}\n}\n"
|
||||
],
|
||||
"confs": {
|
||||
"dawn0": "[Interface]\nPrivateKey = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA=\nListenPort = 4500\n\n[Peer]\nPublicKey = BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBA=\nAllowedIPs = 10.77.0.2/32\n\n[Peer]\nPublicKey = CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCA=\nAllowedIPs = 10.77.0.3/32\n\n[Peer]\nPublicKey = EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEA=\nAllowedIPs = 10.77.0.5/32\n\n[Peer]\nPublicKey = FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA=\nAllowedIPs = 10.77.0.6/32\n\n[Peer]\nPublicKey = GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGA=\nAllowedIPs = 10.77.0.7/32\n\n[Peer]\nPublicKey = HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHA=\nAllowedIPs = 10.77.0.8/32\n\n[Peer]\nPublicKey = IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIA=\nAllowedIPs = 10.77.0.9/32\n\n[Peer]\nPublicKey = OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOA=\nAllowedIPs = 10.77.0.11/32\n",
|
||||
"dawn1": "[Interface]\nPrivateKey = ccccccccccccccccccccccccccccccccccccccccccA=\nListenPort = 4600\n\n[Peer]\nPublicKey = KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKA=\nAllowedIPs = 10.78.0.2/32\n\n[Peer]\nPublicKey = LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLA=\nAllowedIPs = 10.78.0.3/32\n",
|
||||
"dawn2": "[Interface]\nPrivateKey = eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeA=\nListenPort = 4700\n\n[Peer]\nPublicKey = MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMA=\nAllowedIPs = 10.79.0.2/32\n\n[Peer]\nPublicKey = NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNA=\nAllowedIPs = 10.79.0.3/32\n"
|
||||
},
|
||||
"hosts": "10.77.0.2 phone.anna.lan\n10.77.0.3 laptop.anna.lan\n10.77.0.4 old.anna.lan\n10.77.0.5 bphone.boris.lan\n10.77.0.6 cphone.clara.lan\n10.77.0.7 dphone.dima.lan\n10.77.0.8 ephone.eva.lan\n10.77.0.9 fphone.fedor.lan\n10.77.0.10 gphone.gleb.lan\n10.78.0.2 hphone.hana.lan\n10.78.0.3 iphone.ivan.lan\n10.79.0.2 kphone.kira.lan\n10.79.0.3 lphone.lev.lan\n10.77.0.11 nphone.nora.lan\n",
|
||||
"hosts_mode": true,
|
||||
"nft_err": null,
|
||||
"present": true
|
||||
},
|
||||
{
|
||||
"what": "a tunnel is down",
|
||||
"peers": {
|
||||
"home": "ok",
|
||||
"cabin": "down",
|
||||
"open": "ok"
|
||||
},
|
||||
"table": null,
|
||||
"warning": null,
|
||||
"states": {
|
||||
"anna": "active",
|
||||
"boris": "active",
|
||||
"clara": "active",
|
||||
"dima": "active",
|
||||
"eva": "active",
|
||||
"fedor": "active",
|
||||
"gleb": "paused",
|
||||
"hana": "active",
|
||||
"ivan": "active",
|
||||
"kira": "active",
|
||||
"lev": "active",
|
||||
"nora": "active"
|
||||
},
|
||||
"scripts": [
|
||||
"table inet dawnline\ndelete table inet dawnline\ntable inet dawnline {\n\tset home_home { type ipv4_addr; flags interval; elements = { 192.168.50.0/24, 192.168.77.0/24 } }\n\tset home_cabin { type ipv4_addr; flags interval; elements = { 192.168.50.0/24 } }\n\tset home_open { type ipv4_addr; flags interval; elements = { 192.168.77.0/24 } }\n\tset tun_nets { type ipv4_addr; flags interval; elements = { 10.77.0.0/24, 10.78.0.0/24, 10.79.0.0/24 } }\n\tset lan_ok { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.7, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset lan_all { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3 } }\n\tset lan_part { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.7 . 192.168.50.0/24, 10.77.0.11 . 192.168.77.0/24 } }\n\tset mesh_pairs { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.2 . 10.77.0.3, 10.77.0.2 . 10.77.0.5, 10.77.0.2 . 10.77.0.11, 10.77.0.3 . 10.77.0.2, 10.77.0.3 . 10.77.0.5, 10.77.0.3 . 10.77.0.11, 10.77.0.5 . 10.77.0.2, 10.77.0.5 . 10.77.0.3, 10.77.0.5 . 10.77.0.11, 10.77.0.11 . 10.77.0.2, 10.77.0.11 . 10.77.0.3, 10.77.0.11 . 10.77.0.5 } }\n\tset inet_ok { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.6, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset svc_ok { type ipv4_addr . ipv4_addr . inet_service; flags interval; }\n\tset svc_host { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.8 . 192.168.77.5, 10.77.0.8 . 192.168.50.30 } }\n\tset dns_real { type ipv4_addr; flags interval; }\n\tchain pre {\n\t\ttype filter hook prerouting priority -160; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } jump guard\n\t}\n\tchain guard {\n\t\tmeta nfproto ipv6 drop\n\t\tct state related accept\n\t\tct status dnat accept\n\t\ticmp type { echo-request, echo-reply } fib daddr type local accept\n\t\tfib daddr type local meta l4proto { tcp, udp } th dport 53 accept\n\t\tfib daddr type local tcp dport { 4500, 4501 } accept\n\t\tfib daddr type local ip saddr @lan_all accept\n\t\tfib daddr type local ip saddr . ip daddr @lan_part accept\n\t\tfib daddr type local counter drop\n\t\tiifname \"dawn0\" ip daddr @home_home ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn1\" ip daddr @home_cabin ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn2\" ip daddr @home_open ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tip saddr . ip daddr @lan_part ip daddr != @tun_nets accept\n\t\tiifname \"dawn0\" ip saddr . ip daddr @mesh_pairs accept\n\t\tiifname \"dawn2\" ip saddr @lan_ok ip daddr @lan_ok accept\n\t\tmeta l4proto { tcp, udp } ip saddr . ip daddr . th dport @svc_ok accept\n\t\tip saddr . ip daddr @svc_host accept\n\t\tip daddr { 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10, 169.254.0.0/16, 224.0.0.0/3 } counter drop\n\t\tip saddr @inet_ok accept\n\t\tcounter drop\n\t}\n\tchain inbound {\n\t\ttype filter hook forward priority filter - 5; policy accept;\n\t\toifname { \"dawn0\", \"dawn1\", \"dawn2\" } iifname != { \"dawn0\", \"dawn1\", \"dawn2\" } ct state new jump to_device\n\t}\n\tchain to_device {\n\t\tmeta nfproto ipv6 drop\n\t\tct status dnat accept\n\t\toifname \"dawn0\" ip saddr @home_home ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn1\" ip saddr @home_cabin ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn2\" ip saddr @home_open ip saddr != @tun_nets ip daddr @lan_all accept\n\t\tip daddr . ip saddr @lan_part ip saddr != @tun_nets accept\n\t\tcounter reject with icmpx admin-prohibited\n\t}\n\tchain dns {\n\t\ttype nat hook prerouting priority dstnat - 5; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } ip saddr @dns_real meta l4proto { tcp, udp } th dport 53 redirect to :5354\n\t}\n\tchain dns_lan {\n\t\ttype nat hook prerouting priority dstnat + 5; policy accept;\n\t\tiifname \"dawn0\" ip daddr 10.77.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn1\" ip daddr 10.78.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn2\" ip daddr 10.79.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t}\n}\n"
|
||||
],
|
||||
"confs": {
|
||||
"dawn0": "[Interface]\nPrivateKey = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA=\nListenPort = 4500\n\n[Peer]\nPublicKey = BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBA=\nAllowedIPs = 10.77.0.2/32\n\n[Peer]\nPublicKey = CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCA=\nAllowedIPs = 10.77.0.3/32\n\n[Peer]\nPublicKey = EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEA=\nAllowedIPs = 10.77.0.5/32\n\n[Peer]\nPublicKey = FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA=\nAllowedIPs = 10.77.0.6/32\n\n[Peer]\nPublicKey = GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGA=\nAllowedIPs = 10.77.0.7/32\n\n[Peer]\nPublicKey = HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHA=\nAllowedIPs = 10.77.0.8/32\n\n[Peer]\nPublicKey = IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIA=\nAllowedIPs = 10.77.0.9/32\n\n[Peer]\nPublicKey = OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOA=\nAllowedIPs = 10.77.0.11/32\n",
|
||||
"dawn2": "[Interface]\nPrivateKey = eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeA=\nListenPort = 4700\n\n[Peer]\nPublicKey = MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMA=\nAllowedIPs = 10.79.0.2/32\n\n[Peer]\nPublicKey = NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNA=\nAllowedIPs = 10.79.0.3/32\n"
|
||||
},
|
||||
"hosts": "10.77.0.2 phone.anna.lan\n10.77.0.3 laptop.anna.lan\n10.77.0.4 old.anna.lan\n10.77.0.5 bphone.boris.lan\n10.77.0.6 cphone.clara.lan\n10.77.0.7 dphone.dima.lan\n10.77.0.8 ephone.eva.lan\n10.77.0.9 fphone.fedor.lan\n10.77.0.10 gphone.gleb.lan\n10.78.0.2 hphone.hana.lan\n10.78.0.3 iphone.ivan.lan\n10.79.0.2 kphone.kira.lan\n10.79.0.3 lphone.lev.lan\n10.77.0.11 nphone.nora.lan\n",
|
||||
"hosts_mode": true,
|
||||
"nft_err": null,
|
||||
"present": true
|
||||
},
|
||||
{
|
||||
"what": "all is well",
|
||||
"peers": {
|
||||
"home": "ok",
|
||||
"cabin": "ok",
|
||||
"open": "ok"
|
||||
},
|
||||
"table": null,
|
||||
"warning": null,
|
||||
"states": {
|
||||
"anna": "active",
|
||||
"boris": "active",
|
||||
"clara": "active",
|
||||
"dima": "active",
|
||||
"eva": "active",
|
||||
"fedor": "active",
|
||||
"gleb": "paused",
|
||||
"hana": "active",
|
||||
"ivan": "active",
|
||||
"kira": "active",
|
||||
"lev": "active",
|
||||
"nora": "active"
|
||||
},
|
||||
"scripts": [
|
||||
"table inet dawnline\ndelete table inet dawnline\ntable inet dawnline {\n\tset home_home { type ipv4_addr; flags interval; elements = { 192.168.50.0/24, 192.168.77.0/24 } }\n\tset home_cabin { type ipv4_addr; flags interval; elements = { 192.168.50.0/24 } }\n\tset home_open { type ipv4_addr; flags interval; elements = { 192.168.77.0/24 } }\n\tset tun_nets { type ipv4_addr; flags interval; elements = { 10.77.0.0/24, 10.78.0.0/24, 10.79.0.0/24 } }\n\tset lan_ok { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.7, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset lan_all { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3 } }\n\tset lan_part { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.7 . 192.168.50.0/24, 10.77.0.11 . 192.168.77.0/24 } }\n\tset mesh_pairs { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.2 . 10.77.0.3, 10.77.0.2 . 10.77.0.5, 10.77.0.2 . 10.77.0.11, 10.77.0.3 . 10.77.0.2, 10.77.0.3 . 10.77.0.5, 10.77.0.3 . 10.77.0.11, 10.77.0.5 . 10.77.0.2, 10.77.0.5 . 10.77.0.3, 10.77.0.5 . 10.77.0.11, 10.77.0.11 . 10.77.0.2, 10.77.0.11 . 10.77.0.3, 10.77.0.11 . 10.77.0.5 } }\n\tset inet_ok { type ipv4_addr; flags interval; elements = { 10.77.0.2, 10.77.0.3, 10.77.0.5, 10.77.0.6, 10.77.0.9, 10.78.0.2, 10.78.0.3, 10.79.0.2, 10.79.0.3, 10.77.0.11 } }\n\tset svc_ok { type ipv4_addr . ipv4_addr . inet_service; flags interval; }\n\tset svc_host { type ipv4_addr . ipv4_addr; flags interval; elements = { 10.77.0.8 . 192.168.77.5, 10.77.0.8 . 192.168.50.30 } }\n\tset dns_real { type ipv4_addr; flags interval; }\n\tchain pre {\n\t\ttype filter hook prerouting priority -160; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } jump guard\n\t}\n\tchain guard {\n\t\tmeta nfproto ipv6 drop\n\t\tct state related accept\n\t\tct status dnat accept\n\t\ticmp type { echo-request, echo-reply } fib daddr type local accept\n\t\tfib daddr type local meta l4proto { tcp, udp } th dport 53 accept\n\t\tfib daddr type local tcp dport { 4500, 4501 } accept\n\t\tfib daddr type local ip saddr @lan_all accept\n\t\tfib daddr type local ip saddr . ip daddr @lan_part accept\n\t\tfib daddr type local counter drop\n\t\tiifname \"dawn0\" ip daddr @home_home ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn1\" ip daddr @home_cabin ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tiifname \"dawn2\" ip daddr @home_open ip daddr != @tun_nets ip saddr @lan_all accept\n\t\tip saddr . ip daddr @lan_part ip daddr != @tun_nets accept\n\t\tiifname \"dawn0\" ip saddr . ip daddr @mesh_pairs accept\n\t\tiifname \"dawn2\" ip saddr @lan_ok ip daddr @lan_ok accept\n\t\tmeta l4proto { tcp, udp } ip saddr . ip daddr . th dport @svc_ok accept\n\t\tip saddr . ip daddr @svc_host accept\n\t\tip daddr { 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10, 169.254.0.0/16, 224.0.0.0/3 } counter drop\n\t\tip saddr @inet_ok accept\n\t\tcounter drop\n\t}\n\tchain inbound {\n\t\ttype filter hook forward priority filter - 5; policy accept;\n\t\toifname { \"dawn0\", \"dawn1\", \"dawn2\" } iifname != { \"dawn0\", \"dawn1\", \"dawn2\" } ct state new jump to_device\n\t}\n\tchain to_device {\n\t\tmeta nfproto ipv6 drop\n\t\tct status dnat accept\n\t\toifname \"dawn0\" ip saddr @home_home ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn1\" ip saddr @home_cabin ip saddr != @tun_nets ip daddr @lan_all accept\n\t\toifname \"dawn2\" ip saddr @home_open ip saddr != @tun_nets ip daddr @lan_all accept\n\t\tip daddr . ip saddr @lan_part ip saddr != @tun_nets accept\n\t\tcounter reject with icmpx admin-prohibited\n\t}\n\tchain dns {\n\t\ttype nat hook prerouting priority dstnat - 5; policy accept;\n\t\tiifname { \"dawn0\", \"dawn1\", \"dawn2\" } ip saddr @dns_real meta l4proto { tcp, udp } th dport 53 redirect to :5354\n\t}\n\tchain dns_lan {\n\t\ttype nat hook prerouting priority dstnat + 5; policy accept;\n\t\tiifname \"dawn0\" ip daddr 10.77.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn1\" ip daddr 10.78.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t\tiifname \"dawn2\" ip daddr 10.79.0.1 meta l4proto { tcp, udp } th dport 53 dnat ip to 192.168.77.1:53\n\t}\n}\n"
|
||||
],
|
||||
"confs": {
|
||||
"dawn0": "[Interface]\nPrivateKey = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA=\nListenPort = 4500\n\n[Peer]\nPublicKey = BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBA=\nAllowedIPs = 10.77.0.2/32\n\n[Peer]\nPublicKey = CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCA=\nAllowedIPs = 10.77.0.3/32\n\n[Peer]\nPublicKey = EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEA=\nAllowedIPs = 10.77.0.5/32\n\n[Peer]\nPublicKey = FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA=\nAllowedIPs = 10.77.0.6/32\n\n[Peer]\nPublicKey = GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGA=\nAllowedIPs = 10.77.0.7/32\n\n[Peer]\nPublicKey = HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHA=\nAllowedIPs = 10.77.0.8/32\n\n[Peer]\nPublicKey = IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIA=\nAllowedIPs = 10.77.0.9/32\n\n[Peer]\nPublicKey = OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOA=\nAllowedIPs = 10.77.0.11/32\n",
|
||||
"dawn1": "[Interface]\nPrivateKey = ccccccccccccccccccccccccccccccccccccccccccA=\nListenPort = 4600\n\n[Peer]\nPublicKey = KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKA=\nAllowedIPs = 10.78.0.2/32\n\n[Peer]\nPublicKey = LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLA=\nAllowedIPs = 10.78.0.3/32\n",
|
||||
"dawn2": "[Interface]\nPrivateKey = eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeA=\nListenPort = 4700\n\n[Peer]\nPublicKey = MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMA=\nAllowedIPs = 10.79.0.2/32\n\n[Peer]\nPublicKey = NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNA=\nAllowedIPs = 10.79.0.3/32\n"
|
||||
},
|
||||
"hosts": "10.77.0.2 phone.anna.lan\n10.77.0.3 laptop.anna.lan\n10.77.0.4 old.anna.lan\n10.77.0.5 bphone.boris.lan\n10.77.0.6 cphone.clara.lan\n10.77.0.7 dphone.dima.lan\n10.77.0.8 ephone.eva.lan\n10.77.0.9 fphone.fedor.lan\n10.77.0.10 gphone.gleb.lan\n10.78.0.2 hphone.hana.lan\n10.78.0.3 iphone.ivan.lan\n10.79.0.2 kphone.kira.lan\n10.79.0.3 lphone.lev.lan\n10.77.0.11 nphone.nora.lan\n",
|
||||
"hosts_mode": true,
|
||||
"nft_err": null,
|
||||
"present": true
|
||||
}
|
||||
],
|
||||
"settings": "\nconfig settings 'settings'\n\toption portal_enabled '1'\n\toption portal_port '4500'\n\toption portal_host 'vpn.example.org'\n\tlist portal_alt '203.0.113.7'\n\nconfig server 'home'\n\toption name 'Home'\n\toption ifname 'dawn0'\n\toption port '4500'\n\toption subnet '10.77.0.0/24'\n\toption private_key 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA='\n\toption public_key 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbA='\n\toption auto_lan '0'\n\tlist lan_device 'dlhome'\n\tlist lan_device 'br-lan'\n\toption mesh 'circles'\n\toption lan_like '0'\n\nconfig server 'cabin'\n\toption name 'Cabin'\n\toption ifname 'dawn1'\n\toption port '4600'\n\toption subnet '10.78.0.0/24'\n\toption private_key 'ccccccccccccccccccccccccccccccccccccccccccA='\n\toption public_key 'ddddddddddddddddddddddddddddddddddddddddddA='\n\toption auto_lan '0'\n\tlist lan_device 'dlhome'\n\toption mesh 'off'\n\nconfig server 'open'\n\toption name 'Open'\n\toption ifname 'dawn2'\n\toption port '4700'\n\toption subnet '10.79.0.0/24'\n\toption private_key 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeA='\n\toption public_key 'ffffffffffffffffffffffffffffffffffffffffffA='\n\toption auto_lan '0'\n\tlist lan_device 'br-lan'\n\toption mesh 'all'\n\nconfig circle 'fam'\n\toption server 'home'\n\toption name 'Family'\n\nconfig circle 'work'\n\toption server 'home'\n\toption name 'Work'\n\nconfig service 'nas'\n\toption name 'NAS'\n\toption address '192.168.77.5'\n\tlist ports '445'\n\tlist ports '139'\n\nconfig service 'cam'\n\toption name 'Camera'\n\toption address '192.168.50.30'\n\nconfig person 'anna'\n\toption server 'home'\n\toption name 'Anna'\n\toption access 'both'\n\toption circle 'fam'\n\nconfig person 'boris'\n\toption server 'home'\n\toption name 'Boris'\n\toption access 'both'\n\toption circle 'fam'\n\nconfig person 'clara'\n\toption server 'home'\n\toption name 'Clara'\n\toption access 'internet'\n\nconfig person 'dima'\n\toption server 'home'\n\toption name 'Dima'\n\toption access 'lan'\n\tlist home_net 'dlhome'\n\nconfig person 'eva'\n\toption server 'home'\n\toption name 'Eva'\n\toption access 'lan'\n\tlist service 'nas'\n\tlist service 'cam'\n\nconfig person 'fedor'\n\toption server 'home'\n\toption name 'Fedor'\n\toption access 'both'\n\toption circle 'work'\n\nconfig person 'gleb'\n\toption server 'home'\n\toption name 'Gleb'\n\toption access 'both'\n\toption paused '1'\n\nconfig person 'hana'\n\toption server 'cabin'\n\toption name 'Hana'\n\toption access 'both'\n\nconfig person 'ivan'\n\toption server 'cabin'\n\toption name 'Ivan'\n\toption access 'both'\n\nconfig person 'kira'\n\toption server 'open'\n\toption name 'Kira'\n\toption access 'both'\n\nconfig person 'lev'\n\toption server 'open'\n\toption name 'Lev'\n\toption access 'both'\n\nconfig person 'nora'\n\toption server 'home'\n\toption name 'Nora'\n\toption access 'both'\n\toption circle 'fam'\n\tlist home_net 'br-lan'\n\nconfig device 'phone'\n\toption person 'anna'\n\toption name 'Phone'\n\toption address '10.77.0.2'\n\toption public_key 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBA='\n\nconfig device 'laptop'\n\toption person 'anna'\n\toption name 'Laptop'\n\toption address '10.77.0.3'\n\toption public_key 'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCA='\n\toption lan_bypass '1'\n\toption kind 'computer'\n\nconfig device 'old'\n\toption person 'anna'\n\toption name 'Old'\n\toption address '10.77.0.4'\n\toption public_key 'DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDA='\n\toption disabled '1'\n\nconfig device 'bphone'\n\toption person 'boris'\n\toption name 'Bphone'\n\toption address '10.77.0.5'\n\toption public_key 'EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEA='\n\nconfig device 'cphone'\n\toption person 'clara'\n\toption name 'Cphone'\n\toption address '10.77.0.6'\n\toption public_key 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA='\n\nconfig device 'dphone'\n\toption person 'dima'\n\toption name 'Dphone'\n\toption address '10.77.0.7'\n\toption public_key 'GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGA='\n\nconfig device 'ephone'\n\toption person 'eva'\n\toption name 'Ephone'\n\toption address '10.77.0.8'\n\toption public_key 'HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHA='\n\nconfig device 'fphone'\n\toption person 'fedor'\n\toption name 'Fphone'\n\toption address '10.77.0.9'\n\toption public_key 'IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIA='\n\nconfig device 'gphone'\n\toption person 'gleb'\n\toption name 'Gphone'\n\toption address '10.77.0.10'\n\toption public_key 'JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJA='\n\nconfig device 'hphone'\n\toption person 'hana'\n\toption name 'Hphone'\n\toption address '10.78.0.2'\n\toption public_key 'KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKA='\n\nconfig device 'iphone'\n\toption person 'ivan'\n\toption name 'Iphone'\n\toption address '10.78.0.3'\n\toption public_key 'LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLA='\n\nconfig device 'kphone'\n\toption person 'kira'\n\toption name 'Kphone'\n\toption address '10.79.0.2'\n\toption publicLine truncated
|
||||
}
|
||||
Reference in new issue
Block a user