• caglararli@hotmail.com
  • 05386281520

mitmproxy with wireguard to log all network traffic on my machine (arch linux): SERVAIL Recursive question

Çağlar Arlı      -    1 Views

mitmproxy with wireguard to log all network traffic on my machine (arch linux): SERVAIL Recursive question

I would like to use mitm transparent mode with wireguard

So I tried this

mitmweb --mode wireguard                                                                                                0 (3.656s) < 19:02:30
[19:02:32.784] ------------------------------------------------------------
[Interface]
PrivateKey = 3EehrmHii+iVTKubcsUX0JTxUAWH+td4dxHPiQ3knKw=
Address = 10.0.0.1/32
DNS = 10.0.0.53

[Peer]
PublicKey = OgxYi/SqMutxOc5/0JH/KhaORA/TA1fpSfQupST0yxs=
AllowedIPs = 0.0.0.0/0
Endpoint = 192.168.1.215:51820

I tried then to turn on wireguard configuration given by mitmweb --mode wireguard cmd above:

wg-quick up ./mitmweb.conf
Warning: `/home/rosemaryoannah/mitmweb.conf' is world accessible
[#] ip link add mitmweb type wireguard
[#] wg setconf mitmweb /dev/fd/63
[#] ip -4 address add 10.0.0.1/32 dev mitmweb
[#] ip link set mtu 65456 up dev mitmweb
[#] resolvconf -a mitmweb -m 0 -x
[#] wg set mitmweb fwmark 51820
[#] ip -4 route add 0.0.0.0/0 dev mitmweb table 51820
[#] ip -4 rule add not fwmark 51820 table 51820
[#] ip -4 rule add table main suppress_prefixlength 0
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
[#] nft -f /dev/fd/63

But then when looking in http://127.0.0.1:8081/#/flows, it seems that everything ends with SERVFAIL Recursive question.

How can I do?