I want to disable all ssh connection from both IPv4 and IPv6 except certain IPs.
I can set /etc/hosts.deny to deny all IPv4 ssh connection:
sshd: ALL
How to apply to IPv6?
I tried below, and fail:
sshd: [*]
and
sshd: [ALL]
My sshd server version: PKIX-SSH 12.1, OpenSSH_8.0p1, OpenSSL 1.0.2g-fips 1 Mar 2016
And PKIX is configured with --with-tcp-wrappers