diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-01-15 16:36:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-15 16:36:53 +0100 |
| commit | 06eed816c29c11b1f1a8cfdd6b2116d5708a35eb (patch) | |
| tree | 992652c2e34b2838a8c961fc5f25d153e202b91a /smoketest/scripts/cli | |
| parent | 0c373c7c9cf0fff573e5acc5642f6af63c311da2 (diff) | |
| parent | 61487b13da8dc270907633a3140bd0cc2aa0926a (diff) | |
| download | vyos-1x-06eed816c29c11b1f1a8cfdd6b2116d5708a35eb.tar.gz vyos-1x-06eed816c29c11b1f1a8cfdd6b2116d5708a35eb.zip | |
Merge pull request #4923 from alexandr-san4ez/T7633-current
openvpn: T7633: Add support for `data-ciphers-fallback` in site-to-site tunnels
Diffstat (limited to 'smoketest/scripts/cli')
| -rwxr-xr-x | smoketest/scripts/cli/test_interfaces_openvpn.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_openvpn.py b/smoketest/scripts/cli/test_interfaces_openvpn.py index e646ec6fd..9286a8c0e 100755 --- a/smoketest/scripts/cli/test_interfaces_openvpn.py +++ b/smoketest/scripts/cli/test_interfaces_openvpn.py @@ -816,6 +816,30 @@ class TestInterfacesOpenVPN(VyOSUnitTestSHIM.TestCase): self.cli_delete(base_path) self.cli_commit() + def test_site2site_data_ciphers_fallback(self): + vtun_if = 'vtun2010' + path = ['interfaces', 'openvpn', vtun_if] + + # Configure a minimal site-to-site tunnel with data-ciphers-fallback + self.cli_set(path + ['mode', 'site-to-site']) + self.cli_set(path + ['encryption', 'data-ciphers-fallback', 'aes192']) + self.cli_set(path + ['local-address', '10.0.1.1']) + self.cli_set(path + ['remote-address', '10.0.1.2']) + self.cli_set(path + ['shared-secret-key', 'ovpn_test']) + + self.cli_commit() + + config_file = f'/run/openvpn/{vtun_if}.conf' + config = read_file(config_file) + + # Validate correct OpenVPN configuration rendering + self.assertIn(f'dev {vtun_if}', config) + self.assertIn('data-ciphers-fallback AES-192-CBC', config) + + # Ensure no other directives are rendered + self.assertNotIn('cipher ', config) + self.assertNotIn('data-ciphers ', config) + def test_openvpn_server_server_bridge(self): # Create OpenVPN server interface using bridge. # Validate configuration afterwards. |
