--to-destination of DNAT issue -- or my misinterpretation?

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

 



Hello,

It seems I can't specify several --to-destination (like the man page
tells), and iptables doesn't spit any errors.

iptables -t nat -A PREROUTING -p tcp --dport 12345 -d dest-host -s
source-host -j DNAT --to-destination dest-host:12346 --to-destination
dest-host:12347 --to-destination dest-host:12348

Am I doing something wrong?

Could you give me an example of how to do this properly?

I'm assuming that the normal behavior is: When I'm connecting from
source-host to dest-host:12345, the dest-host does load balancing and
randomly chooses one of the three --to-destination parameters. Is this
right?

Thanks in advanced.

    -- jfs


[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