summaryrefslogtreecommitdiffhomepage
path: root/svr-tcpfwd.c
AgeCommit message (Collapse)Author
2019-01-07add missing initializer (#71)François Perrad
2018-11-14Split ChanType closehandler() and cleanup() so that dbclient doesn'tMatt Johnston
lose exit status messages
2018-09-07FIx remote forward listenersMatt Johnston
2018-02-26avoid warning about portMatt Johnston
2018-02-26don't log server listen portsMatt Johnston
2018-02-16fix indentationFrancois Perrad
2018-02-16options: Complete the transition to numeric toggles (`#if')Michael Witten
For the sake of review, this commit alters only the code; the affiliated comments within the source files also need to be updated, but doing so now would obscure the operational changes that have been made here. * All on/off options have been switched to the numeric `#if' variant; that is the only way to make this `default_options.h.in' thing work in a reasonable manner. * There is now some very minor compile-time checking of the user's choice of options. * NO_FAST_EXPTMOD doesn't seem to be used, so it has been removed. * ENABLE_USER_ALGO_LIST was supposed to be renamed DROPBEAR_USER_ALGO_LIST, and this commit completes that work. * DROPBEAR_FUZZ seems to be a relatively new, as-yet undocumented option, which was added by the following commit: commit 6e0b539e9ca0b5628c6c5a3d118ad6a2e79e8039 Author: Matt Johnston <matt@ucc.asn.au> Date: Tue May 23 22:29:21 2017 +0800 split out checkpubkey_line() separately It has now been added to `sysoptions.h' and defined as `0' by default. * The configuration option `DROPBEAR_PASSWORD_ENV' is no longer listed in `default_options.h.in'; it is no longer meant to be set by the user, and is instead left to be defined in `sysoptions.h' (where it was already being defined) as merely the name of the environment variable in question: DROPBEAR_PASSWORD To enable or disable use of that environment variable, the user must now toggle `DROPBEAR_USE_DROPBEAR_PASSWORD'. * The sFTP support is now toggled by setting `DROPBEAR_SFTPSERVER', and the path of the sFTP server program is set independently through the usual SFTPSERVER_PATH.
2018-01-26bind to port as well with -bMatt Johnston
2018-01-26cli_bind_address_connecthouseofkodai
* replaces -b dummy option in dbclient to be similar with openssh -b option * useful in multi-wan connections
2018-01-25Server chosen tcpfwd ports (#43)houseofkodai
Server chosen tcpfwd ports
2017-08-19Pointer parameter could be declared as pointing to const (callback)Francois Perrad
2017-05-18merge 2017.75Matt Johnston
2017-05-16listenaddr must be mallocedMatt Johnston
2016-05-04Convert #ifdef to #if, other build changesMatt Johnston
2016-03-16fix empty C prototypesFrancois Perrad
2016-03-15Merge branch '20151231_indent' of https://github.com/fperrad/dropbear into ↵Matt Johnston
fperrad-20151231_indent
2016-01-05Fix print format specifierChocobo1
2016-01-01more hard tabFrancois Perrad
2015-06-04buf_getstring and buf_putstring now use non-unsigned char*Matt Johnston
2015-05-05Turn many local variables into char *Gaël PORTAY
reqname, bindaddr, request_addr, desthost and orighost to be exhaustive.
2015-05-05Fix pointer differ in signess warnings [-Werror=pointer-sign]Gaël PORTAY
2015-02-20Move generic network routines to netio.cMatt Johnston
--HG-- branch : fastopen
2015-02-18async connections workingMatt Johnston
--HG-- branch : fastopen
2015-02-14connect_remote() is now always non-blockingMatt Johnston
2014-07-16Set tcp priority as follows:Matt Johnston
if (connecting || ptys || x11) tos = LOWDELAY; else if (tcp_forwards) tos = 0; else tos = BULK; TCP forwards could be either lowdelay or bulk, hence the default priority.
2014-07-08Send a failure response if a client receives a global requestMatt Johnston
2013-11-14use oldstyle commentsMatt Johnston
2012-05-09Server shouldn't return "localhost" in response to -R forward connectionsMatt Johnston
if that wasn't what the client requested.
2012-05-09- Don't sent SSH_MSG_UNIMPLEMENTED if we don't have ENABLE_SVR_REMOTETCPFWDMatt Johnston
- Fix build if ENABLE_SVR_REMOTETCPFWD is disabled but ENABLE_SVR_LOCALTCPFWD is enabled
2011-04-07Fix crash when remote forwarding was requestedMatt Johnston
--HG-- extra : convert_revision : 5c0a794976692a54ec36111291179020e2ae6c1e
2011-04-07Fix leak found by KlocworkMatt Johnston
--HG-- extra : convert_revision : 51ce088e100e9ea150efc6bf3d021f019a46b2f5
2010-02-24- Progress for allowing specifying a listenaddr for tcp forwardsMatt Johnston
--HG-- extra : convert_revision : 48fdaa8706d1acda35e9d564adc9a1fbc96c18c8
2008-09-08* Patch from Frédéric Moulins adding options to authorized_keys.Matt Johnston
Needs review. --HG-- branch : pubkey-options extra : convert_revision : 26872f944d79ddacff1070aab32115a6d726392c
2006-07-07Fixes from Erik Hovland:Matt Johnston
cli-authpubkey.c: fix leak of keybuf cli-kex.c: fix leak of fingerprint fp cli-service.c: remove commented out code dropbearkey.c: don't attepmt to free NULL key on failure common-kex.c: only free key if it is initialised keyimport.c: remove dead encrypted-key code don't leak a FILE* loading OpenSSH keys rsa.c, dss.c: check return values for some libtommath functions svr-kex.c: check return value retrieving DH kex mpint svr-tcpfwd.c: fix null-dereference if remote tcp forward request fails tcp-accept.c: don't incorrectly free the tcpinfo var --HG-- extra : convert_revision : 640a55bc710cbaa6d212453c750026c770e19193
2006-01-15 * svr-tcpfwd.c: should be MAX_NAME_LEN not MAXNAMLENMatt Johnston
--HG-- extra : convert_revision : f3f6f865b6d723add601feabf155a1fcc084b0aa
2005-12-06 * fix -L forwarding on the client, broke last revMatt Johnston
--HG-- extra : convert_revision : 826db75f8001f7da7b0b8c91dcf66a44bf107b49
2005-12-04 * add -g (dbclient) and -a (dropbear) options for allowing non-localMatt Johnston
hosts to connect to forwarded ports. Rearranged various some of the tcp listening code. * changed to /* */ style brackets in svr-authpam.c --HG-- extra : convert_revision : c1e04e648867db464fe9818c4910e4320cd50c32
2005-10-20 * rename infd/outfd to writefd/readfd, to avoid confusionMatt Johnston
--HG-- extra : convert_revision : e3e7dc2cf75ad60c83a5b4307c210fee2fe90434
2005-03-13* fix longstanding bug with connections being closed on failure toMatt Johnston
connect to auth socket (server) * differentiate between get_byte and get_bool * get rid of some // comments * general tidying --HG-- extra : convert_revision : fb8d188ce33b6b45804a5ce51b9f601f83bdf3d7
2005-01-02Fixed DEBUG_TRACE macro so that we don't get semicolons left about the placeMatt Johnston
--HG-- extra : convert_revision : d928bc851e32be7bd429bf7504b148c0e4bf7e2f
2004-12-22Rearrange preprocessor parts so that compilation with various optionsMatt Johnston
disabled works OK. --HG-- extra : convert_revision : cc92f744e34125062d052b757967e167f19d6db5
2004-08-14License boilerplate etc, add Mihnea as an author to some of the filesMatt Johnston
--HG-- extra : convert_revision : 75c02f80c4ed25bd4697e7f17ffac6eded54c148
2004-08-12Merging in the changes from 0.41-0.43 main Dropbear treeMatt Johnston
--HG-- extra : convert_revision : 4c3428781bc8faf0fd7cadd7099fbd7f4ea386e7
2004-08-12TCP forwarding works.Matt Johnston
--HG-- extra : convert_revision : 57dfb36d0d482ad84f31506904eb67863bd303ab
2004-08-11- A nice cleaner structure for tcp (acceptor) forwarding.Matt Johnston
- still a checkpoint-ish commit - sorted out listening on localhost only --HG-- extra : convert_revision : c030ac0a3950dba81f2324e2ba9d4b77fc8f8149
2004-08-10just checkpointingMatt Johnston
--HG-- extra : convert_revision : fbbf404290f3fea3dfa9f6f53eba9389057e9044