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

Cortex 2 is not passing proxy variable to analyzers #71

Closed
syloktools opened this issue Apr 2, 2018 · 5 comments
Closed

Cortex 2 is not passing proxy variable to analyzers #71

syloktools opened this issue Apr 2, 2018 · 5 comments
Assignees
Labels
Milestone

Comments

@syloktools
Copy link

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu
Cortex version / git hash 2
Package Type DEB

Problem Description

Proxy settings are set in the GUI, analyzer runs for a while and then times out since it is not going through the proxy. Hitting the firewall and being dropped.

Complementary information

Invalid output
Traceback (most recent call last):
  File "Fortiguard/urlcategory.py", line 53, in <module>
    URLCategoryAnalyzer().run()
  File "Fortiguard/urlcategory.py", line 41, in run
    req = requests.get(url)
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 508, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fortiguard.com', port=443): Max retries exceeded with url: /webfilter?q=test.com (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f083b9553d0>: Failed to establish a new connection: [Errno 101] Network is unreachable',))
@nadouani
Copy link
Contributor

nadouani commented Apr 3, 2018

Well, the issue is an incompatibility between Cortex 2 and cortexutils. The proxy config names have been changed by Cortex 2 but the change has not been made on cortexutils.

We will release a new version of cortexutils library

@nadouani nadouani added this to the 2.0.2 milestone Apr 3, 2018
@To-om To-om closed this as completed Apr 3, 2018
@nadouani
Copy link
Contributor

nadouani commented Apr 3, 2018

We finally decided to fix this in Cortex side because it could have introduced a lot of changes on analyzers side. So, no cortexutils new version needed.

@syloktools
Copy link
Author

When will this be in the DEB package?

@nadouani
Copy link
Contributor

nadouani commented Apr 3, 2018

Once Bintray comes up again :)

@saadkadhi
Copy link
Contributor

... If ever ... (badmouth mode)

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

No branches or pull requests

4 participants