How can I block access to public server IP for OpenSSH in Debian?
- by VanDerSpar
I got a Debian server with a public and a private IP in a DMZ.
I need to be able to connect to it through SSH on our private side, and then block all access to the public address. Both /etc/hosts.deny and sshd_config seems to only let one block incoming IP addresses. What I really want is to disable SSH connections for the public IP.
I've been trying iptables, but I haven't had luck with that neither.
Any help is appreciated.