From 87b4bf606df1f2591c290dfd807ec61a340ec430 Mon Sep 17 00:00:00 2001 From: raphanaud Date: Tue, 19 Oct 2021 09:34:20 +0200 Subject: [PATCH] syslog --- syslog/redirectap33.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 syslog/redirectap33.sh diff --git a/syslog/redirectap33.sh b/syslog/redirectap33.sh new file mode 100644 index 0000000..24f78c9 --- /dev/null +++ b/syslog/redirectap33.sh @@ -0,0 +1,4 @@ +#!/bin/bash +iptables -t nat -A PREROUTING -d 10.121.38.33 -p udp --dport 515 -j DNAT --to-port 192.168.0.40:514 +iptables -t nat -A POSTROUTING -d 192.168.0.40 -p udp --dport 515 -j SNAT --to 10.121.38.32 +