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

カエル懐かしいですね.

コメントを残す

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

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)