ZT/FwdPort.sh

6 lines
147 B
Bash
Executable File

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