Skip to content

Commit

Permalink
Update topology default to subnet to stop the warning on openvpn startup
Browse files Browse the repository at this point in the history
  • Loading branch information
kyl191 committed Dec 29, 2024
1 parent 183c7ed commit 61a789e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ In part because of [Requiring OpenVPN 2.5](#requiring-openvpn-25), some variable
* `openvpn_ldap.verify_client_cert` now defaults to `none`, was previously unset so the default `client-cert-not-required` would be set instead. [`client-cert-not-required` is deprecated](https://community.openvpn.net/openvpn/wiki/DeprecatedOptions#Option:--client-cert-not-requiredStatus:RemovedinOpenVPNv2.5), `verify_client_cert none` is functionally identical
* There is no functional change in behaviour

* `openvpn_topology` defaults to `subnet` per the [OpenVPN recommendation to opt-in early](https://community.openvpn.net/openvpn/wiki/DeprecatedOptions#Changedefault--topologynet30tosubnetStatus:Pending):
> OpenVPN recommends using topology subnet now, so that when the default is changed, you will not be affected.
* Restore the old behaviour with `openvpn_topology: net30`

Variables are prefixed with `openvpn_` to make sure they are isolated to this role. (There are [limited exceptions](.ansible-lint.yml)) You will need to update any variable you have overriden.

Configurable variable renames include:
Expand All @@ -55,6 +59,7 @@ There are some internal variables that have been renamed to have a `__` prefix t

* `openvpn_cipher` will be unset and fallback to using the OpenVPN defaults
* `openvpn_tls_auth_required` will be removed completely
* `openvpn_topology` will default to `subnet`

## NAT IPv6 Support by default

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ These options change how OpenVPN itself works. Refer to the respective OpenVPN R
| openvpn_service_group | string | | nogroup | Set the openvpn service group. |
| openvpn_service_user | string | | nobody | Set the openvpn service user. |
| openvpn_status_version | int | 1, 2, 3 | 1 | Define the formatting of the openvpn-status.log file where are listed current client connection |
| openvpn_topology | string | | `unset` | the "topology" keyword will be set in the server config with the specified value. |
| openvpn_topology | string | | `subnet` | the "topology" keyword will be set in the server config with the specified value. |

### OpenVPN custom client config (server pushed)

Expand Down
1 change: 1 addition & 0 deletions defaults/main/openvpn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ openvpn_service_user: nobody
openvpn_status_version: 1
openvpn_config_file: "openvpn_{{ openvpn_proto }}_{{ openvpn_port }}"
openvpn_service_name: "openvpn-server@{{ openvpn_config_file }}.service"
openvpn_topology: subnet

# Client config - settings the server will push
openvpn_client_config: false
Expand Down

0 comments on commit 61a789e

Please sign in to comment.