Transparent mode failure: FileNotFoundError(2, 'No such file or directory')
See original GitHub issueSteps to reproduce the problem:
- start ap and redirect tcp 80/443 stream to 8080
- pull and start mitmproxy for raspberrypi model 3
docker run -it --rm -p 8080:8080 mitmproxy/mitmproxy:4.0.3-ARMv7 mitmdump -m transparent -p 8080 -v
and it shows:
...
clientconnect
Transparent mode failure: FileNotFoundError(2, 'No such file or directory')
ProtocolException("Transparent mode failure: FileNotFoundError(2, 'No such file or directory')",)
clientdisconnect
...
System information
$ uname -a
Linux raspberrypi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv71 GNU/Linux
$ docker run --rm mitmproxy/mitmproxy:4.0.3-ARMv7 mitmproxy --version
Mitmproxy: 4.0.3
Python: 3.6.3
OpenSSL: OpenSSL 1.0.2o 27 Mar 2018
Platform: Linux-4.14.34-v7+-armv71-with
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
python - Crash Mitmproxy when turn on mode transparent
I was learning about mitmproxy and trying to run it, I realized that when I ran the following command (admin rights): mitmdump --mode...
Read more >Python FileNotFoundError: [Errno 2] No such file or directory ...
Any message with the contents FileNotFoundError indicates that Python cannot find the file you are referencing. Python raises this error because your program ......
Read more >Difficulty with ipv6 addresses in transparent proxy - mitmproxy
Because I have the transparent proxy on my own computer rather than a ... mode failure: FileNotFoundError(2, 'No such file or directory').
Read more >【Mitmproxy】Mac + Python + mitmproxy透明代理配置,拦截 ...
Fire up mitmproxy. mitmdump --mode transparent -s mitmHandler.py # 7. ... failure: filenotfounderror(2, 'no such file or directory').
Read more >issues with transparent proxy on osx - Google Groups
Without the mitmproxy, I can receive my test ads without any issues. ... 192.168.2.12:33331: 502: Transparent mode failure: could not resolve original ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think
--network host
may actually work. 😃The error persists when I use a local Docker container though, so it is nothing k8s specific. I will continue searching, thanks for the hint @mhils ! If I find the solution I will document it here for others to find if this is ok. At least someone seems to have managed to get it working (though on an old k8s and docker version): https://github.com/danisla/kubernetes-tproxy