# Couldn't use mitmproxy for download file

**URL:** <https://discourse.mitmproxy.org/t/couldnt-use-mitmproxy-for-download-file/1082>\
**Category:** help\
**Created:** [June 2, 2018, 4:41am UTC](https://discourse.mitmproxy.org/t/couldnt-use-mitmproxy-for-download-file/1082 "2018-06-02T04:41:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fourirakbar](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@fourirakbar](https://discourse.mitmproxy.org/u/fourirakbar)\
**Post date:** [June 2, 2018, 4:41am UTC](https://discourse.mitmproxy.org/t/couldnt-use-mitmproxy-for-download-file/1082/1 "2018-06-02T04:41:41Z")

</div>

Mitmproxy : 3.0.4  
Python : 3.5.2  
OpenSSL : OpenSSL 1.1.0h  
Platform : Linux-4.10.0-38-generic-x86\_64-with-LinuxMint-18.3-sylvia

I am running mitmproxy in docker as transparent mode, and use iptables to redirect traffic to its port. In docker, I use `--net host`.

Syntax that I’m use to run mitmproxy is:  
mitmdump --anticache --anticomp -v --mode transparent --showhost --set client\_certs=~/.mitmproxy -w output\_file -p 49153

Than my iptables:

> iptables -t nat -I PREROUTING 1 -s 10.151.36.32 -p tcp --dport 80 -j REDIRECT --to-ports 49153  
> iptables -t nat -I PREROUTING 1 -s 10.151.36.32 -p tcp --dport 443 -j REDIRECT --to-ports 49153

My client IP is `10.151.36.32`. Client can open HTTP or HTTPS website. Client also can check speed using [speedtest](http://www.speedtest.net/). But why client can’t download file?

I try `wget http://www.openss7.org/repos/tarballs/strx25-0.9.2.1.tar.bz2`, but nothing. When I try didn’t use mitmproxy, client can download it.

Is there any mistake that I do?  
Thankyou
