summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-07-31ipsec: T6148: Removed unused imports (#3915)mergify/bp/sagitta/pr-3915aapostoliuk
Removed unused pprint module (cherry picked from commit cb1834742f4ed01d99d6396af8339dd59788ef65)
2024-07-31ipsec: T6148: Fixed reset command by adding init after terminating (#3763) ↵mergify[bot]
(#3909) Strongswan does not initiate session after termination via vici. Added an CHILD SAs initialization on the initiator side of the tunnel. (cherry picked from commit 8838b29180ccc26d2aca0c22c9c8ca5e274825b2) Co-authored-by: aapostoliuk <108394744+aapostoliuk@users.noreply.github.com>
2024-07-31Merge pull request #3910 from vyos/mergify/bp/sagitta/pr-3698Christian Breunig
system: op-mode: T3334: allow delayed getty restart when configuring serial ports (backport #3698)
2024-07-31Merge pull request #3913 from vyos/mergify/bp/sagitta/pr-3753Christian Breunig
T6539: add logging options to load-balancer reverse-proxy (backport #3753)
2024-07-31smoketest: T6592: remove unused "import os"mergify/bp/sagitta/pr-3874Christian Breunig
(cherry picked from commit 4717139174a869141a71cd28d10018e0cfcaece0)
2024-07-30T6539: add logging options to load-balancer reverse-proxymergify/bp/sagitta/pr-3753Jonathan Voss
(cherry picked from commit dd5908eac390294ea178953fc0e6821d803d62f6)
2024-07-30system: op-mode: T3334: replace some print() statements with Warning()mergify/bp/sagitta/pr-3698Christian Breunig
Make it more obvious for the user aber the severity of his action. (cherry picked from commit b3b31153963cc4338e8229f9f94b339682dd73a0)
2024-07-30system: op-mode: T3334: allow delayed getty restart when configuring serial ↵Andrew Topp
ports * Created op-mode command "restart serial console" * Relocated service control to vyos.utils.serial helpers, used by conf- and op-mode serial console handling * Checking for logged-in serial sessions that may be affected by getty reconfig * Warning the user when changes are committed and serial sessions are active, otherwise restart services as normal. No prompts issued during commit, all config gen/commit steps still occur except for the service restarts (everything remains consistent) * To apply committed changes, user will need to run "restart serial console" to complete the process or reboot the whole router * Added additional flags and target filtering for generic use of helpers. (cherry picked from commit bc9049ebd76576d727fa87b10b96d1616950237c)
2024-07-30T6313: Add "NAT" to "generate" command for rule resequencemergify/bp/sagitta/pr-3715khramshinr
(cherry picked from commit 142545b0535d0a994182389c99b7bcd6d7c37c24)
2024-07-30vrf: T6603: improve code runtime when retrieving info from nftables vrf zonemergify/bp/sagitta/pr-3883Christian Breunig
(cherry picked from commit 31acb42ecdf4ecf0f636f831f42a845b8a00d367)
2024-07-30vrf: T6603: conntrack ct_iface_map must only contain one entry for ↵Christian Breunig
iifname/oifname When any of the following features NAT, NAT66 or Firewall is enabled, for every VRF on the CLI we install one rule into nftables for conntrack: chain vrf_zones_ct_in { type filter hook prerouting priority raw; policy accept; counter packets 3113 bytes 32227 ct original zone set iifname map @ct_iface_map counter packets 8550 bytes 80739 ct original zone set iifname map @ct_iface_map counter packets 5644 bytes 67697 ct original zone set iifname map @ct_iface_map } This is superfluous. (cherry picked from commit d6e9824f1612bd8c876437c071f31a1a0f44af5d)
2024-07-29Merge pull request #3890 from vyos/mergify/bp/sagitta/pr-3889Christian Breunig
smoketest: T5705: use locally connected remote syslog servers (backport #3889)
2024-07-29Merge pull request #3893 from vyos/mergify/bp/sagitta/pr-3888Christian Breunig
smoketest: T6614: initial support for op-mode command testing (backport #3888)
2024-07-29Merge pull request #3862 from vyos/mergify/bp/sagitta/pr-3853Christian Breunig
system_option: T5552: Apply IPv4 and IPv6 options after reapplying sysctls by TuneD (backport #3853)
2024-07-28T6605: restore configd error formatting to be consistent with CLI (#3868) ↵mergify[bot]
(#3878) (cherry picked from commit 645f24908c9b338adc56ecc83f8c44d0b0206550) Co-authored-by: John Estabrook <jestabro@vyos.io>
2024-07-28smoketest: T6614: initial support for op-mode command testingmergify/bp/sagitta/pr-3888Christian Breunig
(cherry picked from commit 33156c675f1bce0d2b3b1836a7d85abe25cd7f61)
2024-07-28Merge pull request #3886 from vyos/mergify/bp/sagitta/pr-3873Christian Breunig
Debian: T6598: depend on podman version >=4.9.5 (backport #3873)
2024-07-28smoketest: T5705: use locally connected remote syslog serversmergify/bp/sagitta/pr-3889Christian Breunig
As there has been no route to the configured syslog servers, smoketests produced: rsyslogd: omfwd: socket 8: error 101 sending via udp: Network is unreachable Rather use some fake syslog servers from 127.0.0.0/8 which are directly connected and we do not need to look up a route, which will suppress the above error message. (cherry picked from commit 744ecfe60ed3633775feeb3da767a88709fd626c)
2024-07-27Debian: T6598: depend on podman version >=4.9.5mergify/bp/sagitta/pr-3873Christian Breunig
(cherry picked from commit b9daaaa38abc08d27158ea44e016752b3cb45400)
2024-07-26Merge pull request #3882 from vyos/mergify/bp/sagitta/pr-3756Daniil Baturin
vxlan: T6505: Support VXLAN VLAN-VNI range mapping in CLI (backport #3756)
2024-07-26vxlan: T6505: Support VXLAN VLAN-VNI range mapping in CLI (#3756)mergify/bp/sagitta/pr-3756Nataliia S
(cherry picked from commit 115e99630a317cab62c6f99e0461f6ce2c1edaf3)
2024-07-25Merge pull request #3880 from c-po/sagitta-wireless-smoketestChristian Breunig
smoketest: T6425: fix wireless smoketest CLI from invalid backport
2024-07-25Merge pull request #3872 from vyos/mergify/bp/sagitta/pr-3857Christian Breunig
interface: T6592: remove interface from conntrack ct_iface_map on deletion (backport #3857)
2024-07-25smoketest: T6425: fix wireless smoketest CLI from invalid backportChristian Breunig
New CLI syntax got backported via commit 6fb600f3c ("wireless: T6320: add 802.11ax at 6GHz") Revert back to the stable CLI syntax in the 1.4 (sagitta) release.
2024-07-25smoketest: T6592: verify no interface stalls in conntrack ct_iface_map on ↵mergify/bp/sagitta/pr-3857Christian Breunig
deletion Now that interfaces are deleted from ct_iface_map during deletion it's time to also add a smoketest ensuring there is no entry in the ct_iface_map once an interface was deleted from the CLI. (cherry picked from commit 1c42ee9d16dd49fff2cbde652bf24a38f364526c)
2024-07-25interface: T6592: remove interface from conntrack ct_iface_map on deletionChristian Breunig
We always have had stale interface entries in the ct_iface_map of nftables/ conntrack for any interface that once belonged to a VRF. This commit will always clean the nftables interface map when the interface is deleted from the system. (cherry picked from commit 17c12bde5c6f314311e7524842fd1ddc254009b4)
2024-07-25Merge pull request #3843 from vyos/mergify/bp/sagitta/pr-3841Christian Breunig
T6599: ipsec: support disabling rekey of CHILD_SA, converge and fix defaults (backport #3841)
2024-07-25system_option: T5552: Apply IPv4 and IPv6 options after reapplying sysctls ↵mergify/bp/sagitta/pr-3853Nataliia Solomko
by TuneD (cherry picked from commit 7b82e4005724683c6311fab22358746f2cca4c1b)
2024-07-25Merge pull request #3855 from vyos/mergify/bp/sagitta/pr-3832Christian Breunig
T6594: Add missed pppd_compat module (backport #3832)
2024-07-25Merge pull request #3858 from vyos/mergify/bp/sagitta/pr-3838Christian Breunig
smoketest: T6600: ospf: enable MPLS LDP on dummy interfaces (backport #3838)
2024-07-25Merge pull request #3866 from vyos/mergify/bp/sagitta/pr-3861Christian Breunig
op_mode: T6593: Release DHCP interface does not work (backport #3861)
2024-07-25Merge pull request #3869 from vyos/mergify/bp/sagitta/pr-3856Christian Breunig
vrf: T6602: verify supplied VRF name on all interface types (backport #3856)
2024-07-24vrf: T6602: verify supplied VRF name on all interface typesmergify/bp/sagitta/pr-3856Christian Breunig
Only some (e.g. ethernet or wireguard) interfaces validate if the supplied VRF actually exists. If this is not validated, one can pass an invalid VRF to the system which generates an OSError exception. To reproduce set interfaces vxlan vxlan1 vni 1000 set interfaces vxlan vxlan1 remote 1.2.3.4 set interfaces vxlan vxlan1 vrf smoketest results in OSError: [Errno 255] failed to run command: ip link set dev vxlan1 master smoketest_mgmt This commit adds the missing verify_vrf() call to the missing interface types and an appropriate smoketest for all interfaces supporting VRF assignment. (cherry picked from commit dd0ebffa33728e452ac6e11737c2283f0e390359)
2024-07-24Merge pull request #3845 from vyos/mergify/bp/sagitta/pr-3833Christian Breunig
wireless: T6597: improve hostapd startup and corresponding smoketests (backport #3833)
2024-07-24op_mode: T6593: Release DHCP interface does not workmergify/bp/sagitta/pr-3861Nataliia Solomko
(cherry picked from commit 92461c35c7ef131940c885aca894a2d8b3c89592)
2024-07-24smoketest: T6600: ospf: enable MPLS LDP on dummy interfacesmergify/bp/sagitta/pr-3838Christian Breunig
(cherry picked from commit 71926f64385d7ab66431c60afa1fc8554ad7e2dc)
2024-07-23wireless: T6597: improve hostapd startup and corresponding smoketestsmergify/bp/sagitta/pr-3833Christian Breunig
This was found during smoketesting as thoase started to repeadingly fail in the last weeks File "/usr/libexec/vyos/tests/smoke/cli/test_interfaces_wireless.py", line 534, in test_wireless_security_station_address self.assertTrue(process_named_running('hostapd')) AssertionError: None is not true Digging into this revealed that this is NOT related to the smoketest coding but to hostapd/systemd instead. With a configured WIFI interface and calling: "sudo systemctl reload-or-restart hostapd@wlan1" multiple times in a short period caused systemd to report: "Jul 18 16:15:32 systemd[1]: hostapd@wlan1.service: Deactivated successfully." According to the internal systemd logic used in our version this is explained by: /* If there's a stop job queued before we enter the DEAD state, we shouldn't act on Restart=, in order to not * undo what has already been enqueued. */ if (unit_stop_pending(UNIT(s))) allow_restart = false; if (s->result == SERVICE_SUCCESS) s->result = f; if (s->result == SERVICE_SUCCESS) { unit_log_success(UNIT(s)); end_state = SERVICE_DEAD;` Where unit_log_success() generates the log message in question. Improve the restart login in the wireless interface script and an upgrade to hostapd solved the issue. (cherry picked from commit a67f49d99eda00998c425f9a663e138dbd0f7755)
2024-07-23smoketest: T6406: use check_kmod() helper over native call()Christian Breunig
(cherry picked from commit 8bf6687b5276589e64988c3c54dbf61a628ee2a0)
2024-07-23smoketest: T6597: add "commit" debug informationChristian Breunig
(cherry picked from commit f6485f7df8713298d81ec0d45c548417db111523)
2024-07-23utils: T5195: fix timeout commentChristian Breunig
(cherry picked from commit 11b273108d78ab1588be3c077f40b2ac876369a4)
2024-07-23SSTP-server: add missed pppd_compat modulemergify/bp/sagitta/pr-3832Viacheslav Hletenko
(cherry picked from commit 8c8054ad5410e8aedf6ab7a0702b317872d4fd41)
2024-07-23PPTP-server: add missed pppd_compat moduleViacheslav Hletenko
(cherry picked from commit 440a3e6b89748bfd861f580fc8c4f41b58c6cec2)
2024-07-23L2TP-server: add missed pppd_compat moduleViacheslav Hletenko
(cherry picked from commit ef50cd9954a2d6eb2a041c26a0bb8ea0758b1f17)
2024-07-23IPoE-server: add missed pppd_compat moduleViacheslav Hletenko
(cherry picked from commit b92bc209cc1d6ed54a5fa052e0c27c54488ae955)
2024-07-23Merge pull request #3847 from vyos/mergify/bp/sagitta/pr-3524Christian Breunig
wireless: T6320: Add 802.11ax at 6GHz to VyOS (backport #3524)
2024-07-23wireless: T6320: add 802.11ax at 6GHzmergify/bp/sagitta/pr-3524Alain Lamar
Authored-By: Alain Lamar <alain_lamar@yahoo.de> (cherry picked from commit d5e988ba2d0fa0189feff22374c9b46eb49e2e79)
2024-07-23openvpn: T3834: verify() is not allowed to change anything on the system (#3851)mergify[bot]
Commit e3c71af1466 ("remove secrets file if the tunnel is deleted and fix opmode commands") added a code path into verify() which removed files on the system if TOTP was not defined. This commit moves the code path to the appropriate generate() function. (cherry picked from commit 40c835992db9217f48e54dbbf15a7fbf1dcba482) Co-authored-by: Christian Breunig <christian@breunig.cc>
2024-07-23wireless: T6425: Fixing VHT beamforming for 802.11ac (backport #3576) (#3849)mergify[bot]
* wireless: T6425: Fix broken VHT beamforming (cherry picked from commit f75f0f9c94472f46e056808c3ac6aba809c090f0) * wireless: T6425: Add smoketests for VHT beamforming (cherry picked from commit 578fbe0eb436697132e5a738fec5a4ac61ced8da) * wireless: T6425: adjust to latest country-code changes Commit 9e22ab6b2a ("wireless: T6318: move country-code to a system wide configuration") removed the per wifi interface setting for a country-code. This commit adjust the smoketests to the new design. (cherry picked from commit 312273c9569d973c510d871adb941709804d8868) --------- Co-authored-by: Alain Lamar <alain_lamar@yahoo.de> Co-authored-by: Christian Breunig <christian@breunig.cc>
2024-07-22Merge pull request #3837 from vyos/mergify/bp/sagitta/pr-3834Christian Breunig
interfaces: T6592: moving an interface between VRF instances failed (backport #3834)
2024-07-22T6599: ipsec: fix incorect default behavior for dead-peer-detectionmergify/bp/sagitta/pr-3841Lucas Christian
(cherry picked from commit 23a3419d512139650cfe3dc76759b370b0c0c3d6)