On Mon, Jul 23, 2012 at 3:37 AM, Felix Rublack <frubi1...@gmail.com> wrote:
> Package: netcat-openbsd
> Version: 1.105-7
> Severity: normal
>
> If netcat is used to connect to a closed local port, it may connect to itself.
>
> How to reproduce:
>
> 1) Select a random port from the range which is used by clients
> # sysctl net.ipv4.ip_local_port_range
>
> 2) Start netcat in loop with this port
> # while true; do nc.openbsd -v localhost 52804 < /dev/zero; done
> nc.openbsd: connect to localhost port 52804 (tcp) failed: Connection refused
> nc.openbsd: connect to localhost port 52804 (tcp) failed: Connection refused
> [....]
> nc.openbsd: connect to localhost port 52804 (tcp) failed: Connection refused
> nc.openbsd: connect to localhost port 52804 (tcp) failed: Connection refused
> Connection to localhost 52804 port [tcp/*] succeeded!
>
> It shouldn't do this :)
>

This is interesting... I don't know why it behaves like this, and I
can reproduce it without very clear influencing factors. I'll spend
some time on it next weekend or the weekend after next.

Thanks for your catching out!

-- 
Regards,
Aron Xu


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to