ZT/FwdPort.sh
2017-09-26 13:08:11 -04:00

6 lines
147 B
Bash
Executable File

#!/bin/bash
#
echo "prerouting port 205 to port 2182"
sudo -n iptables -A PREROUTING -t nat -i eth2 -p tcp --dport 502 -j REDIRECT --to-port 2182