Update ipv6_static_interfaces.cfg

This commit is contained in:
Molly Lau 2023-09-26 22:19:30 +09:00 committed by GitHub
parent 3ac7097071
commit 9ec7db6a8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,11 +56,17 @@ runcmd:
- systemctl stop kdump
- systemctl disable kdump
- hostnamectl set-hostname HostName
- fallocate -l 512M /swapspace
- chmod 600 /swapspace
- mkswap /swapspace
- swapon /swapspace
- echo '/swapspace none swap sw 0 0' >> /etc/fstab
- yum install dnf epel-release -y
- dnf install curl dnsutils fail2ban file lrzsz net-tools vim wget -y
- sed -i '/^\[Definition\]/a allowipv6 = auto' /etc/fail2ban/fail2ban.conf
- sed -ri 's/^backend = auto/backend = systemd/g' /etc/fail2ban/jail.conf
- systemctl enable fail2ban
- systemctl restart fail2ban
- grub2-mkconfig
- rm -rf /etc/cloud/cloud.cfg.d/99-fake_cloud.cfg
- touch /etc/cloud/cloud-init.disabled