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

« back to all changes in this revision

Viewing changes to lfs/python3-packaging

  • 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:
1
1
###############################################################################
2
2
#                                                                             #
3
3
# IPFire.org - A linux based firewall                                         #
4
 
# Copyright (C) 2007-2023  IPFire Team  <info@ipfire.org>                     #
 
4
# Copyright (C) 2007-2020  IPFire Team  <info@ipfire.org>                     #
5
5
#                                                                             #
6
6
# This program is free software: you can redistribute it and/or modify        #
7
7
# it under the terms of the GNU General Public License as published by        #
24
24
 
25
25
include Config
26
26
 
27
 
VER        = 23.0
 
27
VER        = 21.3
28
28
 
29
29
THISAPP    = packaging-$(VER)
30
30
DL_FILE    = $(THISAPP).tar.gz
32
32
DIR_APP    = $(DIR_SRC)/$(THISAPP)
33
33
TARGET     = $(DIR_INFO)/$(THISAPP)
34
34
PROG       = python3-packaging
35
 
PAK_VER    = 3
 
35
PAK_VER    = 1
36
36
 
37
37
###############################################################################
38
38
# Top-level Rules
42
42
 
43
43
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
44
44
 
45
 
$(DL_FILE)_BLAKE2 = 601806498c414aaf3a68206a008e4032b0925bb1a06b170a6da64786d15456b5a3082cfde7620cd39f3f0ec204f42337df4b6c663c76697b6dc9577d38cc45c3
 
45
$(DL_FILE)_BLAKE2 = 957d63b9cd351fc638c58ac9ef4be1aa07735f701c68d0dc77bc4215f746846b2998ea52ecd71b4bd5f422bd985dba49e701fc8ab659c7ca531926b36a513cd9
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 zxf $(DIR_DL)/$(DL_FILE)
78
 
        cd $(DIR_APP) && python3 -m pyproject2setuppy.main build
79
 
        cd $(DIR_APP) && python3 -m pyproject2setuppy.main install --root=/
 
78
        cd $(DIR_APP) && python3 setup.py build
 
79
        cd $(DIR_APP) && python3 setup.py install --root=/
80
80
        @rm -rf $(DIR_APP)
81
81
        @$(POSTBUILD)