V
V
Vladislav Tatarintsev2018-09-17 15:41:04
ubuntu
Vladislav Tatarintsev, 2018-09-17 15:41:04

How to forward ports in ubuntu server?

There is a server with a white address 1.2.3.4 and there is a server with an internal address 5.6.7.8, and so the problem is, you need to redirect port 8888 from white to internal.
How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Radjah, 2018-09-17
@Radjah

Usually something like this is done on routers:

iptables -A PREROUTING -t nat -d 1.2.3.4 -p tcp -m tcp --dport 8888 -j DNAT --to-destination 5.6.7.8:8888

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question