128 Commits

Author SHA1 Message Date
Ilia Ross
8ba6a02122 Merge branch 'master' into dev/add-deb-dhcpcd-support-1607 2026-06-21 00:00:06 +02:00
Ilia Ross
cb4a322042 Fix active virtual interface handling
ⓘ Treat Linux active virtual interfaces as secondary IP addresses instead of independent links, fixing alias parsing, hiding invalid status controls, rejecting down-state creation, and removing existing aliases with ip addr del when needed.

Reproduce path:

Example repro before this fix:

1. Go to **Network Configuration → Network Interfaces → Active Now**.
2. Click **Add a new interface**.
3. Enter:

```text
Name: enp0s5:1
IPv4 address: 10.211.55.21
Netmask: 255.255.255.0
Status: Down
```

4. Click **Create**.

Before the fix, Webmin could still create the alias or handle it inconsistently, because `enp0s5:1` is not a real link that can be “down”. It is just an extra IP address on `enp0s5`.

Expected after the fix:

- The UI should not offer `Status` for active virtual aliases.
- If someone submits `up=0` manually anyway, Webmin rejects it with:
  `Virtual interfaces cannot be created with down status`
- If an existing active virtual alias is saved as down through lower-level code, Webmin removes the IP using something like:

```bash
ip addr del 10.211.55.21/24 dev enp0s5
```
2026-06-20 15:23:09 +02:00
Ilia Ross
f2782073ce Fix to remove factored-out virtual alias changes 2026-06-20 15:09:31 +02:00
Ilia Ross
7ebe3f7dfa Add dhcpcd network backend for Debian and Raspberry Pi OS
This PR adds dhcpcd backend support for Debian and Raspberry Pi OS network configuration. It detects dhcpcd only as a final fallback after Netplan, NetworkManager, and ifupdown, preventing Webmin from incorrectly falling back to `/etc/network/interfaces` on dhcpcd-managed systems.

The new backend reads and writes `/etc/dhcpcd.conf`, including DHCP and static IPv4/IPv6 configuration, gateways, static routes, DNS servers, search domains, MTU, and virtual IPv4 aliases. It also supports implicit DHCP-managed interfaces for default dhcpcd setups with no explicit interface blocks, and handles `allowinterfaces` / `denyinterfaces` behavior.

This PR also fixes apply/delete flows for dhcpcd-managed interfaces and virtual aliases, avoids rewriting generated `/etc/resolv.conf`, preserves spacing/comments in touched hosts and nsswitch files, and tightens Active Now handling so virtual aliases are treated as IP addresses rather than independent links.

