forked from guillaume.emorine/siotp
Nouveau fichier : sisr1/tp03/srv-admin-ge/hostname
Nouveau fichier : sisr1/tp03/srv-admin-ge/hosts Nouveau fichier : sisr1/tp03/srv-admin-ge/interfaces Nouveau fichier : sisr1/tp03/srv-admin-ge/nat.sh Nouveau fichier : sisr1/tp03/srv-dns2-ge/db.monlabo.lan Nouveau fichier : sisr1/tp03/srv-dns2-ge/db.monlabo.lan.rev Nouveau fichier : sisr1/tp03/srv-dns2-ge/hostname Nouveau fichier : sisr1/tp03/srv-dns2-ge/hosts Nouveau fichier : sisr1/tp03/srv-dns2-ge/named.conf Nouveau fichier : sisr1/tp03/srv-dns2-ge/named.conf.local Nouveau fichier : sisr1/tp03/srv-dns2-ge/named.conf.options Nouveau fichier : sisr1/tp03/srv-service-ge/db.monlabo.lan Nouveau fichier : sisr1/tp03/srv-service-ge/db.monlabo.lan.rev Nouveau fichier : sisr1/tp03/srv-service-ge/dhclient.conf Nouveau fichier : sisr1/tp03/srv-service-ge/dhcpd.conf Nouveau fichier : sisr1/tp03/srv-service-ge/hostname Nouveau fichier : sisr1/tp03/srv-service-ge/hosts Nouveau fichier : sisr1/tp03/srv-service-ge/interfaces Nouveau fichier : sisr1/tp03/srv-service-ge/named.conf Nouveau fichier : sisr1/tp03/srv-service-ge/named.conf.local Nouveau fichier : sisr1/tp03/srv-service-ge/named.conf.options
This commit is contained in:
1
sisr1/tp03/srv-admin-ge/hostname
Normal file
1
sisr1/tp03/srv-admin-ge/hostname
Normal file
@@ -0,0 +1 @@
|
||||
srv-admin-ge
|
7
sisr1/tp03/srv-admin-ge/hosts
Normal file
7
sisr1/tp03/srv-admin-ge/hosts
Normal file
@@ -0,0 +1,7 @@
|
||||
127.0.0.1 localhost
|
||||
127.0.1.1 srv-admin-ge.sio.lan srv-admin-ge
|
||||
|
||||
# The following lines are desirable for IPv6 capable hosts
|
||||
::1 localhost ip6-localhost ip6-loopback
|
||||
ff02::1 ip6-allnodes
|
||||
ff02::2 ip6-allrouters
|
18
sisr1/tp03/srv-admin-ge/interfaces
Normal file
18
sisr1/tp03/srv-admin-ge/interfaces
Normal file
@@ -0,0 +1,18 @@
|
||||
# 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
|
||||
allow-hotplug enp0s3
|
||||
iface enp0s3 inet static
|
||||
address 192.168.0.120/24
|
||||
gateway 192.168.0.1
|
||||
|
||||
# The secondary (internal) network interface
|
||||
allow-hotplug enp0s8
|
||||
iface enp0s8 inet dhcp
|
6
sisr1/tp03/srv-admin-ge/nat.sh
Executable file
6
sisr1/tp03/srv-admin-ge/nat.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
echo "1" > /proc/sys/net/ipv4/ip_forward
|
||||
nft add table basic_nat_table
|
||||
nft add chain basic_nat_table prerouting {type nat hook prerouting priority 0 \; }
|
||||
nft add chain basic_nat_table postrouting {type nat hook postrouting priority 0 \; }
|
||||
nft add rule basic_nat_table postrouting masquerade
|
Reference in New Issue
Block a user