Article 55CQH iptables multiple ips PRErouting? (--to-destination & -dst)

iptables multiple ips PRErouting? (--to-destination & -dst)

by
postcd
from LinuxQuestions.org on (#55CQH)
Hello, my iptables v1.4.21 rule is:

-A PREROUTING -i eth0 -p udp -m udp --dport 1234:1234 -j DNAT --to-destination 10.8.0.2,10.55.55.2

but i get error: Bad IP address "10.8.0.2,10.55.55.2"

How do i define --to-destination parameter for two IPs please?

In the man page on my CentOS 7 i am unable to find description for the -dst and --to-destination parameters.

Or i must create two identic commands one for first and other for second IP?latest?d=yIl2AUoC8zA latest?i=9zAKUYI2sNI:xG8P6NTn2MY:F7zBnMy latest?i=9zAKUYI2sNI:xG8P6NTn2MY:V_sGLiP latest?d=qj6IDK7rITs latest?i=9zAKUYI2sNI:xG8P6NTn2MY:gIN9vFw9zAKUYI2sNI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments