make public ip infra
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
f81a4d959c
commit
a4cd5bce4d
4 changed files with 65 additions and 37 deletions
|
|
@ -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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue