Files
siotp/sisr2/sisr/25-pxe/nat.sh
2025-09-22 17:27:56 +02:00

7 lines
151 B
Bash

#!/bin/bash
IFEXT=enp0s3
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -F -t nat
iptables -t nat -A POSTROUTING -o "${IFEXT}" -j MASQUERADE
exit 0