mirror of
https://github.com/buildplan/du_setup.git
synced 2025-12-28 07:36:30 +00:00
backup SSH port fix
This commit is contained in:
parent
4385655b72
commit
768acfae54
@ -778,20 +778,6 @@ configure_firewall() {
|
||||
log "Firewall configuration completed."
|
||||
}
|
||||
|
||||
# --- Previous lines of setup_harden_debian_ubuntu.sh unchanged ---
|
||||
|
||||
# --- VALIDATION FUNCTIONS (updated) ---
|
||||
|
||||
validate_port() {
|
||||
local port="$1"
|
||||
[[ "$port" =~ ^[0-9]+$ && "$port" -ge 1024 && "$port" -le 65535 ]]
|
||||
}
|
||||
|
||||
validate_backup_port() {
|
||||
local port="$1"
|
||||
[[ "$port" =~ ^[0-9]+$ && "$port" -ge 1 && "$port" -le 65535 ]]
|
||||
}
|
||||
|
||||
setup_backup() {
|
||||
print_section "Backup Configuration (rsync over SSH)"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user