9

I am trying to analyze HTTP traffic of our application. Application uses port 8080. So I had configured burp proxy for 6666 and upstream proxy to our organisation proxy.

Made changes to browser's proxy for 127.0.0.1:6666 application URL can be reached to 127.0.0.1:8080

But from browser I get "proxy server is refusing connections" for application landing page.

How to configure burp to work with local apps running on 127.0.0.1?

5
  1. In Burp go to Proxy / Options / Proxy listeners, and confirm the Running box is ticked.

  2. In proxy tab make sure intercept is turned off.

  3. Make sure the proxy in burp listener is 127.0.0.1:6666.

  4. Configure your browser to use 127.0.0.1:6666 as its proxy.

  5. Configure Burp to use your original LAN proxy (from your original browser configs) as its upstream proxy.

  6. Run your browser and access your application.

Update: Additional reasons could be browser restricted ports. You mentioned you are using Firefox. Try this.

  1. Type the following into Firefox address bar 'about:config'
  2. Type the following settings 'network.security.ports.banned.override'
  3. Enter your port number '6666'
  • It is working now at some other port. Looks like 6666 port had some issue even though proxy was running. changed port to 7878 and everything is fine now. – Dheeraj Joshi Nov 15 '16 at 4:23
  • Glad to know it worked for you. Are you using chrome? – Lester T. Nov 15 '16 at 4:28
  • Nope. I am using Firefox. Even though port proxy was running at 6666 with proxy listening ticked. Browser was unable to connect. But it works fine with port 7878. Are there comprehensive logs available for burp tools – Dheeraj Joshi Nov 15 '16 at 5:48
  • Port 6666 could be in the firefox restricted ports. I've edited the answers to include the "how to" to override the restrictions. – Lester T. Nov 15 '16 at 5:56
  • Yeah. It is restricted port. Didn't check that. – Dheeraj Joshi Nov 15 '16 at 7:54
5

If none of these solutions work for you, like they didn't work for me, you could try to change value network.proxy.allow_hijacking_localhost to true (using firefox v 67.0.1 64-bit). Open new tab, type about:config in address bar, then type network.proxy.allow_hijacking_localhost and double click it to change it's defaut value to true.

3

Try adding a '.' after "localhost". This should solve your problem.

eg.

http://localhost.:8080/WebGoat/ This will force the localhost to use the same proxy settings as one would with an internet connection/adapter

  • Yeah, it worked. But, did not at first. After I removed Firefox and Burpsuite installations completely and install them again, dot solution coming after localhost domain name in url address bar worked. – Hasan Jun 19 at 14:44
1

You can solve this problem very simply.

Firefox -> options -> network proxy ->
select on manual proxy configuration -> 
set the config shown in the image -> 
then clear the text area called "No proxy for" -> save

enter image description here

  • 2
    This does not address the port number issue. You do not explain how clearing this field helps. What was in there before? – schroeder May 25 '18 at 16:20
  • 2
    The comments under the accepted answer explain what the problem was, and it wasn't this ... – schroeder May 25 '18 at 16:21
1

Changing the firefox setting network.proxy.allow_hijacking_localhost to true solved it for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.