Skip to content

Commit

Permalink
fix: socket template
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwillsher committed Jun 13, 2024
1 parent 8f483a4 commit 9818765
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions templates/sshd.socket.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ Accept=yes
Accept=no
{% endif %}
{% if __sshd_socket_freebind is not none %}
FreeBind={{ __sshd_socket_freebind }}
FreeBind={{ 'yes' if __sshd_socket_freebind else 'no' }}
{% endif %}

[Install]
WantedBy=sockets.target
{% if __ssh_socket_required_by is not none %}
RequiredBy=ssh.service
RequiredBy={{ __ssh_socket_required_by }}
{% endif %}
3 changes: 2 additions & 1 deletion vars/Ubuntu_24.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ __sshd_environment_variable: $SSHD_OPTS
__sshd_service_after: auditd.service
__sshd_service_alias: sshd

__sshd_socket_freebind: 'yes'
__sshd_socket_accept: false
__sshd_socket_freebind: true
__sshd_socket_required_by: ssh.service

0 comments on commit 9818765

Please sign in to comment.