summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network
AgeCommit message (Collapse)Author
2022-08-30Merge pull request #5589 from systemcrash/multi_to_unicastJo-Philipp Wich
luci-mod-network: Expose multicast_to_unicast setting
2022-07-27luci-mod-network: ensure consistent bridge port and network interface orderJo-Philipp Wich
Ref: #5899 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-07-12luci-mod-network: demote WPA-PSK to "low" security in the choice listJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-07-08luci-mod-network: fix sort operationsJo-Philipp Wich
Ensure to return [-1, 0, 1] from the sort callback instead of [0, 1] which fails in non-FF browsers. Fixes: #5859 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-06-21luci-mod-network: wireless.js: fix typo in description stringJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-06-21luci-mod-network: wireless.js: expose wifi-iface macaddr optionJo-Philipp Wich
Fixes: #5845 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-05-20luci-mod-network: interfaces.js: remove references to original MAC/MTUJo-Philipp Wich
Do not show the original values for MAC and MTU in device list tooltips anymore as the values we read from the netdev might already stem from overridden config settings. Since there's no generic way to acquire that information, remove the potentially confusing information. Fixes: #5820 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-04-28luci-mod-network: routes: allow prefixes as route sourceJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-04-27luci-mod-network: diagnostics: peg max traceroute hops to rpc timeoutJo-Philipp Wich
In the worst case, traceroute might take up to 30s to complete when tracing a completely unreachable path, due to the default limit of 30 hops multiplied by the per-hop deadline of 1 second (-w 1). Limit the maximum amount of hops to the configured rpc execution timeout, 20 second by default, in order to avoid running into timed out rpc requests. Fixes: #5782 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-04-27Merge pull request #5718 from ptpt52/fix-switchJo-Philipp Wich
luci-mod-network: switch: Fix multi instances handling
2022-04-27luci-mod-network: switch: Fix multi instances handlingChen Minqiang
Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2022-04-27luci-mod-network: avoid needlessly writing `none` RA flagsJo-Philipp Wich
Fixes: #5725 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-03-28luci-mod-status,mod-network: Added fqdn-name to DHCPv4 lease tableMax S Kash
Added code to display fcdn-name in DHCPv4 lease table. (based on code in DHCPv6 lease table) Signed-off-by: Max S Kash <asukms@ya.ru> Indentation adjused and wrapped commit message Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-02-22luci-mod-network: (wireless) Expose multicast_to_unicast setting.Paul Dee
From https://w1.fi/cgit/hostap/commit/?id=34f7c699a6bcb5c45f82ceb6743354ad79296078 add support for multicast_to_unicast conversion in the wireless settings Tested on: 21.02.1 Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
2022-02-18Merge pull request #4515 from TDT-AG/pr/20201014-diag-ping6Jo-Philipp Wich
luci-mod-network: diagnostics.js: don't pass IP version flag to ping6
2022-02-10luci-mod-network: add descriptions to routing/rules sectionsMatthew Hagan
Provide descriptions for options in the IP routing and rules sections. Test is based upon that within the OpenWrt documentation[1]. [1] https://openwrt.org/docs/guide-user/network/routing/routes_configuration Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
2022-02-09luci-mod-network: add support for UID iprulesMatthew Hagan
Allow user-specific routing policies to be defined in luci. A single UID or range of UIDs may be defined. Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
2022-01-23luci-mod-network: Clean up RADIUS strings in EAP options.Paul Dee
Plus placeholders for default ports. Signed-off-by: Paul Dee <systemcrash@users.noreply.github.com> [resolved trivial conflicts]
2022-01-21luci-mod-network: fix creating joining wireless networksJo-Philipp Wich
Fixes: #5651 Fixes: 1c798d1a08 ("luci-base: form.js: allow nesting Grid and Table sections") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-01-19luci-mod-network: fix creating new interfacesJo-Philipp Wich
Fixes: #5646 Fixes: 1c798d1a08 ("luci-base: form.js: allow nesting Grid and Table sections") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-01-07luci-mod-network: fix reading back rpfilter configuration valueJo-Philipp Wich
Fixes: #5635 Fixes: faad7464a8 ("luci-mod-network: add support for network.device sections") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-12-09luci-mod-network: wireless.js: retain maclist contentsJo-Philipp Wich
Fixes: #5579 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-12-01luci-mod-network: allow IPv6 dns, dns_service and domain for RA only modeJo-Philipp Wich
Fixes: #5564 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-12-01luci-mod-network: fix loading ra_mtu and ra_hoplimit optionsJo-Philipp Wich
Fixes: #5565 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-12-01luci-mod-network: fix unbalanced and confusing markup in DHCP translationJo-Philipp Wich
The string `<%s>...<%s>` is invalid HTML and will confuse translation software like poedit as well as human translators. It is not clear that `<%s>...<%s>` is supposed to interpolate into both a start and end tag and `<%s>` might be mistaken as a quoted form of `%s` like `«%s»` or `〈%s〉`. Replace the string with `<a href="%s">...</a>` to make it immediately clear that the acronym is surrounded by an HTML anchor, only pass the destination URL via string formatting to avoid mistranslations there. Fixes: 3bfcf99a68 ("luci-mod-network: fix unbalanced and confusing markup in DHCP translation") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-12-01luci-mod-network: Disambiguate DNS config messagePaul Dee
Responses themselves are not RFC1918, but the address types that they contain may be. Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
2021-11-11luci-mod-network: use firewall.getZoneColorStyle() in interface viewJo-Philipp Wich
Use the new `firewall.getZoneColorStyle()` helper to apply background zone color styles to the interface boxes. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-10-31luci-mod-network: fix invalid markup in TFTP/PXE settings tabJo-Philipp Wich
Also resync translations accordingly. Fixes: #5475 Fixes: 3165d5ea3f ("luci-mod-network: Add PXE Boot options tab under DHCP and DNS") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-10-25luci-mod-network: Add PXE Boot options tab under DHCP and DNSPaul Dee
This commit adds support for managing `boot` sections in /etc/config/dhcp. Signed-off-by: Paul Dee <systemcrash@users.noreply.github.com> [Hide alias interfaces in network select, reword commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-10-22luci-mod-network: remove related bridge-vlan sections on deleting deviceJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-10-19luci-mod-network: allow sorting static leasesJo-Philipp Wich
Fixes: #5453 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-10-12Merge pull request #5436 from vgaetera/dhcp-ipsetJo-Philipp Wich
2021-10-11luci-mod-network: diagnostics: remove leftover attributeJo-Philipp Wich
There is no `type` attribute for `select` elements. Fixes: 5ac9fd7b3b ("luci-mod-network: diagnostics: remove arp-scan install placeholder") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-10-11luci-mod-network: diagnostics: remove arp-scan install placeholderJo-Philipp Wich
We do not want to advertise functionality that is not installed as it may have been left out intentionally. Referring to "Missing" functionality is confusing in this case. It is also not comparable to missing protocol extension hints as those are backed by actual user configuration. Also replace the freetext input with a dropdown of known network devices as the hardcoded `br-lan` is not universally applicable to all setups. In general we want to avoid hardcoding defaults which might deviate from the system state. Finaly drop the superfluous width annotations and add a missing space to the RPC command declaration. Fixes: 22b7442011 ("luci-mod-admin-full: add arp-scan to network diagnostic") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-10-12luci-mod-network: support dhcp.ipset as sectionVladislav Grigoryev
Allow configuring ipset sections in the dhcp config: https://openwrt.org/docs/guide-user/base-system/dhcp#ip_sets This can also be combined with instance-specific IP sets: https://github.com/openwrt/luci/pull/5402 However, it makes easier to assign domains to IP sets. Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-10-11luci-mod-admin-full: add arp-scan to network diagnosticPaul Spooren
This is a JavaScript rewrite of the PR#5152 It adds the ability to perform ARP scans if the tool `arp-scan` is installed. Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-08luci-mod-network: spelling / grammarPaul Dee
"Setup" is a noun, the thing. "Set up" is a verbal idiom, the action. One cannot setup a DHCP server, just as one cannot fuckup a test, or ripup some paper. One can, however, set a DHCP server up, and one can fuck a test up, and rip some paper up. Signed-off-by: Paul Dee <systemcrash@users.noreply.github.com>
2021-10-08Merge pull request #5353 from vgaetera/fix-rule-src/dest-textvalueJo-Philipp Wich
luci-mod-network: fix src/dest textvalue for rules
2021-10-01luci-mod-network: support dhcp.dnsmasq.ipsetVladislav Grigoryev
Allow to modify the ipset option in the dhcp.dnsmasq config. This makes possible to populate IP sets with dnsmasq. Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-09-27Merge pull request #5378 from vgaetera/dhcpv6-sourcefilterFlorian Eckert
luci-mod-network: support network.interface.sourcefilter
2021-09-27luci-mod-network: fix disabling 11w MFP for WPA3Jo-Philipp Wich
Fixes: #5394 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-09-23luci-mod-network: fix name of network.device.isolate uci optionJo-Philipp Wich
Fixes: #5383 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-09-22luci-mod-network: support network.interface.sourcefilterVladislav Grigoryev
Allow to modify the sourcefilter option in the network.interface config. This is required for custom policy routing with IPv6 MWAN and/or NAT6. Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-09-10luci-mod-network: fix src/dest textvalue for rulesVladislav Grigoryev
Fix the incorrectly displayed src/dest textvalue for the rules. Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-09-04luci-mod-network: fix route and rule optionsVladislav Grigoryev
Allow adding routes with unspecified interface. This is required for prohibit, blackhole and unreachable routes. Allow adding routes with loopback interface. This can work as a blackhole route. Fix netmask to prefix conversion for the routes. Identify the IP family by the UCI section type. Avoid setting the routing table textvalue for the rules. The rules should target none table unless specified otherwise. Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-09-03Merge pull request #5008 from mpratt14/vlan-defaultFlorian Eckert
luci-mod-network: do not remove enable_vlan from config
2021-09-01luci-mod-network: network/routing support for pbrVladislav Grigoryev
Provide comprehensive routing configuration: * Rename the "Network > Routes" page to "Network > Routing". * Unify sorting for the "Status" and "Network" menus. * Add the tabs "IPv4 Rules" and "IPv6 Rules" to the "Routing" page. * Provide configuration for IPv4 and IPv6 routing rules. * Consolidate routing configuration and terminology for IPv4 and IPv6. Policy-based routing is an increasingly popular problem. Netifd natively supports policy-based routing: * Interface-specific options "ip4table" and "ip6table". * Routing rules using the "rule" and "rule6" sections. LuCI is missing configuration for routing rules. Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-08-31Merge pull request #5301 from vgaetera/fix-iface-ip6tableJo-Philipp Wich
2021-08-31luci-mod-network: clarify device settings "Delete" buttonSven Roederer
Use proper label text "Unconfigure" for button which "Remove related device settings". Ref: #5090, #5092 Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
2021-08-31Merge pull request #5296 from vgaetera/dhcp-labelsFlorian Eckert
luci-mod-network: update dhcp and dns labels and descriptions