Quantcast
Channel: BigSmoke » iptables
Viewing all articles
Browse latest Browse all 6

Making a service available on more ports with iptables

$
0
0

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.


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images