From 711348a445b4d2e50f2987ce2166842d2747f4c8 Mon Sep 17 00:00:00 2001 From: POPO Toto Date: Wed, 20 Oct 2021 08:43:22 +0200 Subject: [PATCH] Redirection de ports --- SDIS29/gwsio4/redirp.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 SDIS29/gwsio4/redirp.sh diff --git a/SDIS29/gwsio4/redirp.sh b/SDIS29/gwsio4/redirp.sh new file mode 100755 index 0000000..297945f --- /dev/null +++ b/SDIS29/gwsio4/redirp.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +echo "1" > /proc/sys/net/ipv4/ip_forward +sudo iptables -t nat -A PREROUTING -d 10.121.38.34 -p udp --dport 515 -j DNAT --to-dest 192.168.0.100:514 +sudo iptables -t nat -A POSTROUTING -d 192.168.0.100 -p udp --dport 515 -j SNAT --to 10.121.38.34