Remove expose_ssh and support SSH listening on nebula and PVE

No more wireguard SSH for me
This commit is contained in:
Jake Howard 2021-03-24 22:19:29 +00:00
parent e80bcb5a8b
commit e67e4565d3
Signed by: jake
GPG key ID: 57AFB45680EDD477
8 changed files with 1 additions and 15 deletions

View file

@ -1 +0,0 @@
expose_ssh: true

View file

@ -1,3 +1 @@
expose_ssh: true
protected_ip: "{{ pve_hosts.forrest.internal_ip }}"

View file

@ -1 +0,0 @@
expose_ssh: true

View file

@ -1 +0,0 @@
expose_ssh: true

View file

@ -1,5 +1,3 @@
expose_ssh: true
private_ip: "{{ pve_hosts.pve_docker.ip }}"
protected_ip: "{{ pve_hosts.pve_docker.internal_ip }}"

View file

@ -1,5 +1,3 @@
expose_ssh: true
private_ip: "{{ pve_hosts.pve.ip }}"
protected_ip: "{{ pve_hosts.pve.internal_ip }}"

View file

@ -1 +0,0 @@
expose_ssh: false

View file

@ -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