You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the [Options] section, the proxy field should be a URL, such as:
http://localhost:8012
socks5://localhost:8012
...
The scheme of the URL could then be used to determine the type of proxy (no scheme would default to HTTP for backward compatibility) we want to connect to.
Then, we should be able to connect to SOCKS proxy as demonstrated with cURL above.
EDIT: Let's add instead a sock5 request option with the host and port of the SOCKS proxy to use.
Additional context and resources
We are using Hurl to implement the test suite of a Reverse Proxy service we provide in our infrastructure. Its configuration is pulled from Netbox. One feature is the Access Control Lists, which translates to the following NGINX configuration:
# Rejection when coming from 192.168.2.0/24
GET https://example.com
HTTP 403
# No rejection when coming from 127.0.0.1/8
GET https://example.com
[Options]
socks5: localhost:8012
HTTP 200
Tasks to complete
Support URLs in proxy request option
Add socks5 request option
Support Proxy SOCKS protocol
The text was updated successfully, but these errors were encountered:
It seems the curl crate you use already provides everything needed, the Easy2::proxy() function (docs) seems to accept URLs of the form socks5://host:port, which correspond to the CURLOPT_PROXY option.
Problem to solve
Proposal
In the[Options]
section, theproxy
field should be a URL, such as:http://localhost:8012
socks5://localhost:8012
The scheme of the URL could then be used to determine the type of proxy (no scheme would default to HTTP for backward compatibility) we want to connect to.Then, we should be able to connect to SOCKS proxy as demonstrated with cURL above.Additional context and resources
We are using Hurl to implement the test suite of a Reverse Proxy service we provide in our infrastructure. Its configuration is pulled from Netbox. One feature is the Access Control Lists, which translates to the following NGINX configuration:
The test we want to execute is the following:
Tasks to complete
Support URLs inproxy
request optionsocks5
request optionThe text was updated successfully, but these errors were encountered: