Files
tpsio/tp_pxe/nat.sh
Cameron Desrayaud d13fd49d51 rangement et tp_pxe
2021-09-16 15:47:39 +02:00

4 lines
139 B
Bash
Executable File

#!/bin/bash
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o enp0s3 -j MASQUERADE # eth0 est l'interface externe