Fichiers de configuration du TP PXE

This commit is contained in:
root
2023-09-18 21:03:14 +02:00
parent d1a456482a
commit 5aa06c1d6a
5 changed files with 137 additions and 0 deletions

4
sio2/SISR/PXE/nat.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
echo "1"> /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o enp0s3 -j MASQUERADE
iptables -t nat -A POSTROUTING -o enp0s8 -j MASQUERADE