D
D
Denis2018-08-27 12:19:09
FTP
Denis, 2018-08-27 12:19:09

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

1 answer(s)
B
blackbeard, 2018-08-27
@WolFman

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 question

Ask a Question

731 491 924 answers to any question