[DNAT] Port forwarding with Port range

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

 



is it possible to use iptables to define a rule to make a port
forwarding of a range of ports
For example :
iptables -t nat -A PREROUTING -p tcp --dport 1000:2000 -j DNAT
--to-destination 192.168.1.100:3000-4000

so traffic for port 1000 will be redirected to port 3000
and traffic for port 1000+n ==> 3000+N




[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