Q
Q
Qwaqer2016-10-06 18:37:00
iptables
Qwaqer, 2016-10-06 18:37:00

How to setup NAT overload on iptables?

Please tell me how to set up dynamic NAT Overload using iptables on routers (image below)
e54aa57fe8ef4ccabe90d49b8bd00d9e.png
Now there is no idea how it works, I would be grateful for an explanation on the fingers, specifically on this example.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Smithson, 2016-10-06
@Smithson

Well, you need to have a conscience: https://bitrainbow.wordpress.com/2015/02/25/%D1%81...
The pat (nat overload) itself is configured with one command

iptables -A POSTROUTING -s 192.168.N.0/24 -o eth1 -j SNAT --to-source 10.N.0.1
for the first network and the second command
iptables -A POSTROUTING -s 192.168.N+1.0/24 -o eth1 -j SNAT --to-source 10.N.0.2
for the second.
What's difficult?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question