DNAT a range of ports to another range of portts

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

 



Hi all
I want to DNAT a connection to range of ports to another server but there
with others ports
ex :
client ip
10.100.2.5
---------
 |
 |
---------
10.200.2.10 [5600 -> 5609]
Router
192.168.2.10
---------
 |
 |
---------
192.168.2.2 [9000 -> 9009]
Appl Server

This rule will nat with the same range of ports
${IPTABLES} -t nat -I PREROUTING -p TCP -i $INET_IFACE -s 0/0 -d $INET_IP
--dport $START_PORT:$END_PORT -j DNAT --to $APPL_IP

I'm able to dnat for a range of port to the same range, but how could I
change it?
Is it possible?

-- 
  .''`. | Jean-Robert WIAME 
 : :' : | jrw AT ngi.be
 `. `'  | BELGIUM 
   `-   |  
--




[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