DNAT a range of ports to another range of portts

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

 



On Monday 25 November 2002 07:44 am, jrw@ngi.be wrote:
> Hi all
> I want to DNAT a connection to range of ports to another server but the=
re
> with others ports

> 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?

You should be able to use "-j DNAT --to $APPL_IP:$DSTART-$DEND"

and DNAT to the range of ports from DSTART to DEND.=20

j



[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