Making a UDP application go through a proxy?

view full story

http://askubuntu.com – I am using Ubuntu 11.10. In System Settings -> Network I can add a Socks proxy but it doesn't work with my UDP application or even Firefox (it just connects using my real IP). What do I need to do to send my UDP program's data through a proxy ? (HowTos)