Remove expose_ssh
and support SSH listening on nebula and PVE
No more wireguard SSH for me
This commit is contained in:
parent
e80bcb5a8b
commit
e67e4565d3
8 changed files with 1 additions and 15 deletions
|
@ -1 +0,0 @@
|
|||
expose_ssh: true
|
|
@ -1,3 +1 @@
|
|||
expose_ssh: true
|
||||
|
||||
protected_ip: "{{ pve_hosts.forrest.internal_ip }}"
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
expose_ssh: true
|
|
@ -1 +0,0 @@
|
|||
expose_ssh: true
|
|
@ -1,5 +1,3 @@
|
|||
expose_ssh: true
|
||||
|
||||
private_ip: "{{ pve_hosts.pve_docker.ip }}"
|
||||
protected_ip: "{{ pve_hosts.pve_docker.internal_ip }}"
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
expose_ssh: true
|
||||
|
||||
private_ip: "{{ pve_hosts.pve.ip }}"
|
||||
protected_ip: "{{ pve_hosts.pve.internal_ip }}"
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
expose_ssh: false
|
|
@ -2,11 +2,7 @@
|
|||
# Change to a high/odd port if this server is exposed to the internet directly
|
||||
Port {{ ssh_port }}
|
||||
|
||||
{% if expose_ssh %}
|
||||
AllowUsers {{ user }}
|
||||
{% else %}
|
||||
AllowUsers {{ user }}@{{ wireguard.cidr }}
|
||||
{% endif %}
|
||||
AllowUsers {% if ansible_hostname in pve_hosts %}{{ user }}@{{ pve_hosts.internal_cidr }}{% endif %} {% if ansible_hostname in nebula.clients %}{{ user }}@{{ nebula.cidr }}{% endif %}
|
||||
|
||||
# Bind to all interfaces (change to specific interface if needed)
|
||||
ListenAddress 0.0.0.0
|
||||
|
|
Loading…
Reference in a new issue