diff --git a/README.md b/README.md index 7f2c417..f16ab45 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,42 @@ # mitmrouter Bash script to automate setup of Linux router useful for IoT device traffic analysis and SSL mitm -![Arch](./img/arch.jpg) +```mermaid +flowchart LR + iot1["Wifi IoT Device"]:::iotDevice + iot2["Wired IoT Device"]:::iotDevice + wifi["Wi-Fi Interface(hostapd)"] + eth["Ethernet Interface"] + br0["br0"] + dnsmasq["dnsmasq(dhcp server)"] + iptables["iptables rules"] + mitm["mitmproxy(ssl proxy tool)"] + wan["wan"] + ethif["Ethernet Interface"] + + subgraph Linux_Router[MITM Router] + style Linux_Router fill:#005500 + br0 + dnsmasq + iptables + mitm:::mitm + wan + end + + iot1 <--> wifi + iot2 <--> eth + wifi <---> br0 + eth <---> br0 + br0 <---> dnsmasq + br0 <--> iptables + iptables <--> wan + iptables --> mitm + wan <--> ethif + + classDef iotDevice fill:#9999ff + classDef mitm fill:#ffdddd,color:#000 +``` + ## Dependancies