Score:0

How to redirect UDP traffic based on conditions?

ma flag

I have several programs which accepts UDP connections for certain ports (for example, it’s 8899, 8898). I’d like to forward connections from port 8888 to one of these based on some conditions: they may be stores in a file on the system or in redis, etc… Connections will be from external clients. So I need to add/remove these conditions at any time. Also there maybe no conditions for certain connections and they should be randomly redirected into one of the available ports.

Is there are any solutions for such task? I tried to google it, but found only iptables redirect, is it will be a good solution in my case? I mean is it good to edit iptables conditions frequently? Or it can be done on any other nice way?

Thanks!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.