Setting up a proxy?

is there anyway in which i can setup a proxy for jive, so that all s2s communication takes place through the proxy. is there any inbuilt support for this, or shud i use something like packetinterceptor class to do this manually ? can someone please guide me on this ?