2011年5月3日 | 分类: 代理工具 | 标签: , , , ,



里面包含了MyEnTunnel的命令行用法、高级选项 、指定私钥、IPv6支持、HTTP / SOCKS代理支持、注册为NT 服务等一些MyEnTunnel小技巧。

其中指定私钥要么使用私钥的完整路径要么把私钥放在MyEnTunnel目录下在配置里指定私钥文件名;IPv6支持需要填写域名而不能填IPV6的IP(如果只有IP可以在hosts里给它随便指定个域名);HTTP / SOCKS代理支持是让ssh通过代理连接网络,需要使用putty设置好相关代理配置(具体可以看然后设置ssh服务器为你使用putty设置好的配置的名字例如文中的mysessions;注册为NT 服务开机自动运行需要使用MyEnTunnel注意此版本中包含的plink为旧版有限速可以用新版替换)。

MyEnTunnel Description

Note: This is a third party application and not associated with VanDyke Software or the author of PuTTY Simon Tatham.

MyEnTunnel is a simple system tray application (or NT service) that establishes and maintains TCP SSH tunnels. It does this by launching Plink (PuTTY Link) in the background and then monitors the process. If the Plink process dies (e.g. connection drops, server restarts or otherwise becomes unreachable) MyEnTunnel will automatically restart Plink to reestablish the tunnels in the background. It tries to use as little CPU and system resources as possible when monitoring (When the “Slow Polling” option is enabled it only does one context switch per second).

Since it uses Plink, you can use utilities such as Pageant (a SSH authentication agent for PuTTY, PSCP and Plink) and PuTTYgen (a RSA and DSA key generation utility), as well as named PuTTY sessions. All of the networking and encryption is done by plink.exe; not by MyEnTunnel.

MyEnTunnel also works with portaPuTTY (Handy for USB thumbdrives).
MyEnTunnel is compatible with Wine on *IX.

For the security-conscious: The password or passphrase DOES stay in memory and the encrypted version stored in the INI file isn’t fool proof. So I STRONGLY suggest you DON’T use this with root accounts for security reasons!

If you like MyEnTunnel, instead of sending donations please post about it online in your blog/website or message forum. (I always prefer word of mouth advertising =) )


MyEnTunnel now supports profiles.  Simply specify the profile to use on the command line or shortcut to MyEnTunnel.exe.

Version 3.4 now allows the creation and switching of profiles via the right click system tray menu.   (Popup menu is populated on clicking)
The end user must use explorer to manage (remove) unused profiles.

Command line usage:

“C:\Program Files\MyEnTunnel\MyEnTunnel.exe” work

Note: when using key files with profiles the key filename changes to: <profilename>-keyfile.ppk.



Advanced Options

These options are available by hand editing the MyEnTunnel.ini:

Full path and name to replacement executable; normally: plink.exe
For customized options; normally: -N -ssh -2
Full path and name to keyfile; normally: keyfile.ppk
Max number of lines for status window; normally: 200
Toggles window visibility when system tray icon is double clicked
Copies output of Status window to the define logfile.


ExecArguments=-2 -SSH

IPv6 Support

To enable IPv6 support please add “-6” to ExecArguments in the profiles INI file:
ExecArguments=-N -ssh -2 -6

HTTP/SOCKs Proxy Support

To use a web or socks proxy for the outgoing SSH connection please use PuTTY and create a named session with those settings.
Then simply use the saved sessions name for the host to connect to.

System Tray Icons Descriptions

SSH connection has been established and is stable
SSH connection connecting/reconnecting
Unable to connect or other error condition

MyEnTunnel NT Service

MyEnTunnel can now be ran as a NT service.  The executeable MyEnTunnel-service.exe is a GUI-less version of the MyEnTunnel core.
The installer DOES NOT automatically register the NT service.  The End User should register the service manually.
When the service is started it reads its settings from the MyEnTunnel “service” profile.
Registering, unregistering, starting, stopping and editing of the “service” profile can be done using the provided shortcuts.
All status output is sent to the Event Log.

GUI Options Descriptions

Connect on Startup:
Launch plink and establish connection when application is loaded
Enable Slow Polling:
Sets monitor loop to once a second to lower CPU usage (Note: slows down GUI response)
Enable Compression:
Enable zlib link compression
Reconnect on Failure:
Try up to 6 attempts to maintain tunnel every N (user defineable) seconds
Infinite Retry Attempts:
Always attempt to maintain tunnel
Retry Delay:
Number of seconds to wait between reconnection attempts
Use Private Keyfile:
Enable public/private key pair authentication
Enable Dynamic SOCKS:
Enable dynamic SOCKS support
Verbose Logging:
Show all plink.exe messages in status window
Hide Port Connections:
Squelch port open/close messages in status window
Disable Notifications:
Disables notification popups (Handy when using it on a laptop)