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