How do I setup a gateway client?

Please refer to this howto