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

HTTP Tunneling with images is slow #390

Closed
codecube47 opened this issue Feb 7, 2020 · 23 comments
Closed

HTTP Tunneling with images is slow #390

codecube47 opened this issue Feb 7, 2020 · 23 comments
Labels
bug Something isn't working

Comments

@codecube47
Copy link

Slow with images
When running HTTP tunnel for my local server it working fine, But if we have images the public Ip is very slow

Screenshots or logs
Screenshot from 2020-02-07 19-51-03

Server:

  • OS: UBUNUT 16
  • ARCH: Amd64, Arm
  • Tunnel : HTTP
  • Version 0.26.1

Client:

  • OS: UBUNTU 18
  • ARCH: Amd64, Arm
  • Tunnel HTTP
  • Version 0.26.1
@codecube47 codecube47 added the bug Something isn't working label Feb 7, 2020
@codecube47 codecube47 changed the title HTTP Tunneling slow HTTP Tunneling with images slow Feb 7, 2020
@codecube47 codecube47 changed the title HTTP Tunneling with images slow HTTP Tunneling with images is slow Feb 7, 2020
@ffdfgdfg
Copy link
Collaborator

ffdfgdfg commented Feb 8, 2020

Maybe you should check the bandwidth between your server and client,like upload a file from client to server use ssh,nps should not be too slow than it

@codecube47
Copy link
Author

Hi @ffdfgdfg
I checked the connection between server and client it is pretty good, by the way, I will do more investigation about that.

I have also changed to bridge type to bridge_type=kcp it is improved connection speed but still hanging, Is there any setting that you can suggest me to check?

@ffdfgdfg
Copy link
Collaborator

ffdfgdfg commented Feb 8, 2020

Could you please trying to use tcp tunnel instead of http host tunnel?

@codecube47
Copy link
Author

Can you please then how can I do a subdomain name with that?

@ffdfgdfg
Copy link
Collaborator

ffdfgdfg commented Feb 8, 2020

Just for testing, or you can use nginx to reserve proxy the tcp tunnel port for subdomain.

@yelky
Copy link

yelky commented Feb 10, 2020

if vmware client, try bridge(B),not nat

@codecube47
Copy link
Author

codecube47 commented Mar 10, 2020

Problem was not fixed to me even TCP slow

@ffdfgdfg
Copy link
Collaborator

We meet some problem with CI, not release yet

@codecube47
Copy link
Author

codecube47 commented Mar 11, 2020

Hi @ffdfgdfg, I just checked with the new release, still the same problem, http://a.krisps.xyz/

@ffdfgdfg
Copy link
Collaborator

Please give me the log both server and client,take a screenshot on client ping the server

@codecube47
Copy link
Author

@ffdfgdfg Here I have attached the screenshots

Server log file:
server-nps.log

Screen Shots:

Screenshot from 2020-03-12 13-39-49
Screenshot from 2020-03-12 13-40-35
Screenshot from 2020-03-12 13-40-40
Screenshot from 2020-03-12 13-41-50
Screenshot from 2020-03-12 13-41-55
Screenshot from 2020-03-12 13-42-06
Screenshot from 2020-03-12 13-42-23
Screenshot from 2020-03-12 13-57-31

@ffdfgdfg
Copy link
Collaborator

Your log shows client disconnect from server many times, and some http request even not finish.
If you upload some file to your server and speed looks like pretty good, trying to turn on crypt, or change bridge type to kcp, maybe your network been Qos.

@codecube47
Copy link
Author

Yea you are correct that is what I talking about, Everything loading except the image. image file is the one actually breaking.

I will check KCP, Do you think that may UAE block VPN?

@ffdfgdfg
Copy link
Collaborator

Try turn on crypt with tcp, crypt with kcp

@codecube47
Copy link
Author

Seems to be now it is working http://a.krisps.xyz/, but I feel like little slow, do you recommend any setting on server-side and do you recommend for production?

@ffdfgdfg
Copy link
Collaborator

Turn on tcp bbr, if you use tcp bridge, both server and client turn on it.

@codecube47
Copy link
Author

Thanks for that I will check TCP bbr. What do you think why TCP bridge not working for me?

@ffdfgdfg
Copy link
Collaborator

ISP block or something else, we provides crypt and kcp, for different situations, just try it

@codecube47
Copy link
Author

After I active TCP bbr, Then TCP bridge is working now

@codecube47
Copy link
Author

codecube47 commented Mar 12, 2020

@ffdfgdfg Thanks for your help everything working fine and I must say this is a fantastic piece of software

@ffdfgdfg
Copy link
Collaborator

thx

@codecube47
Copy link
Author

codecube47 commented Mar 13, 2020

Try turn on crypt with tcp, crypt with kcp

can we open both bridges at the same time? I mean different client deferent bridge

@ffdfgdfg
Copy link
Collaborator

Try turn on crypt with tcp, crypt with kcp

can we open both bridges at the same time? I mean different client deferent bridge

nope, you can run two server

kiririx pushed a commit to kiririx/nps that referenced this issue Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants