iptables REDIRECT --to-ports range
Posted on 2007-04-11
I have this rule
iptables -t nat -A PREROUTING -p tcp -d 184.108.40.206 --dport 1234 -j REDIRECT --to-ports 12345-12347
There's actually two Qs
- it suppose to redirect connections to 3 different ports 12345 12347 12347, however my serwer seems to ignore the last port 12347 - no connection is redirected there. Any ideas?
- if new connections arrives, how is determined destination port for this new connection? round-robin, least-occupied, firt-that-connects, etc. ?
Linux server 2.6.19-1.2911.fc6PAE #1 SMP Sat Feb 10 15:16:17 EST 2007 i686 athlon i386 GNU/Linux
Some document references please. No IMHO please.