Re: iptables & tcp wrappers

From: Jan Gerrit Göbel (Jan.Goebel_at_post.rwth-aachen.de)
Date: 09/29/04

  • Next message: harry: "Re: iptables & tcp wrappers"
    Date: Wed, 29 Sep 2004 17:36:39 +0200
    To: focus-linux@securityfocus.com
    
    

    > My goal is to block all incoming ssh attempts except IP#.
    > This is where I got into hosts.allow/deny as mentioned below.

    why don´t you edit the /etc/ssh/sshd_config and add the lines "AllowUsers
    username@someIP"

    example:
    AllowUsers bla@212.132.3.147, laberl@212.132.3.*

    that way you can restrict ssh logins to certain users from certain IPs or IP
    ranges...

    regards
    jan


  • Next message: harry: "Re: iptables & tcp wrappers"