Automation framework behind enterprise proxy

292 views
Skip to first unread message

daniel.l...@gmail.com

unread,
Nov 19, 2021, 7:05:48 AM11/19/21
to OWASP ZAP User Group
Was wondering if it's possible to run the automation framework behind an enterprise proxy, and if so, how do I configure it?

I'm using docker, and running like this

` docker run --env http_proxy=http://myproxy.com:8080 --env https_proxy=http:// myproxy.com:8080 -v $(pwd):/zap/wrk/:rw -t owasp/zap2docker-bare zap.sh -cmd -autorun /zap/wrk/zap.yaml`

But it looks like the proxy is ignored, I'm getting connection timeout when the spider step kicks off. If I disconnect from the VPN, the spider works fine. 

Simon Bennetts

unread,
Nov 19, 2021, 7:09:28 AM11/19/21
to OWASP ZAP User Group
The Automation Framework doesnt support proxy configuration in the yaml file yet, but you can still set it via the ZAP command line options.

Cheers,

Simon

daniel.l...@gmail.com

unread,
Nov 19, 2021, 8:42:06 AM11/19/21
to OWASP ZAP User Group
Thanks, that worked! 

For anyone else looking 

zap.sh -cmd -autorun /zap/wrk/zap.yaml \
     -config connection.proxyChain.hostName=example.proxy.com \
     -config connection.proxyChain.port=8080

Simon Bennetts

unread,
Nov 19, 2021, 9:13:27 AM11/19/21
to OWASP ZAP User Group
Thanks for letting us know!

Andy

unread,
Dec 18, 2021, 1:21:03 PM12/18/21
to OWASP ZAP User Group
Hi Daniel,

In this you are defining the proxy chain. where can we define the actual website (which is behind proxy and we need to scan that. I would appreciate your help.

Thanks
Andy

Simon Bennetts

unread,
Dec 20, 2021, 4:30:39 AM12/20/21
to OWASP ZAP User Group

Please dont ask the same questions on multiple threads, it just gets too confusing.
Reply all
Reply to author
Forward
0 new messages