many one-to-one NAT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,
I'm a newbie to this list and I apologize if this question has already appeared in previous posts.
I would like to do NAT from a private range to a public range of the same size, in a way that just
the network part of the IP address would be translated.
For example, I would like a single iptables rule to map 192.168.10.0/24 => 10.1.1.0/24 as follows:
192.168.10.1 => 10.1.1.1
192.168.10.2 => 10.1.1.2
.
.
.
192.168.10.254 => 10.1.1.254


I know that I can do it by defining the whole set of rules explicitly, but I'm looking for a better solution in terms of simplicity and performance.
Can anyone help?
Thanks,


--
Yaron Presente
MRV International
Direct   : 972-4-9936237
Fax      : 972-4-9890564
Email   : ypresente@xxxxxxx
www.mrv.com






[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux