Rencently I want to use Fiddler to capture the HTTPs traffic from my IoT device to the device cloud. I have an openWRT router and my network topology is like the following.
The problem comes: The IoT Device cannot be accessed, and we cannot set up http proxy on the device. Can we do something on openWRT such that we can set proxy in the router level, instead of the device level? MY FAILED TRY : I have searched for two days, and I found the transparent proxy configuration on openwrt-tinyproxy. I tried like the following.
Yes that is what I want to do. I want to replace the certificates in hub. But the first thing I want to make sure is that Fiddler on my PC can capture the encrypted traffic, and this is my question: How to?
Actually it can be only one router but dependent from your PC features.
For example on mine Mac i can run with only one because Mac can become router with Ethernet to Wifi. And there i use "Charles" that is doing similar as Fiddler.
On Windows you can use Internet Connection Sharing and your PC to become router too.
Because it's extremely important to catch and log everything that IoT do on the internet.
you don't need to find an old hub as most openwrt routers have options in the switch config
to Enable mirroring of incoming & outgoing packets directed to another port
Thanks for your kind advice! According to your suggestion, I think I can
Wire my PC and my IoT device using ethernet first.
Connect my PC to my router through WiFi.
Since on PC, Fiddler proxy has been running on localhost:8888, what I only need to do is to redirect the network traffic from the ethernet to port 8888.
configure a port forwarding to first send device traffic to the Fiddler.
Set NAT rules to further forward Fiddler traffic to the router.
But somehow when I finished configuring them on openWRT, I cannot see any traffic on Fiddler, which I kept monitoring. It seems like that all packets are directly flowed to the router, instead of the PC running Fiddler.
the mirroring of incoming & outgoing is instead of using an old hub
I use it to capture the conversation between 2 devices for debugging
I use wire shark to capture and filter the conversation
I think you are more wanting man in the middle rather then just spying
Peter I just tried Network Connection Sharing and it works. Windows automaticlly allocated an ip to the IoT device, and my IoT device can access to network normally.
But it seems that I need to figure out how to redirect the ethernet traffic to my Fiddler's port, which is 8888. Otherwise Fiddler cannot intercept and capture the traffic from IoT device.