B
B
Bermut2021-07-09 04:10:35
linux
Bermut, 2021-07-09 04:10:35

How to forward udp port?

We have - a server with a white ip raised on it vpn, a device with ip - 10.0.0.4 is connected to it, the server itself has an internal ip - 10.0.0.1, I forward tcp ports via nat, I use iptables, but I don’t understand how to redirect udp port 28015, and is it even possible?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
none7, 2021-07-09
@none7

Same as with TCP. The only difference is that NAT cannot track UDP connections and deletes them on timeout, but this is already the concern of applications.

D
Drno, 2021-07-09
@Drno

In the iptables forwarding line, replace tcp with udp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question