Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Mar 2015 16:01:03 +0300
From:      Slawa Olhovchenkov <slw@zxy.spb.ru>
To:        Mateusz Guzik <mjguzik@gmail.com>
Cc:        svn-src-head@freebsd.org, Baptiste Daroussin <bapt@FreeBSD.org>, Gleb Smirnoff <glebius@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org
Subject:   Re: svn commit: r279603 - in head: bin/rcp usr.bin/rlogin usr.bin/rsh
Message-ID:  <20150305130103.GU48476@zxy.spb.ru>
In-Reply-To: <20150305125331.GB11164@dft-labs.eu>
References:  <20150305122103.GA90978@zxy.spb.ru> <20150305122359.GM17947@FreeBSD.org> <20150305123016.GO48476@zxy.spb.ru> <20150305123053.GN17947@FreeBSD.org> <20150305123349.GP48476@zxy.spb.ru> <20150305123548.GO17947@FreeBSD.org> <20150305124037.GR48476@zxy.spb.ru> <20150305124933.GA11164@dft-labs.eu> <20150305125049.GT48476@zxy.spb.ru> <20150305125331.GB11164@dft-labs.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 05, 2015 at 01:53:31PM +0100, Mateusz Guzik wrote:

> On Thu, Mar 05, 2015 at 03:50:49PM +0300, Slawa Olhovchenkov wrote:
> > On Thu, Mar 05, 2015 at 01:49:33PM +0100, Mateusz Guzik wrote:
> > 
> > > On Thu, Mar 05, 2015 at 03:40:37PM +0300, Slawa Olhovchenkov wrote:
> > > > On Thu, Mar 05, 2015 at 03:35:48PM +0300, Gleb Smirnoff wrote:
> > > > > nc(1), which is a pure socket testing tool. For telnet(1) this
> > > > > capability is a side effect.
> > > > 
> > > > You don't try this in practice.
> > > > % nc zxy.spb.ru 81
> > > > %
> > > > % telnet zxy.spb.ru 81
> > > > Trying 195.70.199.98...
> > > > telnet: connect to address 195.70.199.98: Connection refused
> > > > telnet: Unable to connect to remote host
> > > > 
> > > > nc is not usable. 
> > > > 
> > > 
> > > # nc -v localhost 81 
> > > nc: connect to localhost port 81 (tcp) failed: Connection refused
> > 
> > Try for remote host.
> 
> # nc -v zxy.spb.ru 81
> nc: connect to zxy.spb.ru port 81 (tcp) failed: Connection refused
> 
> How exactly does it fail for you?

Hmm. From office lan, with cisco nat. 10.1

15:59:00.175388 IP 10.200.0.19.11393 > 195.70.199.98.81: Flags [S], seq 218161015, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 391119939 ecr 0], length 0
15:59:00.178748 IP 195.70.199.98.81 > 10.200.0.19.11393: Flags [R.], seq 0, ack 218161016, win 0, length 0

this is nc zxy.spb.ru 81

15:59:42.800700 IP 10.200.0.19.45815 > 195.70.199.98.81: Flags [S], seq 2445745499, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 391162565 ecr 0], length 0
15:59:42.803927 IP 195.70.199.98.81 > 10.200.0.19.45815: Flags [R.], seq 0, ack 2445745500, win 0, length 0

this is telnet zxy.spb.ru 81

FreeBSD slw.office.acropolis.ru 10.1-RELEASE-p5 FreeBSD 10.1-RELEASE-p5 #0: Tue Jan 27 08:55:07 UTC 2015     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
run as user (not root).
No any firewall.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150305130103.GU48476>