https://github.com/webmin/webmin/issues/1607
2026-06-20 01:57:50 +02:00
Imre Eilertsen
5f72e2e97e Update no 2026-06-15 13:50:04 +02:00
Ilia Ross
846bbb8252 Fix to preserve Netplan YAML when saving DNS
* Note: Preserve existing Netplan indentation when updating DNS settings, validate with netplan generate before applying, and surface apply errors to avoid network loss from malformed YAML.
2026-05-19 00:31:34 +02:00
Ilia Ross
695c78f631 Fix previously broken Farsi translations 2025-05-30 21:36:00 +03:00
Ilia Ross
833292c0d1 Add exported German language-neutral strings
https://github.com/webmin/webmin/discussions/2482
https://forum.virtualmin.com/t/on-the-rejection-of-gender-neutral-language/133527
2025-05-26 14:48:11 +03:00
Ilia Ross
501698ad4b Fix to use German rules most people already accept 1/2
https://github.com/webmin/webmin/discussions/2482
2025-05-24 20:43:25 +03:00
MacSteini
f799102e7a Update de 2025-03-04 11:34:53 +00:00
Ilia Ross
6d10d5aa55 Update translations 2025-02-27 13:56:29 +02:00
Ilia Ross
1cef7128d1 Fix to improve wording when applying network 2025-02-27 13:54:39 +02:00
MacSteini
c89ff93b4d Update de 2025-02-25 00:00:14 +00:00
Jamie Cameron
d54e7217d6 Log the apply action
https://github.com/webmin/webmin/issues/2422
2025-02-24 15:29:00 -08:00
Ilia Ross
f880192526 Remove languages with 0% coverage
https://github.com/webmin/webmin/issues/2403#issuecomment-2652613588
2025-02-12 13:19:49 +02:00
MacSteini
162206949f Consecutive Spaces Replacement
Replaced multiple consecutive spaces with a single space
2024-12-16 16:57:09 +00:00
MacSteini
5ea0cc6b42 Trailing Spaces Removal
Removed trailing spaces
2024-12-16 15:16:55 +00:00
MacSteini
477982776c Updated de
Corrections (UTF-8, new lines at file end), amendments, updates
2024-11-26 01:43:34 +00:00
MacSteini
54793b4596 Update de 2024-09-07 16:32:17 +01:00
iliajie
143fb86567 Update translations 2023-07-19 20:08:41 +03:00
Jamie Cameron
fd762c2f47 Add missing logging messages 2023-07-16 15:03:37 -07:00
Jamie Cameron
07a46ff561 Start of work on networkmanager support 2023-06-14 21:27:12 -07:00
Jamie Cameron
b9ed596e3e Add another bridge parameter field 2023-04-16 11:00:59 -07:00
Ilia Rostovtsev
0462945632 Update translations 3/3 2021-11-18 22:13:17 +03:00
Ilia Rostovtsev
7516875271 Update with latest translations 2021-06-13 13:51:50 +03:00
Jamie Cameron
ec3c00090d Show network config format in UI 2020-12-28 14:30:39 -08:00
Ilia Rostovtsev
4c4b647096 Fix to add extra line breaks (sections) to language files 2020-12-27 21:15:36 +03:00
Ilia Rostovtsev
e2a7aaaf6a Auto-fix French language translations 2020-12-25 14:32:30 +03:00
ljdj
6d2791dae7 Update fr
Complete and indented translation in French
2020-12-24 13:50:39 +01:00
Jamie Cameron
c6345ec1e9 Norwegian translation update from Stein-Askel Basma 2020-12-06 11:00:27 -08:00
Ilia Rostovtsev
68f1f5750e Add support for showing network interfaces on Dashboard https://github.com/authentic-theme/authentic-theme/issues/1453 2020-05-20 23:41:08 +03:00
Ilia Rostovtsev
ee56777e6d Drop useless empty files 2020-04-29 23:17:45 +03:00
Ilia Rostovtsev
edf18a19e2 Fix translation bug 2020-04-28 00:24:07 +03:00
Ilia Rostovtsev
8b40bed018 Fix to escape HTML entities as designed on template language (en)
Note: Large diff for most files is due to sorting lines as in template languge file (English)
2020-04-14 01:34:18 +03:00
Ilia Rostovtsev
cb4f274057 Fix translator errors: 1 USD -> 2020-03-27 20:46:29 +03:00
Ilia Rostovtsev
35e443a7fc Fix post-translation bugs /9 2020-03-13 14:38:43 +03:00
Ilia Rostovtsev
9a593e912b Fix post-translation bugs /8 2020-03-13 13:48:45 +03:00
Mike Steinmetz
3f08c54872 Fix index_delete1 2020-03-12 13:37:48 +01:00
Ilia Rostovtsev
95058833f3 Add complete transcoding/translation for module net 2020-03-05 01:36:45 +03:00
Ilia Rostovtsev
b854eef86d Drop no longer used language files 2020-02-28 03:22:35 +03:00
Kay Marquardt (Gnadelwartz)
a950ad1a5b german translations, NO log_* messages translation by default 2020-01-08 15:46:41 +01:00
Kay Marquardt (Gnadelwartz)
c52ff9184c add missing de translation strings 2020-01-08 14:41:52 +01:00
Jamie Cameron
1b1579ad1b Allow commenting out of hosts file entries 2019-07-03 01:35:33 -07:00
Jamie Cameron
ca1dcfabaf Catalan update from Jaume Badiella 2018-12-22 11:32:42 -08:00
Jamie Cameron
dc65d9b37e German translation updates from Raymond Vetter 2017-08-29 20:34:30 -07:00
Jamie Cameron
1f838a7257 Fix typo 2017-06-30 13:46:01 -07:00
Jamie Cameron
2bf3dcbf38 Catalan update from Jaume Badiella 2016-08-27 09:06:01 -07:00
Jamie Cameron
2cc32ee64a German translation updates from Raymond Vetter 2016-06-04 16:34:58 -07:00
Jamie Cameron
38876ff52e Norwegian update from Stein-Aksel Basma 2016-05-27 14:24:50 -07:00
Jamie Cameron
44216dbab9 German translation updates from Raymond Vetter 2016-05-21 10:03:29 -07:00