Skip to contentSkip to conversation

Iptables load balancing

DISCUSSION Vladimir S. Petukhov 2 participants 2 messages May 20, 2006 – May 22, 2006 netfilter

lore
Share & tools
lore
#0 lore raw

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!

#1 lore raw
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