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

BUG FIX: Proxy Settings refusing to work correctly with http proxy #173

Closed
c00k3 opened this issue Oct 24, 2024 · 3 comments
Closed

BUG FIX: Proxy Settings refusing to work correctly with http proxy #173

c00k3 opened this issue Oct 24, 2024 · 3 comments

Comments

@c00k3
Copy link

c00k3 commented Oct 24, 2024

Hello there!

For many versions, this has never worked for us. My company use a corporate SQUID proxy and under a "http://[host]:[port]" configuration with no auth required, it fails and also breaks the Diagnostics page in https://<our_instance>.com/servers/serverSettings/diagnostics

My fix has been to amend the CurlClient.php file, located in /var/www/MISP/app/lib/Tools/ - declaring the option for:
CURLOPT_PROXYPORT => '<the_port_we_use>'

This I place within the following section:

private function generateDefaultOptions()
{
$options = [
CURLOPT_FOLLOWLOCATION => true // Allows to follow redirect
CURLOPT_MAXREDIRS => 10,
CURLOPT_RETURNTRANSFER => true, // Should cURL return or print out the data? (true = return, false = print)
CURLOPT_HEADER => false, // Include header in result?
CURLOPT_TIMEOUT => $this->timeout, // Timeout in seconds
CURLOPT_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP, // be sure that only HTTP and HTTPS protocols are enabled
CURLOPT_PROXYPORT => '<the_port_we_use>'
];

Just wondering if this could be assessed because whenever the container is restarted or updated I have to run my script and pray that it still works to fix the bug.

Many thanks in advance!

@ostefano
Copy link
Collaborator

I don't think this is the right place since it is not related to the docker image.

Ask for help in the MISP/Support gitter/matrix channel.

@ostefano ostefano closed this as not planned Won't fix, can't repro, duplicate, stale Oct 24, 2024
@c00k3
Copy link
Author

c00k3 commented Oct 24, 2024

@ostefano - Do you have a link?
Thanks!

@ostefano
Copy link
Collaborator

@c00k3 https://www.misp-project.org/support/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants