comparison options.h @ 246:f4cf0415fec1 contrib-blacklist

- blacklisting patch from Michael Deiters
author Matt Johnston <matt@ucc.asn.au>
date Tue, 06 Sep 2005 04:52:46 +0000
parents 9089929fb2b7
children c07de41b53d7
comparison
equal deleted inserted replaced
224:1dbd2473482f 246:f4cf0415fec1
19 #define DSS_PRIV_FILENAME "/etc/dropbear/dropbear_dss_host_key" 19 #define DSS_PRIV_FILENAME "/etc/dropbear/dropbear_dss_host_key"
20 #endif 20 #endif
21 #ifndef RSA_PRIV_FILENAME 21 #ifndef RSA_PRIV_FILENAME
22 #define RSA_PRIV_FILENAME "/etc/dropbear/dropbear_rsa_host_key" 22 #define RSA_PRIV_FILENAME "/etc/dropbear/dropbear_rsa_host_key"
23 #endif 23 #endif
24
25 /* File to store blacklisted IPs */
26 #define BLACKLISTFILE "/var/dropbear/blacklist"
24 27
25 /* Set NON_INETD_MODE if you require daemon functionality (ie Dropbear listens 28 /* Set NON_INETD_MODE if you require daemon functionality (ie Dropbear listens
26 * on chosen ports and keeps accepting connections. This is the default. 29 * on chosen ports and keeps accepting connections. This is the default.
27 * 30 *
28 * Set INETD_MODE if you want to be able to run Dropbear with inetd (or 31 * Set INETD_MODE if you want to be able to run Dropbear with inetd (or
120 * a simple "Login: " "Password: " (you can edit the strings in svr-authpam.c). 123 * a simple "Login: " "Password: " (you can edit the strings in svr-authpam.c).
121 * It's useful for systems like OS X where standard password crypts don't work, 124 * It's useful for systems like OS X where standard password crypts don't work,
122 * but there's an interface via a PAM module - don't bother using it otherwise. 125 * but there's an interface via a PAM module - don't bother using it otherwise.
123 * You can't enable both PASSWORD and PAM. */ 126 * You can't enable both PASSWORD and PAM. */
124 127
125 #define ENABLE_SVR_PASSWORD_AUTH 128 //#define ENABLE_SVR_PASSWORD_AUTH
126 /*#define ENABLE_SVR_PAM_AUTH*/ 129 #define ENABLE_SVR_PAM_AUTH
127 #define ENABLE_SVR_PUBKEY_AUTH 130 #define ENABLE_SVR_PUBKEY_AUTH
128 131
129 #define ENABLE_CLI_PASSWORD_AUTH 132 #define ENABLE_CLI_PASSWORD_AUTH
130 #define ENABLE_CLI_PUBKEY_AUTH 133 #define ENABLE_CLI_PUBKEY_AUTH
131 134
159 #define MAX_UNAUTH_CLIENTS 30 162 #define MAX_UNAUTH_CLIENTS 30
160 #endif 163 #endif
161 164
162 /* Maximum number of failed authentication tries (server option) */ 165 /* Maximum number of failed authentication tries (server option) */
163 #ifndef MAX_AUTH_TRIES 166 #ifndef MAX_AUTH_TRIES
164 #define MAX_AUTH_TRIES 10 167 #define MAX_AUTH_TRIES 2
165 #endif 168 #endif
166 169
167 /* The file to store the daemon's process ID, for shutdown scripts etc */ 170 /* The file to store the daemon's process ID, for shutdown scripts etc */
168 #ifndef DROPBEAR_PIDFILE 171 #ifndef DROPBEAR_PIDFILE
169 #define DROPBEAR_PIDFILE "/var/run/dropbear.pid" 172 #define DROPBEAR_PIDFILE "/var/run/dropbear.pid"