script routage NAT

This commit is contained in:
AK 2023-06-15 18:25:11 +02:00
parent d948d805e0
commit 8328a8a625

4
sio1/sisr1/scripts/nat.sh Executable file
View File

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