I have network device that serves up a telnet/RFC2217 (virtual serial port) interface. On Linux, how do I create a virtual tty that connects to this thing? If I understand correctly, socat doesn't really support telnet and does not support RFC2217.
Please have a look at the ttynvt driver . It supports RFC2217, ioctls and tty line disciplines (tty and PPP).