2022-07-26 18:09:49 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Blacklisting kernel modules
|
2022-12-02 03:08:54 -05:00
|
|
|
sudo curl --proxy http://127.0.0.1:8082 https://raw.githubusercontent.com/Kicksecure/security-misc/master/etc/modprobe.d/30_security-misc.conf -o /etc/modprobe.d/30_security-misc.conf
|
2022-07-26 18:09:49 -04:00
|
|
|
|
|
|
|
# Security kernel settings.
|
2022-12-02 03:08:54 -05:00
|
|
|
sudo curl --proxy http://127.0.0.1:8082 https://raw.githubusercontent.com/Kicksecure/security-misc/master/etc/sysctl.d/30_security-misc.conf -o /etc/sysctl.d/30_security-misc.conf
|
2022-07-26 18:09:49 -04:00
|
|
|
sudo sed -i 's/kernel.yama.ptrace_scope=2/kernel.yama.ptrace_scope=3/g' /etc/sysctl.d/30_security-misc.conf
|
2022-12-02 03:08:54 -05:00
|
|
|
sudo curl --proxy http://127.00.1:8082 https://raw.githubusercontent.com/Kicksecure/security-misc/master/etc/sysctl.d/30_silent-kernel-printk.conf -o /etc/sysctl.d/30_silent-kernel-printk.conf
|
2023-02-05 23:57:22 -05:00
|
|
|
sudo curl --proxy http://127.00.1:8082 https://raw.githubusercontent.com/Kicksecure/security-misc/master/etc/sysctl.d/30_security-misc_kexec-disable.conf -o /etc/sysctl.d/30_security-misc_kexec-disable.conf
|
2023-01-18 08:52:35 -05:00
|
|
|
|
|
|
|
#Setup SSH client
|
|
|
|
echo "GSSAPIAuthentication no" > /etc/ssh/ssh_config.d/10-custom.conf
|
|
|
|
echo "VerifyHostKeyDNS yes" >> /etc/ssh/ssh_config.d/10-custom.conf
|