Update dhcp_interfaces.cfg

This commit is contained in:
Molly Lau 2023-08-28 03:42:47 +09:00 committed by GitHub
parent bcb4764878
commit dc2b2ead9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,8 +66,8 @@ 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
- sed -i '/^\[Definition\]/a allowipv6 = auto' /etc/fail2ban/fail2ban.conf
- sed -ri 's/^backend = auto/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