Answer the question
In order to leave comments, you need to log in
Is forwarding an outgoing port to a specific port possible?
The bottom line is, there is a centos server. The application on it only supports port 21. It is not possible to specify another one, and the remote server has port 2121, what to do in this situation? Whether it is possible to force to send somehow requests to 2121? And the application will think that it is using port 21. The analogy is the same as in the host file.
Answer the question
In order to leave comments, you need to log in
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25-j REDIRECT --to-port 2121
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question