DNAT'ing IP ranges

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

 



Greetings list,

I'd like to know if there is any way I can add a DNAT rule that will nat
an entire range of IP addresses to another range (which has the same
network mask). Something like this:

-t nat -A PREROUTING -d 192.168.0.0/24 -j DNAT --to 192.168.1.0/24

I need to keep the host address, just change the destination network
address. Thank you,

-- 
Diego Alencar Alves de Lima
http://www.diegolima.org


-
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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