This tutorial explains you how to configure the Oracle WebGate agent in order to do the job. It is important to notice that the Oracle WebGate agent configuration is done in several steps.
Oracle WebGate Agent Configuration