How do you set up a rule to only allow a program to access the internet via a VPN connection?

I use IRC in conjunction with a paid vpn service. I would like to know how to setup a rule that would only allow traffic from the IRC client through the VPN. Thanks