~vcs-imports/ipfire/ipfire-2.x

« back to all changes in this revision

Viewing changes to lfs/libtool

  • Committer: Peter Müller
  • Date: 2022-04-23 14:27:56 UTC
  • mto: This revision was merged to the branch mainline in revision 9750.
  • Revision ID: git-v1:7a981d94cb2c3e48ecaf07c506c8353a2c839d79
SSH: do not send spoofable TCP keep alive messages

By default, both SSH server and client rely on TCP-based keep alive
messages to detect broken sessions, which can be spoofed rather easily
in order to keep a broken session opened (and vice versa).

Since we rely on SSH-based keep alive messages, which are not vulnerable
to this kind of tampering, there is no need to double-check connections
via TCP keep alive as well.

This patch thereof disables using TCP keep alive for both SSH client and
server scenario. For usability reasons, a timeout of 5 minutes (10
seconds * 30 keep alive messages = 300 seconds) will be used for both
client and server configuration, as 60 seconds were found to be too
short for unstable connectivity scenarios.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
include Config
26
26
 
27
 
VER        = 2.4.7
 
27
VER        = 2.4.6
28
28
 
29
29
THISAPP    = libtool-$(VER)
30
30
DL_FILE    = $(THISAPP).tar.xz
42
42
 
43
43
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
44
44
 
45
 
$(DL_FILE)_BLAKE2 = 5e022586337637dd634bd40578ad944bec6e3b8de41f95d55777b90cc88cbc4badb3d76cbf0e638166ece1ea7de828e83590e1e6bac30c1e4b1c254a11a742f2
 
45
$(DL_FILE)_BLAKE2 = 0865af9f8701ca9dc62eec8294a088d24f4a3ff541bc76acfe7b69f70637d7e8261a17d69f7d54a4177f974c429be68467883a1560edb539061966cbf7d4a356
46
46
 
47
47
install : $(TARGET)
48
48
 
75
75
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
76
76
        @$(PREBUILD)
77
77
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar Jxf $(DIR_DL)/$(DL_FILE)
78
 
        cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/libtool-2.4.7-correct-libtoolize.in-shebang.patch
79
78
        $(UPDATE_AUTOMAKE)
80
79
        cd $(DIR_APP) && ./configure \
81
 
                                --prefix=/usr \
82
 
                                --disable-static
 
80
                --prefix=/usr
83
81
        cd $(DIR_APP) && make $(MAKETUNING)
84
82
        cd $(DIR_APP) && make install
85
83
        @rm -rf $(DIR_APP)