Iptables load balancing

Amin Azez azez at ufomechanic.net
Mon May 22 18:22:04 CEST 2006


Vladimir S. Petukhov wrote:
> 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




More information about the netfilter-devel mailing list