O
O
ofounder2017-01-23 13:40:54
iptables
ofounder, 2017-01-23 13:40:54

How to redirect incoming dst and port to another interface?

There is no way to configure the following:
There is eth1 192.168.1.55
There is eth2 10.10.1.7 It is
necessary to redirect the traffic incoming to eth1 to eth2 with this condition.
Forward from eth1 dst ip 192.168.1.33 port 2323
to eth2 port 4343 ip 10.10.1.26

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wexter, 2017-01-23
@Wexter

iptables -t nat -A PREROUTING -p tcp -d 192.168.1.33 --dport 2323 -j DNAT --to-destination 10.10.1.26:4343

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question