from twisted.web import proxy, http
from twisted.internet import reactor
from twisted.python import log
import sys
log.startLogging(sys.stdout)
class ProxyFactory(http.HTTPFactory):
protocol = proxy.Proxy
reactor.listenTCP(8080, ProxyFactory())
reactor.run()In order to be able to help you with this issue, I'd like to ask a few questions:
- What OS is running on your laptop?
- Are you setting http_proxy variable using the correct port (8080) and VM's IP address?
- Try to telnet to the proxy server and see if you are able to connect to it using this protocol: telnet <VM's static IP> 8080
- What is the output of wget on debug mode ( wget -d icanhazip.com )
- Make sure that your Internet provider or remote firewall is not blocking outgoing traffic to port 8080. You may configure your proxy on a different port and test this.
Please note that allowing access to your proxy server, which is not protected by password, to all IP addresses (0.0.0.0/0) can let anybody connect to it and use your proxy. This may not only impact the security of your VMs, but also it’ll affect your network traffic billing.
Sincerely,
In order to be able to help you, I'd like to ask a few questions: