Problem Description
Internet stops working when running mitmweb in local mode. Can't even curl google.com
Steps to reproduce the behavior:
- run
mitmweb --mode local
At first mitmweb prints no interesting logs but after some program tries to estabilish a connection this happens:
[11:01:25.361][169.254.0.1:46247] server connect 8.8.8.8:53
[11:01:25.364][169.254.0.1:40176] client connect
[11:01:25.365][169.254.0.1:51778] server connect 8.8.8.8:53
[11:01:25.368][169.254.0.1:48428] client connect
[11:01:25.376][169.254.0.1:40176] server connect 8.8.8.8:53
[11:01:25.378][169.254.0.1:48428] server connect 8.8.8.8:53
mitmwebs spams the log with these messages, looks like it redirects DNS requests to itself (?). It also eventually reaches open file limit.
Log after pressing Ctrl+C:
...
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
DEBUG:smoltcp.iface.interface:failed to transmit IP: device exhausted
INFO:mitmproxy.proxy.server:server disconnect 8.8.8.8:53
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
INFO:mitmproxy.proxy.server:server disconnect 8.8.4.4:53
DEBUG:smoltcp.iface.interface:failed to transmit IP: device exhausted
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
INFO:mitmproxy.proxy.server:server disconnect 8.8.8.8:53
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
DEBUG:smoltcp.iface.interface:failed to transmit IP: device exhausted
INFO:mitmproxy.proxy.server:server disconnect 8.8.8.8:53
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
INFO:mitmproxy.proxy.server:server disconnect 8.8.8.8:53
DEBUG:smoltcp.iface.interface:failed to transmit IP: device exhausted
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
INFO:mitmproxy.proxy.server:server disconnect 8.8.8.8:53
DEBUG:smoltcp.iface.interface:failed to transmit IP: device exhausted
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
INFO:mitmproxy.proxy.server:server disconnect 8.8.8.8:53
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
DEBUG:smoltcp.iface.interface:failed to transmit IP: device exhausted
INFO:mitmproxy.proxy.server:server disconnect 8.8.8.8:53
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
INFO:mitmproxy.proxy.server:server disconnect 8.8.8.8:53
DEBUG:smoltcp.iface.interface:failed to transmit IP: device exhausted
INFO:mitmproxy.proxy.server:server disconnect 8.8.8.8:53
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
DEBUG:smoltcp.iface.interface:failed to transmit IP: device exhausted
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
INFO:mitmproxy.proxy.server:server disconnect 8.8.8.8:53
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
DEBUG:smoltcp.iface.interface:failed to transmit IP: device exhausted
INFO:mitmproxy.proxy.server:server disconnect 8.8.8.8:53
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
INFO:mitmproxy.proxy.server:server disconnect 8.8.4.4:53
DEBUG:smoltcp.iface.interface:failed to transmit IP: device exhausted
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
INFO:mitmproxy.proxy.server:server disconnect 8.8.8.8:53
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
DEBUG:smoltcp.iface.interface:failed to transmit IP: device exhausted
INFO:mitmproxy.proxy.server:server disconnect 8.8.4.4:53
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
DEBUG:smoltcp.iface.interface:failed to transmit IP: device exhausted
INFO:mitmproxy.proxy.server:server disconnect 8.8.8.8:53
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
DEBUG:smoltcp.iface.interface:failed to transmit IP: device exhausted
INFO:mitmproxy.proxy.server:server disconnect 8.8.8.8:53
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
INFO:mitmproxy.proxy.server:server disconnect 8.8.8.8:53
DEBUG:smoltcp.iface.interface:failed to transmit IP: device exhausted
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
INFO:mitmproxy.proxy.server:server disconnect 8.8.8.8:53
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
DEBUG:smoltcp.iface.interface:failed to transmit IP: device exhausted
INFO:mitmproxy.proxy.server:server disconnect 8.8.8.8:53
DEBUG:mitmproxy_rs.udp_client:UDP client task shutting down.
DEBUG:smoltcp.iface.interface:failed to transmit IP: device exhausted
DEBUG:smoltcp.iface.interface:failed to transmit IP: device exhausted
...
Error messages when reaching open file limit:
[11:11:22.581][169.254.0.1:50476] error establishing server connection: [Errno 24] Too many open files
[11:11:22.583][169.254.0.1:50476] client disconnect
[11:11:24.146][169.254.0.1:50480] client connect
[11:11:24.148][169.254.0.1:50480] error establishing server connection: [Errno 24] Too many open files
System Information
mitmproxy --version
Mitmproxy: 12.1.1
Python: 3.12.10
OpenSSL: OpenSSL 3.4.1 11 Feb 2025
Platform: Linŭ-6.12.31-x86_64-with-glibc2.40
mitmweb --version
Mitmproxy: 12.1.1
Python: 3.12.10
OpenSSL: OpenSSL 3.4.1 11 Feb 2025
Platform: Linŭ-6.12.31-x86_64-with-glibc2.40
Checklist
Problem Description
Internet stops working when running mitmweb in local mode. Can't even curl google.com
Steps to reproduce the behavior:
mitmweb --mode localAt first mitmweb prints no interesting logs but after some program tries to estabilish a connection this happens:
mitmwebs spams the log with these messages, looks like it redirects DNS requests to itself (?). It also eventually reaches open file limit.
Log after pressing Ctrl+C:
Error messages when reaching open file limit:
System Information
Checklist