To redirect a single port with IPTables:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 123 -j REDIRECT --to-port 124
This example redirects TCP port 123 to port 124. It can also be used for UDP.
To redirect a single port with IPTables:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 123 -j REDIRECT --to-port 124
This example redirects TCP port 123 to port 124. It can also be used for UDP.