DeleGate をTelnet SSH gateway として動かす

鹿児島Linux 勉強会 2023.11 でDelGate を最近のディストリビューションでで動かす話があったのでメモ.

以下のDeleGate の項目の通り.

$ wget ftp://ftp.delegate.org/pub/DeleGate/delegate9.9.13.tar.gz ftp://ftp.delegate.org/pub/DeleGate/delegate9.9.13.tar.sign
$ tar xf delegate9.9.13.tar.gz
$ wget https://i-red.info/docs/dg2204.patch
$ cd delegate9.9.13
$ patch -p0 < ../dg2204.patch
$ make CFLAGS="-Wno-narrowing -DHCASE=1"
Note
手元では Debian sid amd64 及び Raspberry Pi OS bullseye armhf で確認しました.

今回試したかったのは以下の Telnet → SSH の gateway

ERRORは出るけど起動します
$ src/delegated -P8023 SERVER=telnet://-ssh
-- ERROR: can't link the SSL/Crypto library.
-- Hint: use -vl option to trace the required library,
--- find it (ex. libssl.so.X.Y.Z) under /usr/lib or /lib,
--- then set the library version as DYLIB='+,lib*.so.X.Y.Z'
<DeleGate/9.9.13> [17373] -P8023 READY
DeleGate 経由でSSH 出来ます
$ nc localhost 8023
''--
--  @ @  localhost PROXY-telnet server DeleGate/9.9.13
-- ( - ) { Hit '?' or enter `help' for help. }
DeleGate/9.9.13 (October 31, 2014)
AIST-Product-ID: 2000-ETL-198715-01, H14PRO-049, H15PRO-165, H18PRO-443
Copyright (c) 1994-2000 Yutaka Sato and ETL,AIST,MITI
Copyright (c) 2001-2014 National Institute of Advanced Industrial Science and Technology (AIST)
WWW: http://www.delegate.org/delegate/
-- -- -- This (proxy) service is maintained by 'matoken@gmail.com'

>> Host name: matoken@localhost

カエル懐かしいですね.

コメントを残す

メールアドレスが公開されることはありません。 ※ が付いている欄は必須項目です

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.