pxap33/syslog/redirectap33.sh
2021-10-19 09:34:20 +02:00

5 lines
205 B
Bash

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