A lot of the tutorials on stunnel show only single forwardings. It stunnel limited to only fowarding and listening to one port on both ends, or can it handle both local and remote forwarding in the way putty, my favorite does?
Eg in putty or ssh you can do something like ssh -L xxxx:localhost:yyyyy -L aaa:localhost:bbbbb -R yyyyy:somehost:zzzz [email protected]. Does stunnel do the same over a single connection, or is it limited by SSL from doing so, who requires another separate connection?
A single instance of
stunnel
can support multiple proxy configurations. For example, see this configuration I found on Google, which is configured to proxypop
,imap
, andsmtp
.This is not exactly the same as what you can do with the proxy support (
-L
and-R
) in ssh. When using ssh, you're talking to an ssh server which is able to negotiate with your client to create all the forwardings you have requested. Stunnel simply sets up whatever is defined in the stunnel configuration file.