Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running tsung behind a proxy #120

Closed
fabuloso opened this issue Aug 14, 2015 · 10 comments
Closed

running tsung behind a proxy #120

fabuloso opened this issue Aug 14, 2015 · 10 comments

Comments

@fabuloso
Copy link

Hi,
i am trying tsung while evaluating different load tool, but currently I am behind a proxy.

Is there a way to configure tsung to use my company proxy?

Thank you

@nniclausse
Copy link
Contributor

nniclausse commented Aug 14, 2015

yes, you should add: <option type="ts_http" name="http_use_server_as_proxy" value="true"></option>

The server configured will used as a proxy and absolute URL must be used in <sessions>

@fabuloso
Copy link
Author

@nniclausse sorry can you show me how to achieve the result? should i configure the xml file?

what i want is to test an http server that is located outside of my network.

thanks

@tisba
Copy link
Collaborator

tisba commented Oct 8, 2015

@nniclausse your response somehow looks being lost :)

@fabuloso I'm not sure what you exactly want to achieve. Do you want to test the proxy server? In this case you might want to take a look at https://tsung.readthedocs.org/en/latest/benchmark.html#benchmarking-a-proxy-server.

@ghost
Copy link

ghost commented Jan 31, 2017

Could you please give an example of how to specify the proxy server in the input file? This is for the situation where there is a proxy between the client that tsung is running on and the server being tested.

The previous answer "The server configured will used as a proxy and absolute URL must be used in" isn't clear.

Thanks very much for your help!

@manjukori
Copy link

@nniclausse @mattharrington001
Could you please provide an example of how to set the https proxy server in the tsung config file?? I have the server under test behind the proxy and "https_proxy" env variable does not have impact on the tsung run.

@tisba
Copy link
Collaborator

tisba commented Jun 16, 2018

I took the liberty to fix @nniclausse comment :) Also, please take a look at the documentation: https://tsung.readthedocs.org/en/latest/benchmark.html#benchmarking-a-proxy-server. If you set this option, and use absolute URLs for your <http url="…"> tsung will use the provided <servers> as HTTP proxies.

Is this what you are looking for, @mattharrington001, @manjukori, @fabuloso?

@manjukori
Copy link

@tisba Thanks, yes using absolute URLs will work for me. However, I am seeing SSL certificate validation errors, is there a option in Tsung to ignore such SSL errors.
[Something like in python requests lib, response = requests.get(url, verify=False), verify=False will ignore SSL certificate error]

@tisba
Copy link
Collaborator

tisba commented Jun 18, 2018

That's strange. Can you paste parts of your error log? IIRC by default tsung does not perform certificate validation…

@manjukori
Copy link

I was getting 403 error from proxy with invalid certificate. I will try check the proxy first and make sure if that behaving correctly. Thanks for your reply.

@tisba
Copy link
Collaborator

tisba commented Jun 19, 2018

You're welcome!

I'll close this issue now. Feel free to comment again if you still have issues with this feature.

@tisba tisba closed this as completed Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants