This commit is contained in:
raphanaud 2021-10-20 08:37:22 +02:00
parent a274e28e16
commit 2371255c5d

View File

@ -1,5 +0,0 @@
#!/bin/bash
echo "1" > /proc/sys/net/ipv4/ip_forward
sudo iptables -t nat -A PREROUTING -d 10.121.38.33 -p udp --dport 515 -j DNAT --to-dest 192.168.0.40:514
sudo iptables -t nat -A POSTROUTING -d 192.168.0.40 -p udp --dport 515 -j SNAT --to 10.121.38.33