proxy_helper icon indicating copy to clipboard operation
proxy_helper copied to clipboard

Failed to configured proxy: HTTP Error

Open deciacco opened this issue 3 years ago • 5 comments

when I click on "stopped" to enable the proxy it fails. this is on a pineapple Nano, 2.7.0. thank you.

image

deciacco avatar Jan 03 '22 19:01 deciacco

Do you have a proxy server running on your local machine?

Rhys-Woolcott avatar Jan 04 '22 16:01 Rhys-Woolcott

Yes... I have Burp running listening on 172.16.42.42:8080 in invisible mode.

deciacco avatar Jan 04 '22 22:01 deciacco

Try listening on a different IP, like 172.16.42.69:8080. Also, make sure you have the IP inserted correctly onto the panel.

Rhys-Woolcott avatar Jan 04 '22 23:01 Rhys-Woolcott

Sorta figured it out... somewhere in this code, there is a PHP error causing the internal 500 error. I commented all this out (removed the validation) and the proxy starts and traffic is properly received by my proxy server.

        // Validate the IP address
        if (!filter_var($this->request->dIP, FILTER_VALIDATE_IP)) {
            $this->response = array('success' => false,
                                  'call' => 'createProxyRules()',
                                  'error' => 'The IP address is invalid');
            return;
        }

        // Validate the port number
        if (!filter_var($this->request->dPort, FILTER_VALIDATE_INT)) {
            $this->response = array('success' => false,
                                  'call' => 'createProxyRules()',
                                  'error' => 'The port is invalid (not an integer)');
            return;
        }

        // Validate the port range
        if (intval($this->request->dPort) <= 0 || intval($this->request->dPort) > 65535) {
            $this->response = array('success' => false,
                                  'call' => 'createProxyRules()',
                                  'error' => 'The port is invalid (invalid range)');
            return;
        }

deciacco avatar Jan 04 '22 23:01 deciacco

I am also experiencing this issue on pineapple nano. I can confirm commenting out the section of code deciacco mentioned solved the issue.

ebaygan avatar Nov 08 '22 22:11 ebaygan