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

Hoverfly Using Upstream Proxy Cannot Open Internal Websites #966

Open
GreenSunShen opened this issue Apr 6, 2021 · 2 comments
Open

Hoverfly Using Upstream Proxy Cannot Open Internal Websites #966

GreenSunShen opened this issue Apr 6, 2021 · 2 comments

Comments

@GreenSunShen
Copy link

Description of the bug

  • When laptop is not connected with VPN

When starting the hoverfly with arg "--upstream-proxy", both internal & external websites cannot be accessed.
When starting the hoverfly without proxy argument, the internal websites cannot be accessed, but external ones can.

  • When laptop is connected with VPN

When starting the hoverfly with arg "--upstream-proxy", the internal websites cannot be accessed but external ones can.
When starting the hoverfly without proxy argument, the internal websites can be accessed, but external ones can not.

Internal websites -- Websites protected by the upstream proxy.
External websites -- Public websites like www.google.com

Steps to reproduce the issue

  1. Connect to a company sepcific VPN if possible

  2. hoverctl start --cors --disable-tls --upstream-proxy <company_proxy> (w/ proxy)
    hoverctl start --cors --disable-tls (w/o proxy)

  3. hoverctl mode capture

  4. open --new -a 'Google Chrome' --args --proxy-server=localhost:8500 --user-data-dir="$HOME/Library/Application Support/Google/Chrome-Hoverfly" --no-first-run --no-default-browser-check

  5. Type in URL on browser

Observed result

Overall Results Summary
Screen Shot 2021-04-06 at 2 56 12 PM

Hoverfly error messages seen (If none, say none)

Hoverfly Error!

There was an error when forwarding the request to the intended destination

Got error: Get "https://www.google.com/": dial tcp [<ip_address>]:443: connect: network is unreachable

If possible, add screenshots to help explain your problem

Screen Shot 2021-04-06 at 2 53 18 PM

Expected result

When starting the hoverfly with arg "--upstream-proxy", both internal & external websites can be accessed.
When starting the hoverfly without proxy argument, the internal websites can not be accessed, but external ones can.

Additional relevant information

  1. Hoverfly version: v1.3.2
  2. Anything that might help us to diagnose the problem
    Mac OS Catalina
@tommysitu
Copy link
Member

It sounds like the internal site requires VPN to access directly without upstream proxy, while external site requires going through your company's proxy in the VPN. It's probably how your company network policy is setup. Could you confirm the behaviour without hoverfly?

@GreenSunShen
Copy link
Author

If I start Chrome without hoverfly proxy server,

  1. When connected to VPN, then I can access both internal and external websites.
  2. When not connected to VPN, then I can only access external websites.

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