D
D
Dmitry2018-09-30 02:33:16
linux
Dmitry, 2018-09-30 02:33:16

How to change the destination address using iptables?

The network has a Windows Server2008 ip: 10.0.0.10
Windows workstation ip: 10.0.0.2
Linux Internet Gateway ip1 : 10.0.0.1 :13389, the connection was redirected to the server 10.0.0.10:3389 (that is, the destination address was spoofed). Is such a configuration possible and how can it be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael Galyuk, 2018-09-30
@seqular

I suppose, on the gateway 10.0.0.1, do something like this:
Don't forget to also enable FORWARD, load the iptable_nat module and enable the /proc/sys/net/ipv4/ip_forward parameter in the kernel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question