Skip to content

Commit

Permalink
rename ike->ike_enc_alg and esp->esp_enc_alg
Browse files Browse the repository at this point in the history
  • Loading branch information
badnetmask committed Aug 16, 2022
1 parent 342ddda commit b042876
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -128,8 +128,8 @@ For each host key in this dictionary, the following host-specific parameters can
| shared_key_content | A pre-defined PSK. If not defined, the role will generate one using `openssl`. **IMPORTANT:** it is strongly suggested that you don't set a string in your inventory, but instead read this from a Vault. Also, the PSK will be visible while running in verbose or debug mode. | str | no | - | PSK from ipsec.secrets file |
| leftid | How the left participant (local) should be identified for authentication. | str | no | the local host FQDN (not the controller) | leftid |
| rightid | How the right participant (remote) should be identified for authentication. | str | no | the remote host FQDN | rightid |
| ike | IKE encryption/authentication algorithm to be used for the connection (phase 1 aka ISAKMP SA). | str | no | - | ike |
| esp | Specifies the algorithms that will be offered/accepted for a Child SA negotiation. | str | no | - | esp |
| ike_enc_alg | IKE encryption/authentication algorithm to be used for the connection (phase 1 aka ISAKMP SA). | str | no | - | ike |
| esp_enc_alg | Specifies the algorithms that will be offered/accepted for a Child SA negotiation. | str | no | - | esp |
| type | The type of the connection. | str | no | tunnel | type |

#### hostname
Expand Down
8 changes: 4 additions & 4 deletions templates/libreswan-host-to-host.conf.j2
Expand Up @@ -35,11 +35,11 @@ conn {{ tunnel.name ~ '-' if 'name' in tunnel and tunnel.name else '' }}{{ host
}
{% endif %}
ikev2={{ __vpn_ikev2 }}
{% if 'ike' in tunnel %}
ike={{ tunnel.ike }}
{% if 'ike_enc_alg' in tunnel %}
ike={{ tunnel.ike_enc_alg }}
{% endif %}
{% if 'esp' in tunnel %}
esp={{ tunnel.esp }}
{% if 'esp_enc_alg' in tunnel %}
esp={{ tunnel.esp_enc_alg }}
{% endif %}
{% if 'type' in tunnel %}
type={{ tunnel.type }}
Expand Down

0 comments on commit b042876

Please sign in to comment.