Skip to content

Making a service available on more ports with iptables

If you need services to be availble on multiple ports, you can use:

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 1000 -j REDIRECT --to-port 25  --match comment --comment "Explain."

This makes port 1000 and 25 the same service.


    No Comments ( Add comment / trackback )