Update Machines virtuelles/generic.md

This commit is contained in:
Adrien Bourmault 2022-09-21 17:14:57 +00:00
parent b9993b64e3
commit 354e058893
1 changed files with 19 additions and 13 deletions

View File

@ -21,7 +21,7 @@ Mail Transfer Agent : `postfix`
Domaine : dns.libre-en-communs.org Domaine : dns.libre-en-communs.org
Adresse ipv4 publique : 80.67.176.33 Adresse ipv4 publique : 80.67.176.33
Adresse ipv4 interne : 192.168.1.195 Adresse ipv4 interne : 192.168.1.4
Adresse ipv6 publique : 2001:910:1021::4 Adresse ipv6 publique : 2001:910:1021::4
### Configuration réseau ### Configuration réseau
@ -29,12 +29,27 @@ Adresse ipv6 publique : 2001:910:1021::4
#### /etc/network/interfaces #### /etc/network/interfaces
<details> <details>
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface # The primary network interface
allow-hotplug enp1s0 allow-hotplug enp1s0
iface enp1s0 inet dhcp iface enp1s0 inet static
address 192.168.1.4/32
broadcast 192.168.255.255
gateway 192.168.0.1
netmask 255.255.0.0
iface enp1s0 inet6 static iface enp1s0 inet6 static
address 2001:910:1021::4/128 address 2001:910:1021::4/128
gateway 2001:910:1021:: gateway 2001:910:1021::
</details> </details>
### Configuration SSH ### Configuration SSH
@ -78,7 +93,7 @@ Adresse ipv6 publique : 2001:910:1021::4
sshd: 192.168.1.0/24, [2001:910:1021::]/48 sshd: 192.168.1.0/24, [2001:910:1021::]/48
#### /etc/hosts/deny #### /etc/hosts.deny
sshd: ALL sshd: ALL
@ -149,19 +164,10 @@ systemclt enable ufw
#### /etc/fstab (extrait) #### /etc/fstab (extrait)
<details> <details>
/vm_sharedfs /opt/vm_sharedfs 9p trans=virtio,version=9p2000.L,ro 0 0 tmpfs /tmp tmpfs mode=1777,nosuid,nodev 0 0
</details> </details>
#### /etc/initramfs-tools/modules
<details>
9p
9pnet
9pnet_virtio
</details>
Note: côté hyperviseur, il faut configurer un FS partagé en mode "mapped" avec pour cible /vm_sharedfs.
### Configurations bashrc ### Configurations bashrc