This is a migrated thread and some comments may be shown as answers.

Avoiding IP change when connected via EC2

6 Answers 137 Views
Windows
This is a migrated thread and some comments may be shown as answers.
Eyal
Top achievements
Rank 1
Eyal asked on 23 Oct 2014, 01:11 PM
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.

6 Answers, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 24 Oct 2014, 02:01 PM
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.

 
0
Eyal
Top achievements
Rank 1
answered on 26 Oct 2014, 08:54 AM
Thanks, problem solved after adding this rule.
0
Eyal
Top achievements
Rank 1
answered on 26 Oct 2014, 08:54 AM
Thanks, problem solved after adding this rule.
0
Alexandr
Top achievements
Rank 1
answered on 01 Feb 2019, 06:38 AM
[quote]Eric Lawrence said:

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

[/quote]

I got this error: [Fiddler] DNS Lookup for Proxy - protocol://ip:port  - failed.

Http proxy works good if it was installed manually and socks proxy don't work anywhere.

Fiddler version: v5.0.20182.28034 for .NET 4.6.1 

0
jam
Top achievements
Rank 1
answered on 20 Sep 2019, 06:19 PM
I have same problem. Please help me!
0
Eric R | Senior Technical Support Engineer
Telerik team
answered on 24 Sep 2019, 09:00 PM

Hi Alexandr and Jam,

This is difficult to troubleshoot with the provided information. In order to understand this better, can you provide the following information?

1. The configuration of the Fiddler Gateway.

2. The output of the Fiddler Log tab.

3. Any other information that you think will aide in troubleshooting.

Once I have this information, I will try to provide a better response.

Please let me know if you need any additional information. Thank you.

Regards,


Eric R | Technical Support Engineer
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Windows
Asked by
Eyal
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
Eyal
Top achievements
Rank 1
Alexandr
Top achievements
Rank 1
jam
Top achievements
Rank 1
Eric R | Senior Technical Support Engineer
Telerik team
Share this question
or