summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2024-09-15op-mode: T6682: Fix for show vpn ike sa peer always shows all SAsNataliia Solomko
(cherry picked from commit 8c6a57124af37ba410dd01797e9242b3a79f171a)
2024-09-13Merge pull request #4060 from vyos/mergify/bp/sagitta/pr-4047Christian Breunig
policy: T6676: Invalid route-map caused bgpd to crash (backport #4047)
2024-09-13Merge pull request #4065 from natali-rs1985/T6626-sagittaChristian Breunig
op-mode: T6626: Fix for show dhcpv6 server leases
2024-09-13container: T6701: add support to disable container network DNS support (#4052)mergify[bot]
Add ability to set the container network with a disable-dns setting to disable the DNS plugin that is on be default. set container network <network> no-name-server (cherry picked from commit 1d5625d572cc25a9d53247b7c41177f17845b052) Co-authored-by: Dave Vogel <dave.vogel@fullpower.com>
2024-09-13op-mode: T6626: Fix for show dhcpv6 server leasesNataliia Solomko
2024-09-12policy: T6676: Invalid route-map caused bgpd to crashNataliia Solomko
(cherry picked from commit 595f35bbdda732883ce0b8b0721061bb3a40a715)
2024-09-10Merge pull request #4037 from vyos/mergify/bp/sagitta/pr-3920Daniil Baturin
OPENVPN: T6555: add server-bridge options in mode server (backport #3920)
2024-09-09container: T6702: re-add missing UNIX API socket (#4039)mergify[bot]
During podman upgrade and a build from the original source the UNIX socket definition for systemd got lost in translation. This commit re-adds the UNIX socket which is started on boot to interact with Podman. Example: curl --unix-socket /run/podman/podman.sock -H 'content-type: application/json' \ -sf http://localhost/containers/json (cherry picked from commit f67e217f2716937115a3bdf6d316b172bbec75e5) Co-authored-by: Christian Breunig <christian@breunig.cc>
2024-09-09OPENVPN: T6555: fix name to bridgefett0
(cherry picked from commit 0162a27952d2166583a9e6aee2cd77b9c693062b)
2024-09-09OPENVPN: T6555: fix name to bridgefett0
(cherry picked from commit d5ae708581d453e2205ad4cf8576503f42e262b6)
2024-09-09OPENVPN: T6555: add server-bridge options in mode serverfett0
(cherry picked from commit 4acad3eb8d9be173b76fecafc32b0c70eae9b192)
2024-08-26configd: T6671: track scripts proposed and scripts calledJohn Estabrook
(cherry picked from commit d4b6bed84e5ac4214f2eae0e6ee7c1f4e0852222)
2024-08-24Merge pull request #4004 from vyos/mergify/bp/sagitta/pr-4000Christian Breunig
T6672: Fix system option ssh-client source-interface (backport #4000)
2024-08-24Merge pull request #4008 from vyos/mergify/bp/sagitta/pr-4003Christian Breunig
T6561: Add vrf aware for show ntp (backport #4003)
2024-08-23T6672: Fix system option ssh-client source-interfaceViacheslav Hletenko
Fix for system option ssh-client source-interface For the `verify_source_interface` the key `ifname` if required (cherry picked from commit f453b33a6056de8fc5145ca9e680361fbce68348)
2024-08-23sysctl: T3204: restore sysctl setttings overwritten by tunedChristian Breunig
(cherry picked from commit 8500e8658ff10f52739143fd7814cf60c9195f16)
2024-08-22T6561: Add vrf aware for show ntpViacheslav Hletenko
(cherry picked from commit 5f780ebb7f1799eb9a93218bb83561db509c7e56)
2024-08-20op_mode: T3961: Generate PKI expect 2 character country codeNataliia Solomko
(cherry picked from commit 71d6d0fe31db13f4ddf5c75209b9bba88a1e0a32)
2024-08-20multicast: T6619: remove unused importsChristian Breunig
(cherry picked from commit 9979afa15650bd609399030da1751488baaac70b)
2024-08-19Merge pull request #3973 from vyos/mergify/bp/sagitta/pr-3961Christian Breunig
configverify: T6642: verify_interface_exists requires config_dict arg (backport #3961)
2024-08-13Merge pull request #3957 from vyos/mergify/bp/sagitta/pr-3916Christian Breunig
T6619: Remove the remaining uses of per-protocol FRR configs (backport #3916)
2024-08-13configverify: T6642: verify_interface_exists requires config_dict argJohn Estabrook
The function verify_interface_exists requires a reference to the ambient config_dict rather than creating an instance. As access is required to the 'interfaces' path, provide as attribute of class ConfigDict, so as not to confuse path searches of script-specific config_dict instances. (cherry picked from commit 5f23b7275564cfaa7c178d320868b5f5e86ae606)
2024-08-09qos: T6638: require interface state existence in verify conditionalJohn Estabrook
(cherry picked from commit ed63c9d1896a218715e13e1799fc059f4561f75e)
2024-08-08T6619: Remove the remaining uses of per-protocol FRR configs (#3916)Roman Khramshin
(cherry picked from commit f2256ad338fc3fbaa9a5de2c0615603cd23e0f94)
2024-08-03Merge pull request #3928 from vyos/mergify/bp/sagitta/pr-3923Daniil Baturin
console: T3334: remove unused directories imported from vyos.defaults (backport #3923)
2024-08-02T6486: T6379: Rewrite generate openvpn client-config (#3926)mergify[bot]
This command helps to generate users `.ovpn` files Rewrite `generate openvpn client-config` to use Config() It needs to get the default values as `ConfigTreeQuery` is not supporting default values. Fixed "ignores configured protocol type" if TCP is used Fixed lzo, was used even if lzo not configured Fixed encryption is not parse the dict (cherry picked from commit fe50f1a9292b34e168b35453f2cfc2aee2ca4843) Co-authored-by: Viacheslav Hletenko <v.gletenko@vyos.io>
2024-08-02Merge pull request #3921 from vyos/mergify/bp/sagitta/pr-3903Christian Breunig
T6617: T6618: vpn ipsec remote-access: fix profile generators (backport #3903)
2024-08-02Merge pull request #3905 from vyos/mergify/bp/sagitta/pr-3883Christian Breunig
vrf: T6603: conntrack ct_iface_map must only contain one entry for iifname/oifname (backport #3883)
2024-08-01console: T3334: remove unused directories imported from vyos.defaultsChristian Breunig
(cherry picked from commit 4055090a8d4fd64288eab7ae41aa9440f5de4ece)
2024-08-01T6617: T6618: vpn ipsec remote-access: fix profile generatorsLucas Christian
(cherry picked from commit e97d86e619e134f4dfda06efb7df4a3296d17b95)
2024-08-01Merge pull request #3918 from vyos/mergify/bp/sagitta/pr-3915Christian Breunig
ipsec: T6148: Removed unused imports (backport #3915)
2024-07-31Merge pull request #3907 from vyos/mergify/bp/sagitta/pr-3715fett0
T6313: Add "NAT" to "generate" command for rule resequence (backport #3715)
2024-07-31ipsec: T6148: Removed unused imports (#3915)aapostoliuk
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-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 resequencekhramshinr
(cherry picked from commit 142545b0535d0a994182389c99b7bcd6d7c37c24)
2024-07-30vrf: T6603: improve code runtime when retrieving info from nftables vrf zoneChristian 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 #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-26vxlan: T6505: Support VXLAN VLAN-VNI range mapping in CLI (#3756)Nataliia S
(cherry picked from commit 115e99630a317cab62c6f99e0461f6ce2c1edaf3)
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 ↵Nataliia Solomko
by TuneD (cherry picked from commit 7b82e4005724683c6311fab22358746f2cca4c1b)
2024-07-24vrf: T6602: verify supplied VRF name on all interface typesChristian 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-23wireless: T6597: improve hostapd startup and corresponding smoketestsChristian 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-23wireless: T6320: add 802.11ax at 6GHzAlain 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-22T6599: ipsec: fix incorect default behavior for dead-peer-detectionLucas Christian
(cherry picked from commit 23a3419d512139650cfe3dc76759b370b0c0c3d6)
2024-07-21vrf: T6592: remove unused import get_interface_configChristian Breunig
Remove unused import (left over) from commit 36f3791e0 ("utils: migrate to new get_vrf_tableid() helper") (cherry picked from commit b551f542c5c906c901e3be37ad3fd68c8248473d)
2024-07-20utils: migrate to new get_vrf_tableid() helperChristian Breunig
Commit 452068ce7 ("interfaces: T6592: moving an interface between VRF instances failed") introduced a new helper to retrieve the VRF table ID from the Kernel. This commit migrates the old code path where the individual fields got queried to the new helper vyos.utils.network.get_vrf_tableid(). (cherry picked from commit 36f3791e0c15267483d59a3bb74465811d08df88)