LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-05-2018, 11:11 PM   #1
robel
Member
 
Registered: Oct 2008
Location: Norway
Distribution: Slackware
Posts: 77

Rep: Reputation: 19
compressed telnet


I need to compress telnet traffic. It’s because the link is a slow AX.25 1200 baud radio link. SSH it not an option, it's against the regulations. Anyway, compression of telnet it is.

I figured out I need to use nc (netcat) and probably named pipes (or at least one).

I guess have to use nc like this on the “server side”:

Code:
nc -lp 4001 -e <path-to-telnetd>
and

Code:
mkfifo /tmp/fifo
nc -lp 4000 < /tmp/fifo |gzip -d -c |nc localhost 4001 |gzip >/tmp/fifo
And then port 4000 would be a "gziped telnet", right?

On the client side, I did the opposite:
Code:
 nc -lp 4001 < /tmp/fifo |gzip |nc <Server IP>  4000 |gzip -d -c >/tmp/fifo
And I should be able to telnet to localhost port 4001. Well, I’m missing something. It doesn't work. Perhaps there is an easier solution?

Edit: Seems to be a buffer problem. Writing to a pipe turns on full buffering. I would probably have to write my own compression software. :-(

Last edited by robel; 04-06-2018 at 12:15 AM.
 
Old 04-06-2018, 07:20 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,036

Rep: Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344
probably this: https://linux.die.net/man/1/forward
or this: https://www.digi77.com/the-art-of-po...ding-on-linux/
look for compressed port forwarding.
 
1 members found this post helpful.
Old 04-10-2018, 04:47 AM   #3
robel
Member
 
Registered: Oct 2008
Location: Norway
Distribution: Slackware
Posts: 77

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by pan64 View Post
probably this: https://linux.die.net/man/1/forward
or this: https://www.digi77.com/the-art-of-po...ding-on-linux/
look for compressed port forwarding.
Thanks! This is looking promising.
 
  


Reply

Tags
compression, telnet



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
telnet slowness - linux telnet vs windows telnet vahab Linux - Networking 4 01-23-2013 02:25 PM
Any links to telnet debug tests? like telnet to a service and find info about it? szboardstretcher Linux - Security 2 12-02-2011 01:25 PM
Unable to telnet to Linux Host inspite of installing telnet-server RPM - Need Help sinamdar Linux - Software 7 04-11-2009 07:09 AM
Can't end telnet servcie in xinetd when close remote telnet cliend forcely zeroneworld Linux - Newbie 2 12-09-2007 08:47 PM
Can't end telnet servcie in xinetd when close remote telnet cliend forcefully. zeroneworld Linux - General 1 12-06-2007 07:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration