2.4/2.6 local TCP connect oddity



Hi,

I've run into a problem where a process trying to connect to a local
port within the local port range eventually ends up connected to itself,
with source port = dest port.

similar behavior can be gotten by running netcat as follows:
nc -p 1025 localhost 1025

I'm not really sure if that's a bug, but the original case was at least
unexpected.

Regards,
Tal Kelrich

--
Tal Kelrich
PGP fingerprint: 3EDF FCC5 60BB 4729 AB2F CAE6 FEC1 9AAC 12B9 AA69
Key Available at: http://www.hasturkun.com/pub.txt
----
Administration: An ingenious abstraction in politics, designed to
receive the kicks and cuffs due to the premier or president.
-- Ambrose Bierce
----

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: 2.4/2.6 local TCP connect oddity
    ... port within the local port range eventually ends up connected to ... eventually succeeds. ... connection, but try to imagine with 2 machines, then ...
    (Linux-Kernel)
  • Re: 2.4/2.6 local TCP connect oddity
    ... port within the local port range eventually ends up connected to ... in TCP you can connect two clients ... used to either temporarily block SYNs with iptables, ...
    (Linux-Kernel)
  • Re: 2.4/2.6 local TCP connect oddity
    ... port within the local port range eventually ends up connected to itself, ... They just have to exchange their SYN, SYN/ACK then ACK and bingo, they're ... client from connecting to the outside by flooding it with SYN packets to ...
    (Linux-Kernel)
  • Re: Deny local socket/port binding on server.
    ... > bind to a 1024+ port and run IRC or some script to open a local SMTP ... current local port range is in ...
    (comp.security.unix)
  • Re: Deny local socket/port binding on server.
    ... > bind to a 1024+ port and run IRC or some script to open a local SMTP ... current local port range is in ...
    (comp.os.linux.security)