One Liners
Some one-liners I found helpful, or very cool
Purge unattended-upgrades
systemd-run --property="After=apt-daily.service apt-daily-upgrade.service" --wait apt purge -y unattended-upgrades
Neutralize IPv6
sysctl -a|grep 'accept_ra '|sed 's|= 1|= 0|'
sysctl -a|grep max_addresses|sed 's|= 16|= 1|'
sysctl -a|grep ipv6.*accept_redirects|sed 's|= 1|= 0|'
sysctl -a|grep ipv6.*accept_source_route|sed 's|= 1|= 0|'
sysctl -a|grep ipv6.*router_solicitations|sed 's|-1|0|'
sysctl -a|grep ipv6.*autoconf|sed 's|= 1|= 0|'
sysctl -a|grep dad_transmits|sed 's|= 1|= 0|'
echo 'net.ipv6.icmp.echo_ignore_all = 1'
echo 'net.ipv6.icmp.echo_ignore_multicast = 1'
echo 'net.ipv6.icmp.echo_ignore_anycast = 1'
Disable apt auto-update using the config files
function apt_stop () {
sed -i "s|${1}.*|${1} "0";|" /etc/apt/apt.conf.d/*
}
apt_stop Enable
apt_stop Unattended-Upgrade
apt_stop Update-Package-Lists
apt_stop Download-Upgradeable-Packages