Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jan 2002 10:48:39 +0100
From:      "Lajos Zaccomer (ETH)" <Lajos.Zaccomer@eth.ericsson.se>
To:        "'freebsd-questions@FreeBSD.org'" <freebsd-questions@FreeBSD.org>
Subject:   Telnet option negotiation
Message-ID:  <F005CD411D18D3119C8F00508B08748005CC79DD@ehubunt100.eth.ericsson.se>

next in thread | raw e-mail | index | archive | help
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1A005.4EB85B30
Content-Type: text/plain;
	charset="iso-8859-2"

Hi FreeBSD experts,

I wrote a VERY simple telnet program that actually works as a Network Virtual Terminal. It is achieved by sending "WON'T XXX" to all "DO XXX" server requests. It should work according to RFC-854, page 4: "Since the NVT is what is left when no options are enabled, the DON'T and WON'T responses are guaranteed to leave the connection in a state which both ends can handle." It works with Unix, Linux, Windows, Cisco, but not with my FreeBSD: after a while it stops sending anything. This is the attempt trace:

Internet Protocol, Src Addr: 10.1.1.223 (10.1.1.223), Dst Addr: 10.1.1.222 (10.1.1.222)
Telnet
    Command: Do Authentication Option


Internet Protocol, Src Addr: 10.1.1.222 (10.1.1.222), Dst Addr: 10.1.1.223 (10.1.1.223)
Telnet
    Command: Do Echo
    Command: Won't Authentication Option


Internet Protocol, Src Addr: 10.1.1.223 (10.1.1.223), Dst Addr: 10.1.1.222 (10.1.1.222)
Telnet
    Command: Will Echo
    Command: Will Encryption Option
    Command: Do Terminal Type
    Command: Do Terminal Speed
    Command: Do X Display Location
    Command: Do New Environment Option
    Command: Do Environment Option


Internet Protocol, Src Addr: 10.1.1.222 (10.1.1.222), Dst Addr: 10.1.1.223 (10.1.1.223)
Telnet
    Command: Won't Terminal Type
    Command: Won't Terminal Speed
    Command: Won't X Display Location
    Command: Won't New Environment Option
    Command: Won't Environment Option

Can you tell me why it does not work, and what can I do to make it work?

Thank you for all hints!

Regards,

Zacco

 


------_=_NextPart_001_01C1A005.4EB85B30
Content-Type: text/html;
	charset="iso-8859-2"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2">
<TITLE>Blank</TITLE>

<STYLE>BODY {
	MARGIN-TOP: 25px; FONT-SIZE: 10pt; MARGIN-LEFT: 25px; COLOR: #000000; FONT-FAMILY: Arial, Helvetica
}
P.msoNormal {
	MARGIN-TOP: 0px; FONT-SIZE: 10pt; MARGIN-LEFT: 0px; COLOR: #ffffcc; FONT-FAMILY: Helvetica, "Times New Roman"
}
LI.msoNormal {
	MARGIN-TOP: 0px; FONT-SIZE: 10pt; MARGIN-LEFT: 0px; COLOR: #ffffcc; FONT-FAMILY: Helvetica, "Times New Roman"
}
</STYLE>

<META content="MSHTML 5.50.4522.1801" name=GENERATOR></HEAD>
<BODY background="">
<P><SPAN class=781022809-18012002>Hi FreeBSD experts,</SPAN></P>
<P><SPAN class=781022809-18012002>I wrote a VERY simple telnet program that 
actually works as a Network Virtual Terminal. It is achieved by sending "WON'T 
XXX" to all "DO XXX" server requests. It should work according to RFC-854, page 
4: "Since the NVT is what is left when no options are enabled, the DON'T and 
WON'T responses are guaranteed to leave the connection in a state which both 
ends can handle." It works with Unix, Linux, Windows, Cisco, but not with my 
FreeBSD: after a while it stops sending anything. This is the attempt 
trace:</SPAN></P>
<P><SPAN class=781022809-18012002>Internet Protocol, Src Addr: 10.1.1.223 
(10.1.1.223), Dst Addr: 10.1.1.222 (10.1.1.222)<BR>Telnet<BR>&nbsp;&nbsp;&nbsp; 
Command: Do Authentication Option</SPAN></P><SPAN class=781022809-18012002>
<P><BR>Internet Protocol, Src Addr: 10.1.1.222 (10.1.1.222), Dst Addr: 
10.1.1.223 (10.1.1.223)<BR>Telnet<BR>&nbsp;&nbsp;&nbsp; Command: Do 
Echo<BR>&nbsp;&nbsp;&nbsp; Command: Won't Authentication Option</P>
<P><BR>Internet Protocol, Src Addr: 10.1.1.223 (10.1.1.223), Dst Addr: 
10.1.1.222 (10.1.1.222)<BR>Telnet<BR>&nbsp;&nbsp;&nbsp; Command: Will 
Echo<BR>&nbsp;&nbsp;&nbsp; Command: Will Encryption Option<BR>&nbsp;&nbsp;&nbsp; 
Command: Do Terminal Type<BR>&nbsp;&nbsp;&nbsp; Command: Do Terminal 
Speed<BR>&nbsp;&nbsp;&nbsp; Command: Do X Display Location<BR>&nbsp;&nbsp;&nbsp; 
Command: Do New Environment Option<BR>&nbsp;&nbsp;&nbsp; Command: Do Environment 
Option</P>
<P><BR>Internet Protocol, Src Addr: 10.1.1.222 (10.1.1.222), Dst Addr: 
10.1.1.223 (10.1.1.223)<BR>Telnet<BR>&nbsp;&nbsp;&nbsp; Command: Won't Terminal 
Type<BR>&nbsp;&nbsp;&nbsp; Command: Won't Terminal Speed<BR>&nbsp;&nbsp;&nbsp; 
Command: Won't X Display Location<BR>&nbsp;&nbsp;&nbsp; Command: Won't New 
Environment Option<BR>&nbsp;&nbsp;&nbsp; Command: Won't Environment Option</P>
<P><SPAN class=781022809-18012002>Can you tell me why it does not work, and what 
can I do to make it work?</SPAN></P>
<P><SPAN class=781022809-18012002>Thank you for all hints!</SPAN></P>
<P><SPAN class=781022809-18012002>Regards,</SPAN></P>
<P><SPAN class=781022809-18012002>Zacco</SPAN></P>
<P><SPAN class=781022809-18012002></SPAN></SPAN>&nbsp;</P></BODY></HTML>

------_=_NextPart_001_01C1A005.4EB85B30--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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