2020-06-23 21:32:59 +02:00
|
|
|
--- ./default_options.h.orig 2020-06-15 17:38:08.000000000 +0200
|
|
|
|
+++ ./default_options.h 2020-06-23 21:29:37.665940247 +0200
|
|
|
|
@@ -13,16 +13,16 @@
|
2018-04-22 21:22:48 +02:00
|
|
|
|
|
|
|
IMPORTANT: Some options will require "make clean" after changes */
|
2015-11-08 07:02:27 +01:00
|
|
|
|
|
|
|
-#define DROPBEAR_DEFPORT "22"
|
|
|
|
+#define DROPBEAR_DEFPORT "8022"
|
|
|
|
|
2018-04-22 21:22:48 +02:00
|
|
|
/* Listen on all interfaces */
|
|
|
|
#define DROPBEAR_DEFADDRESS ""
|
2015-11-08 07:02:27 +01:00
|
|
|
|
|
|
|
/* Default hostkey paths - these can be specified on the command line */
|
|
|
|
-#define DSS_PRIV_FILENAME "/etc/dropbear/dropbear_dss_host_key"
|
|
|
|
-#define RSA_PRIV_FILENAME "/etc/dropbear/dropbear_rsa_host_key"
|
|
|
|
-#define ECDSA_PRIV_FILENAME "/etc/dropbear/dropbear_ecdsa_host_key"
|
2020-06-23 21:32:59 +02:00
|
|
|
-#define ED25519_PRIV_FILENAME "/etc/dropbear/dropbear_ed25519_host_key"
|
2018-04-22 21:22:48 +02:00
|
|
|
+#define DSS_PRIV_FILENAME "@TERMUX_PREFIX@/etc/dropbear/dropbear_dss_host_key"
|
|
|
|
+#define RSA_PRIV_FILENAME "@TERMUX_PREFIX@/etc/dropbear/dropbear_rsa_host_key"
|
2015-11-08 07:02:27 +01:00
|
|
|
+#define ECDSA_PRIV_FILENAME "@TERMUX_PREFIX@/etc/dropbear/dropbear_ecdsa_host_key"
|
2020-06-23 21:32:59 +02:00
|
|
|
+#define ED25519_PRIV_FILENAME "@TERMUX_PREFIX@/etc/dropbear/dropbear_ed25519_host_key"
|
2015-11-08 07:02:27 +01:00
|
|
|
|
|
|
|
/* Set NON_INETD_MODE if you require daemon functionality (ie Dropbear listens
|
2018-04-22 21:22:48 +02:00
|
|
|
* on chosen ports and keeps accepting connections. This is the default.
|
2020-06-23 21:32:59 +02:00
|
|
|
@@ -45,7 +45,7 @@
|
2018-04-22 21:22:48 +02:00
|
|
|
* several kB in binary size however will make the symmetrical ciphers and hashes
|
|
|
|
* slower, perhaps by 50%. Recommended for small systems that aren't doing
|
|
|
|
* much traffic. */
|
|
|
|
-#define DROPBEAR_SMALL_CODE 1
|
2015-12-03 17:50:40 +01:00
|
|
|
+#undef DROPBEAR_SMALL_CODE
|
2015-11-08 07:02:27 +01:00
|
|
|
|
|
|
|
/* Enable X11 Forwarding - server only */
|
2020-06-23 21:32:59 +02:00
|
|
|
#define DROPBEAR_X11FWD 0
|
|
|
|
@@ -189,7 +189,7 @@
|
2015-11-08 07:02:27 +01:00
|
|
|
|
2018-04-22 21:22:48 +02:00
|
|
|
/* Whether to print the message of the day (MOTD). */
|
2020-06-23 21:32:59 +02:00
|
|
|
#define DO_MOTD 1
|
2015-11-08 07:02:27 +01:00
|
|
|
-#define MOTD_FILENAME "/etc/motd"
|
|
|
|
+#define MOTD_FILENAME "@TERMUX_PREFIX@/etc/motd"
|
|
|
|
|
|
|
|
/* Authentication Types - at least one required.
|
2018-04-22 21:22:48 +02:00
|
|
|
RFC Draft requires pubkey auth, and recommends password */
|
2020-06-23 21:32:59 +02:00
|
|
|
@@ -213,7 +213,7 @@
|
2019-03-25 00:02:09 +01:00
|
|
|
/* Set this to 0 if your system does not have multiple user support.
|
|
|
|
(Linux kernel CONFIG_MULTIUSER option)
|
|
|
|
The resulting binary will not run on a normal system. */
|
|
|
|
-#define DROPBEAR_SVR_MULTIUSER 1
|
|
|
|
+#define DROPBEAR_SVR_MULTIUSER 0
|
|
|
|
|
|
|
|
/* Client authentication options */
|
|
|
|
#define DROPBEAR_CLI_PASSWORD_AUTH 1
|
2020-06-23 21:32:59 +02:00
|
|
|
@@ -241,7 +241,7 @@
|
2018-04-22 21:22:48 +02:00
|
|
|
|
|
|
|
/* Set this to use PRNGD or EGD instead of /dev/urandom */
|
|
|
|
#define DROPBEAR_USE_PRNGD 0
|
|
|
|
-#define DROPBEAR_PRNGD_SOCKET "/var/run/dropbear-rng"
|
|
|
|
+#define DROPBEAR_PRNGD_SOCKET "@TERMUX_PREFIX@/var/run/dropbear-rng"
|
|
|
|
|
|
|
|
/* Specify the number of clients we will allow to be connected but
|
|
|
|
* not yet authenticated. After this limit, connections are rejected */
|
2020-06-23 21:32:59 +02:00
|
|
|
@@ -258,22 +258,22 @@
|
2018-04-22 21:22:48 +02:00
|
|
|
|
2015-11-08 07:02:27 +01:00
|
|
|
/* The default file to store the daemon's process ID, for shutdown
|
|
|
|
scripts etc. This can be overridden with the -P flag */
|
|
|
|
-#define DROPBEAR_PIDFILE "/var/run/dropbear.pid"
|
|
|
|
+#define DROPBEAR_PIDFILE "@TERMUX_PREFIX@/var/run/dropbear.pid"
|
|
|
|
|
|
|
|
/* The command to invoke for xauth when using X11 forwarding.
|
2018-01-24 11:03:11 +01:00
|
|
|
* "-q" for quiet */
|
|
|
|
-#define XAUTH_COMMAND "/usr/bin/xauth -q"
|
|
|
|
+#define XAUTH_COMMAND "@TERMUX_PREFIX@/bin/xauth -q"
|
2018-04-22 21:22:48 +02:00
|
|
|
|
2018-01-24 11:03:11 +01:00
|
|
|
|
|
|
|
/* if you want to enable running an sftp server (such as the one included with
|
2018-04-22 21:22:48 +02:00
|
|
|
* OpenSSH), set the path below and set DROPBEAR_SFTPSERVER.
|
|
|
|
* The sftp-server program is not provided by Dropbear itself */
|
|
|
|
#define DROPBEAR_SFTPSERVER 1
|
2018-01-24 11:03:11 +01:00
|
|
|
-#define SFTPSERVER_PATH "/usr/libexec/sftp-server"
|
|
|
|
+#define SFTPSERVER_PATH "@TERMUX_PREFIX@/libexec/sftp-server"
|
|
|
|
|
|
|
|
/* This is used by the scp binary when used as a client binary. If you're
|
|
|
|
* not using the Dropbear client, you'll need to change it */
|
|
|
|
-#define DROPBEAR_PATH_SSH_PROGRAM "/usr/bin/dbclient"
|
|
|
|
+#define DROPBEAR_PATH_SSH_PROGRAM "@TERMUX_PREFIX@/bin/dbclient"
|
|
|
|
|
|
|
|
/* Whether to log commands executed by a client. This only logs the
|
|
|
|
* (single) command sent to the server, not what a user did in a
|
2020-06-23 21:32:59 +02:00
|
|
|
@@ -309,6 +309,6 @@
|
2015-11-08 07:02:27 +01:00
|
|
|
#define DEFAULT_IDLE_TIMEOUT 0
|
|
|
|
|
|
|
|
/* The default path. This will often get replaced by the shell */
|
|
|
|
-#define DEFAULT_PATH "/usr/bin:/bin"
|
2020-07-09 00:10:21 +02:00
|
|
|
+#define DEFAULT_PATH "@TERMUX_PREFIX@/bin"
|
2015-11-08 07:02:27 +01:00
|
|
|
|
2018-04-22 21:22:48 +02:00
|
|
|
#endif /* DROPBEAR_DEFAULT_OPTIONS_H_ */
|