Iptables load balancing
Hi!
Sorry for my English...
I need to separate UDP packets via several ports according content of these packets. Each packet has fixed field (2 bytes) - "connection" number (session number), packet with the same number must be forwarded on the same port. It look like NAT, but based on content of UDP packet.
Thanks!
Quoted 8 lines · Vladimir S. Petukhov
Hi!
Sorry for my English...
I need to separate UDP packets via several ports according content of these packets. Each packet has fixed field (2 bytes) - "connection" number (session number), packet with the same number must be forwarded on the same port. It look like NAT, but based on content of UDP packet.
Looks like you need http://l7-filter.sourceforge.net/ and write some patterns to match your packets and then set a mark based on which packet matched.
Then you can have NAT rules (or ipt_route) or whatever based on the packet mark.
Sam