Re: Block ssh login prompt for *.kr *.jp etc.

From: Sheldon T. Hall (obviously.fake_at_example.com)
Date: 10/04/04

  • Next message: Makc: "Securing HTTP traffic with Zebedee"
    Date: Mon, 04 Oct 2004 10:21:45 -0700
    
    

    On 3 Oct 2004 11:08:33 -0700, kimspiracy@yahoo.com (Kim) wrote:

    >Do any of these solutions result in my machine *completely ignoring*
    >login attempts from *.kr addresses? As I said, I do not even want them
    >to be PROMPTED for a login. My machine should be completely invisible
    >to them.
    >
    >If so, would you mind being a little more specific about what I need
    >to do? I am running OpenSSH_3.5p1 on a Red Hat 9.0 machine behind a
    >Linksys router.

    You probably want your whole machine to be invisible, not just the SSH
    port.

    1. Block as much as you can at the router. Only pass to your
    internal machines requests for services they can provide securely. On
    my network, that's only 4 ports: ssh, pop3, smtp, and http. All the
    rest stops at the router.

    2. Configure SSHD to allow only specified users (see sshd_conf).

    3. Run iptables, ipfilter, or a similar packet-level filter, and
    either (a) block everything except known sources of desirable traffic
    or (b) block all known sources of hostile traffic. Do this by IP
    address, not by host name. Host names can be spoofed, and many
    net-hostile areas have bogus or non-existend reverse DNS.

    4. Consider running SSH on a non-standard port.

    You can get lists of net-hostile IP addresses from blackholes.us and
    other sources.

    -Shel


  • Next message: Makc: "Securing HTTP traffic with Zebedee"

    Relevant Pages

    • Re: ssh gives "Permission denied, please try again"
      ... It would be possible to arrange that but it's a bit tricky and there are security implications for your network. ... tried to ssh to that but it said port 22 was blocked. ... due to my router; I therefore tried to open ssh access in the router and ...
      (uk.comp.os.linux)
    • Re: ssh to new ip...
      ... > that once I put it at the isp, I won't be able to ssh to it or anything. ... > windoze box over to it thru my router. ... DHCP has nothing to do with port ... choice is, to your FreeBSD box. ...
      (freebsd-questions)
    • Re: Firewall HELP
      ... When you say that you get the "login to the firewall"... ... would try deactivating all remote login options in the router (or at least ... changing them to another port). ... >>> Does tell me that your router is blocking port 25. ...
      (microsoft.public.windows.server.sbs)
    • Re: Security basics
      ... login password which was my last name. ... run ssh on some port other than 22. ... can detect ssh implementations since they normally self-identify. ...
      (Fedora)
    • Re: Security basics
      ... login password which was my last name. ... run ssh on some port other than 22. ... can detect ssh implementations since they normally self-identify. ...
      (Fedora)