# Transparent mode misconfiguration

**URL:** <https://discourse.mitmproxy.org/t/transparent-mode-misconfiguration/1304>\
**Category:** Uncategorized\
**Created:** [October 26, 2018, 7:04pm UTC](https://discourse.mitmproxy.org/t/transparent-mode-misconfiguration/1304 "2018-10-26T19:04:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barium](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@Barium](https://discourse.mitmproxy.org/u/Barium)\
**Post date:** [October 26, 2018, 7:04pm UTC](https://discourse.mitmproxy.org/t/transparent-mode-misconfiguration/1304/1 "2018-10-26T19:04:34Z")

</div>

MITMproxy has been setup in transparent mode on Ubuntu 18.04 LTS box. Went through and performed the sysctl changes and NAT changes recommended. All seems normal as no error messages were returned by Linux.

MITMProxy was launched with the command: sudo mitmproxy -T --host -e

The app window opens and all seem ready to rock and roll. The mobile device is set up to reach the internet via the laptop running MITMproxy. The mobile device WiFi connection completes at which point I open the Chrome browser to visit ‘mitm.it’ on the mobile device and almost immediately start seeing a series of messages on the proxy:  
192.168.27.34:40775:clientconnect  
192.168.27.34:40775:Unexpecte CONNECT request  
192.168.27.34:40775:clientdisconnect  
192.168.27.34:40775:HTTP Protocol error in client request: Mitmproxy received an absolute-form request  
even though it is not running in regular mode. This usually represents a misconfiguration.

I have gone back through the procedure multiple times now provided in the DOC found at  
[https://docs.mitmproxy.org/stable/howto-transparent/](https://docs.mitmproxy.org/stable/howto-transparent/)

The Chrome browser on the mobile device displays, “HttpException('Mitmproxy received an blah, blah, blah)” message which it dutifully displays with a 400 Bad Request error message.

Being a noobie I suspect it is something simple. Any guidance is appreciated.

Barry

---

<div class="post-metadata">

**Author:** ![Barium](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@Barium](https://discourse.mitmproxy.org/u/Barium)\
**Post date:** [October 29, 2018, 2:32pm UTC](https://discourse.mitmproxy.org/t/transparent-mode-misconfiguration/1304/2 "2018-10-29T14:32:15Z")

</div>

PIP3 Installed version 2 of MITMproxy. Removed version 2 and then downloaded Version 4. Placed version 4 in new directory and ran using command line ./mitmproxy
