feat: allow sshd to bind on multiple networks

This commit is contained in:
Clément Désiles
2026-04-11 22:54:35 +02:00
parent ac40c23d06
commit f9397ad38c
2 changed files with 7 additions and 19 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
---
ssh_port: 22
ssh_allowed_network: "192.168.1.0/24"
ssh_allowed_vpn_network: "192.168.27.0/27"
ssh_allowed_networks:
- { src: "192.168.1.0/24", comment: "SSH from LAN" }
- { src: "192.168.27.0/27", comment: "SSH from VPN" }
ssh_users: "jokester" # space separated if many
ssh_config_dir: "/etc/ssh"
sshd_config: "{{ ssh_config_dir }}/sshd_config"