nouveau fichier : sio2/CYBERSECURITE/02-check/check

nouveau fichier : sio2/SISR/05-pxe/dhcpd.conf
	nouveau fichier : sio2/SISR/05-pxe/enp0s3
	nouveau fichier : sio2/SISR/05-pxe/enp0s8
	nouveau fichier : sio2/SISR/05-pxe/isc-dhcp-server
	nouveau fichier : sio2/SISR/05-pxe/nat.sh
This commit is contained in:
Rotsipitia Rahaingoharivahitra
2024-09-16 17:35:02 +02:00
parent fa5c6ac8a3
commit 814f28c2f5
6 changed files with 163 additions and 0 deletions

5
sio2/SISR/05-pxe/nat.sh Executable file
View File

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