Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down