address ranges for DNAT?

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

 



Hello,

I need to map a whole /24 network of incoming addresses to a different /24 
network, e.g.
10.0.1.0/24 -> 1921.168.27.0/24
such that 
10.0.1.1 is mapped to 192.168.27.1,
10.0.1.2 is mapped to 192.168.27.2,
and so on to
10.0.1.254 is mapped to 192.168.27.254

Is there any short syntax for this or do I really need to define 254 
single DNAT rules?

Thanks in advance for your help!

Frank Mayer
UNIX Systemadministration
----------------------------------------------------
KNAPP Systemintegration GmbH
Waltenbachstrasse 9
8700 Leoben, Austria
----------------------------------------------------
Phone: +43 3842 805-921
Fax: +43 3842 82930-921
frank.mayer@xxxxxxxxxxxxxxxxx
www.knapp.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