mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 21:54:40 +08:00
Update ipv4_static_interfaces.cfg
This commit is contained in:
parent
3147ad82b5
commit
539daa25db
1 changed files with 6 additions and 0 deletions
|
@ -64,11 +64,17 @@ runcmd:
|
||||||
- systemctl stop kdump
|
- systemctl stop kdump
|
||||||
- systemctl disable kdump
|
- systemctl disable kdump
|
||||||
- hostnamectl set-hostname HostName
|
- 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
|
- yum install dnf epel-release -y
|
||||||
- dnf install curl dnsutils fail2ban file lrzsz net-tools vim wget -y
|
- dnf install curl dnsutils fail2ban file lrzsz net-tools vim wget -y
|
||||||
- sed -i '/^\[Definition\]/a allowipv6 = auto' /etc/fail2ban/fail2ban.conf
|
- sed -i '/^\[Definition\]/a allowipv6 = auto' /etc/fail2ban/fail2ban.conf
|
||||||
- sed -ri 's/^backend = auto/backend = systemd/g' /etc/fail2ban/jail.conf
|
- sed -ri 's/^backend = auto/backend = systemd/g' /etc/fail2ban/jail.conf
|
||||||
- systemctl enable fail2ban
|
- systemctl enable fail2ban
|
||||||
- systemctl restart fail2ban
|
- systemctl restart fail2ban
|
||||||
|
- grub2-mkconfig
|
||||||
- rm -rf /etc/cloud/cloud.cfg.d/99-fake_cloud.cfg
|
- rm -rf /etc/cloud/cloud.cfg.d/99-fake_cloud.cfg
|
||||||
- touch /etc/cloud/cloud-init.disabled
|
- touch /etc/cloud/cloud-init.disabled
|
||||||
|
|
Loading…
Reference in a new issue