gsb2021/roles/post/files/interfaces.s-adm
2021-01-04 22:49:46 +01:00

21 lines
488 B
Plaintext

#This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# cote public
allow-hotplug enp0s3
iface enp0s3 inet dhcp
post-up iptables -t nat -A POSTROUTING -o enp0s3 -j MASQUERADE
post-up echo "1" > /proc/sys/net/ipv4/ip_forward
# cote N-infra
allow-hotplug enp0s8
iface enp0s8 inet static
address 192.168.99.99
netmask 255.255.255.0