How can I block access to public server IP for OpenSSH in Debian?

Posted by VanDerSpar on Server Fault See other posts from Server Fault or by VanDerSpar
Published on 2012-10-11T07:46:09Z Indexed on 2012/10/11 9:40 UTC
Read the original article Hit count: 105

Filed under:
|
|

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.

© Server Fault or respective owner

Related posts about linux

Related posts about ssh