linux-system-roles / vpn

Role for managing VPN/IPSec
https://linux-system-roles.github.io/vpn/
MIT License
8 stars 14 forks source link

Various improvements required to connect to a managed remote host #65

Closed badnetmask closed 2 years ago

badnetmask commented 2 years ago

Use case

Ansible host is a regular application server running RHEL 8, and needs to establish an IPSec connection to a NetApp storage. The storage is managed by various other means (either Ansible or other proprietary tools), but requires very specific parameters in order to establish a connection.

This pull request implements the necessary methods to pass all the required parameters to the tunnel configuration.

Features that have been added

Options that have been added

richm commented 2 years ago

[citest commit:7966f6e9f5925d73bcf634fa4e478698865a321b]

richm commented 2 years ago

ok - https://github.com/linux-system-roles/vpn/pull/66 was merged - please rebase

richm commented 2 years ago

Can you do a rebase without a merge commit?

richm commented 2 years ago

I created another PR

https://github.com/linux-system-roles/vpn/pull/68

badnetmask commented 2 years ago

Sorry, when I saw your rebase note I had already merged. What should I do now?

richm commented 2 years ago

Sorry, when I saw your rebase note I had already merged. What should I do now?

one of these

richm commented 2 years ago

[citest]

richm commented 2 years ago

If we accept this PR, we're going to need a follow up PR to add testing for the new parameters, otherwise, QE is going to be very unhappy, and/or we won't be able to put this functionality into the downstream product. @ueno can you help write some tests for leftid/rightid, ike_enc_alg, esp_enc_alg, and type?

richm commented 2 years ago

[citest] At least tests_host_to_host_psk_custom.yml should pass

richm commented 2 years ago

passed! https://dl.fedoraproject.org/pub/alt/linuxsystemroles/logs/lsr-citool_vpn-65-4432c1e_RHEL-7.9-20200917.0_20220818-134510/artifacts/tests_host_to_host_psk_custom-PASSED.log

richm commented 2 years ago

[citest]