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

Aspera downloading with ascli using the Proxy configuration #144

Open
xavierv79 opened this issue Jun 24, 2024 · 16 comments
Open

Aspera downloading with ascli using the Proxy configuration #144

xavierv79 opened this issue Jun 24, 2024 · 16 comments
Assignees

Comments

@xavierv79
Copy link

xavierv79 commented Jun 24, 2024

Hi Team,

We are using "ascli " to download files from aspera with https gateway. But additionally we need the proxy configuration of network to be passed with below.

ascli shares files download --to-folder=. share/file --transfer=httpgw --transfer�info=@json:'{"url":"https://example.com/aspera/http-gwy"}’

Please provide the correct syntax to pass the proxy IP, port , username and pass with above command.

@laurent-martin
Copy link
Member

laurent-martin commented Jun 24, 2024

This is the correct syntax, but I notice that the - in. --transfer-info in your example is wrong. Makefile it is ASCII hyphen character, not unicode.

Are you executing on a shell like bash , or on window ?

Note that if the user is always using a proxy, he can define this in the configuration file.

Ideally provide a log of the error you get.

@xavierv79
Copy link
Author

Hi Laurent,
Thank you We are using in Linux bash.
Need your help additionally for the Proxy. syntax to pass the proxy IP, port , username and pass with above command

@laurent-martin
Copy link
Member

laurent-martin commented Jun 24, 2024

Check documentation here:
https://github.com/IBM/aspera-cli?tab=readme-ov-file#fasp-proxy-forward-for-transfers

syntax is:

{"proxy":"dnat://username:[email protected]:9091"}

in command line:

--ts=@json:'{"proxy":"dnat://username:[email protected]:9091"}'

@laurent-martin
Copy link
Member

laurent-martin commented Jun 24, 2024

So, do you want to use both HTTP Gateway and Aspera forward proxy ????

@xavierv79
Copy link
Author

Hi Laurent,
We need to use both HTTP Gateway and proxy, since Internet and allowed ports will be through proxy.

@laurent-martin
Copy link
Member

I see,
Well, typically, if an http gateway is used, the http gateway has direct internet connection.
if the use cannot reach the http gateway, then he can use an http proxy to reach the http gateway.
Now, if the http gateway does not have internet access, and needs itself to use a forward fasp proxy .. Mmm...

@laurent-martin
Copy link
Member

Here typical paths:

image

@laurent-martin
Copy link
Member

Are you asking for the purple path ?

image

@xavierv79
Copy link
Author

Hi Laurent,

Here Aspera Server is ours and the end user need to use their Proxy . End user need to use their proxy with our http gateway during the https transfer through ascli.

@laurent-martin
Copy link
Member

laurent-martin commented Jun 24, 2024

If the end user has an Aspera Forward Proxy, it does not make sense because it means they will use FASP, and so do not need the HTTP Gateway.

If the remote user needs to use the HTTP Gateway, mays they have an HTTP proxy (not aspera proxy) , can you confirm you talk about HTTP proxy on client side, like purple path below ?

image

If so, the doc is:

https://github.com/IBM/aspera-cli?tab=readme-ov-file#proxy-for-rest-and-http-gateway

Basically, ascli uses Ruby's HTTP library, and proxy rules apply.

So, the syntax should be (env var is lowercase):

export http_proxy=http://username:password@proxy_host:proxy_port

@xavierv79
Copy link
Author

Hi Laurent,

Yes it's like purple path but instead of HSTS they want use aspera gateway, since aspera connect port not allowed form their end.

@laurent-martin
Copy link
Member

Ok, yes, the purple path shows: ascli -> HTTP forward proxy -> HTTP GW -> HSTS

on bash, the env var can also be provided on the command line like this:

http_proxy=http://username:password@host:port ascli shares files download --to-folder=. share/file --transfer=httpgw --transfer-info=@json:'{"url":"https://example.com/aspera/http-gwy"}’

@xavierv79
Copy link
Author

Hi Laurent,
Thank you very much for your help. Let me check with end user if this resolves their query .

@laurent-martin
Copy link
Member

Note: next version (not yet released) will have option --http-proxy= which behaves like env var http_proxy.

@xavierv79
Copy link
Author

Hi Laurent,
Thank for the Update. Please let me know when the version would be released approximately.

@laurent-martin laurent-martin self-assigned this Aug 4, 2024
@laurent-martin laurent-martin added the customer request Request from end users label Aug 4, 2024
@laurent-martin
Copy link
Member

@xavierv79 , did you test version 4.18.1 ?

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

2 participants