L
L
LordDimka2017-06-08 13:08:43
iptables
LordDimka, 2017-06-08 13:08:43

How can I forward all traffic in iptables to a specific IP?

Greetings!
Need help ... how can I forward all ports to a specific external IP in iptables (incoming outgoing)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri Chudnovsky, 2017-06-08
@Frankenstine

man iptables, look at SNAT/DNAT

A
Andrey Burov, 2017-06-08
@BuriK666

iptables -t nat -A PREROUTING -p tcp -j DNAT --to-destination xxx.xxx.xxx.xxx:yyyy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question