make public ip infra

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2025-05-19 18:47:13 +02:00
commit a4cd5bce4d
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
4 changed files with 65 additions and 37 deletions

View file

@ -3,6 +3,18 @@
. ./lib/metadata.sh
function config_kvm {
apt-get install -y \
vim \
htop \
socat \
ebtables \
qemu-system qemu-utils qemu-kvm \
genisoimage \
curl \
whois \
tcpdump \
bridge-utils
sysctl -w net.ipv4.ip_forward=1
iptables -A OUTPUT -p icmp --icmp-type time-exceeded -j DROP
@ -25,6 +37,10 @@ function config_kvm {
iptables -A INPUT -j ACCEPT_BOGON
brctl addbr br-public
brctl stp "br-public" off
ip link set up dev "br-public"
metadata_service
systemctl daemon-reload
}