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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user