Re: ssh and hosts.allow; purpose of ssh

From: nickd@nospam.demon.co.uk
Date: 12/21/01

  • Next message: Roger: "SSH File Transfers"

    From: nickd@nospam.demon.co.uk
    Date: Fri, 21 Dec 2001 17:34:18 GMT
    
    

    Richard E. Silverman <slade@shore.net> wrote:
    >>>>>> "nickd" == nickd <nickd@nospam.demon.co.uk> writes:
    >
    > nickd> IP address faking is definitely non-trivial, so restricting
    > nickd> access based on source IP is definitely a win.
    >
    > In many common scenarios, it is *entirely* trivial. Example: you are
    > accessing the SSH server from a home cable modem connection. You are on
    > the same IP subnet / broadcast segment with everyone on your block,
    > including the script kiddie down the street. He can see all your traffic
    > using nothing more sophisticated than tcpdump.

    I know this is a bit off-topic, but I'd rather not crosspost to somewhere
    else, but in cable modem situations can he see *all* your traffic? The
    worst I'd heard of, but in the UK, is seeing arp requests.

    > He observes that you log into this particular SSH server in the evening,
    > and notes the source and destination IP addresses. During the day, when
    > your machine is quiet or turned off and will not interfere (and relevant
    > ARP cache entries, if any have timed out), he simply sets his machine to
    > use your IP address (nothing more complicated than one "ifconfig" command
    > here), and connects.

    Are cable modem, er, concentrators, usually that easy to deceive? I would
    have thought / hoped the IP addresses would be hardwired to a cable modem.

    > This will work just fine, since he's on the same subnet with you; there
    > are no routing problems.

    Fair point.

    > If he is elsewhere in the network, then he may have to subvert some number
    > of routers --

    Surely he *will* have to rather than *may* have to, and you make it sound so
    simple :) Even after compromising all these routers, he's got to convince
    all those routers that 1.1.1.2 is wherever he's connected to, whereas
    everything else in 1.1.1.0/24 goes towards whatever it usually goes to.

    I doubt you can achieve such a feat without setting off all sorts of network
    monitors, though I'd be interested to hear otherwise. Maybe I am being
    naive, I recall reading about "dark" IP space recently.

    > or merely break into *one* machine on your subnet to do exactly the same
    > as above.

    Bah, now that's not IP fakery, that's just breaking into your hosts.

    > In a network you do not control, IP addresses provide *no* real origin
    > authentication. None.

    They don't provide absolute proof ( oh to be back in the days when the
    r-services were a good idea ) but IMHO they're a good indication of where a
    packet really came from, if not a perfect one.

    > nickd> Its buying him extra security, because then the daemon is less
    > nickd> vulnerable to the kind of exploits that have affected ssh
    > nickd> recently.
    >
    > Given the ease of subverting this sort of restriction, I don't think it's
    > worth it relative to the annoyance and damage to the usefulness of the
    > system.

    Given the difficulty of subverting this sort of restriction, I still think
    its worth it :) I worry about your neighbourhood though Richard, you got a
    cable modem in Silicon Valley and some dangerous neighbours?

    > Again, in other situations (with closed networks and known account/host
    > assocations), it could be appropriate.

    -- 
    "Anyone with the naivety to run IIS is, IMHO, automatically suspect when it
     comes to doing anything technical, such as setting a clock."
    



    Relevant Pages

    • RE: disconnecting when idle problem
      ... account from home using SSH. ... I changed to a cable modem, ... The cable company (Cox) disclaims any responsibility. ... home machines, one running Win98 SE, and one running ME. ...
      (SSH)
    • Re: telnet/ssh disconnects... Possible NAT teardown?
      ... >question is the router (2 NIC cards, one to cable modem, other to LAN). ... This is a common problem with ssh connections through firewalls. ... executable in my own ~/bin/ directory) and I name it "dot". ... execute dot when leaving an ssh session alone for a while, ...
      (Fedora)
    • RE: Is SSH worth it??
      ... So If a sysadmin is on a cable modem at home, logs in as normal user w/ ssh, ... Keep in mind you can now sniff SSH ... You ssh as a normal user and then use 'su -' to switch over to root. ... you have no way of knowing who connected to a server as root. ...
      (Security-Basics)
    • Re: Need high-speed Internet via cellphone
      ... It was a life saver when my Cable modem would go out. ... I thought, there are some other restrictions, like they monitor excessive use and close many ports... ... I'd say SSH is sometimes better for me... ...
      (alt.cellular.cingular)