From 4e7a208edd83612d2cec5903eab4b9f1e5cef1da Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Thu, 6 Jul 2023 10:24:15 +0900 Subject: [PATCH] Update ipv4_static_interfaces.cfg --- Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg b/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg index afb2efb..8c63137 100644 --- a/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg +++ b/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg @@ -64,6 +64,10 @@ runcmd: - sed -ri '/set nocompatible/a\set backspace=2' /etc/vim/vimrc.tiny - mv /etc/netplan/50-cloud-init.yaml /etc/netplan/20-netcfg.yaml - netplan apply + - sed -i '/\[Definition\]/a allowipv6 = auto' /etc/fail2ban/fail2ban.conf + - sed -ri 's/backend.*/backend = systemd/g' /etc/fail2ban/jail.conf + - update-rc.d fail2ban enable + - /etc/init.d/fail2ban restart - rm -rf /etc/cloud/cloud.cfg.d/99-fake_cloud.cfg - touch /etc/cloud/cloud-init.disabled