update..
This commit is contained in:
@ -67,7 +67,7 @@
|
||||
# This can be either the interface name or an IP address/netmask;
|
||||
# interface names are normally preferred
|
||||
; interfaces = 127.0.0.0/8 eth0
|
||||
interfaces = {{ ansible_default_ipv4.address }}/24 127.0.0.1/8
|
||||
interfaces = {{ samba_server_ip }}/{{ samba_server_cidr_prefix }} 127.0.0.1/8
|
||||
|
||||
# Option 'hosts deny' and 'hosts allow' added to debian's default smb.conf
|
||||
hosts deny = 0.0.0.0/0
|
||||
|
@ -466,4 +466,36 @@ Match group sftp_users
|
||||
ChrootDirectory %h
|
||||
ForceCommand internal-sftp
|
||||
|
||||
Match all
|
||||
|
||||
{% endif -%}
|
||||
|
||||
{% if (sshd_pasword_auth_user is defined) and sshd_pasword_auth_user %}
|
||||
|
||||
#-----------------------------
|
||||
# Match User for PasswordAuthentication
|
||||
#-----------------------------
|
||||
{% for item in sshd_pasword_auth_user %}
|
||||
|
||||
Match User {{ item }}
|
||||
PasswordAuthentication yes
|
||||
|
||||
Match all
|
||||
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if (sshd_pasword_auth_ip is defined) and sshd_pasword_auth_ip %}
|
||||
|
||||
#-----------------------------
|
||||
# Match IP Address for PasswordAuthentication
|
||||
#-----------------------------
|
||||
{% for item in sshd_pasword_auth_ip %}
|
||||
|
||||
Match Address {{ item }}
|
||||
PasswordAuthentication yes
|
||||
|
||||
Match all
|
||||
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user