Avoiding IP change when connected via EC2

4 posts, 0 answers
  1. Eyal
    Eyal avatar
    3 posts
    Member since:
    Oct 2014

    Posted 23 Oct 2014 Link to this post

    hi,

    I'm using ec2 instance (with putty), connected to US proxy.
    When I'm using fiddler, my IP is changing to local IP and I can't get the site content I want to monitor (which will be presented only for US proxy).

    When unchecking "act as system proxy on startup" in connection settings, fiddler doesn't monitor anything, also I can't change my browsers LAN settings as putty connection won't work.

    I need a solution in order to monitor all HTTP traffic without loosing my IP (given by ec2 instance proxy).
    Thanks in advance,
    Eyal.
  2. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 24 Oct 2014 Link to this post

    Hi, Eyal-- It's not entirely clear what you're asking.

    I think you're suggesting that you have a proxy server running in the cloud somewhere, and you want Fiddler to chain to that proxy. Is that correct?

    By default, Fiddler will adopt the system's existing proxy settings when it starts. So, if your "cloud proxy" is configured as the system proxy when Fiddler starts, everything will work automatically. If you need to manually configure the proxy settings in Fiddler, choose Tools > Fiddler Options > Gateway.

    Now, you mentioned PUTTY, which leads me to guess that maybe you've configured your system such that applications use a SOCKS proxy connection to talk over SSH to the cloud server? If that's the case, the procedure is slightly different, because SOCKS proxies behave differently than normal proxies.

    In Fiddler, choose Rules > Customize Rules. Scroll to OnBeforeRequest. Inside the function, add the following lines:

        oSession["X-OverrideGateway"] = "socks=127.0.0.1:9150";
        oSession["ui-backcolor"] = "#EFEF9F";

    ... where the socks= string points to whatever host/ip and port that your SOCKS listener is running on.

    Regards,

    Eric Lawrence
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Eyal
    Eyal avatar
    3 posts
    Member since:
    Oct 2014

    Posted 26 Oct 2014 in reply to Eric Lawrence Link to this post

    Thanks, problem solved after adding this rule.
  4. Eyal
    Eyal avatar
    3 posts
    Member since:
    Oct 2014

    Posted 26 Oct 2014 in reply to Eric Lawrence Link to this post

    Thanks, problem solved after adding this rule.
Back to Top