siotp/sio2/SISR/PXE/nat.sh
2023-09-18 21:03:14 +02:00

5 lines
162 B
Bash

#!/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