I am about to design a proxy firewall which can support muti-layered protocol. And now I have difficulties in the design of a UDP proxy. I believe some professionals here can help me. Thanks in advanced.
In fact, I am after the information that design a stateful UDP- send udp replies to the last host who sent udp packets to the machine you are routing packets from, by recording what udp port they were sent from, and routing replies to that port from that target host back to the original machine. as an extension, try to perform some inteligent routing. But this is only a idea, I hope I can get some help on how to carry it out.
Thanks for your time and attention.
its a simplified tcp/udp proxy, and since its open source, just grab the code and have a look at how they're implementing it.. it'll give you some ideas. This is a good idea because their proxy is very stable, its even included as a package with some linux distributions. Just peruse the code, it will help.