diff options
-rw-r--r-- | README.rst | 5 | ||||
-rw-r--r-- | docs/transparent.rst | 4 |
2 files changed, 5 insertions, 4 deletions
@@ -58,13 +58,14 @@ virtualenv_ installed (you can find installation instructions for virtualenv .. code-block:: text + sudo apt-get install python3-pip python3-dev libffi-dev libssl-dev libtiff5-dev libjpeg8-dev zlib1g-dev libwebp-dev git clone https://github.com/mitmproxy/mitmproxy.git cd mitmproxy ./dev.sh # powershell .\dev.ps1 on Windows The *dev* script will create a virtualenv environment in a directory called -"venv", and install all mandatory and optional dependencies into it. The +"venv3.5", and install all mandatory and optional dependencies into it. The primary mitmproxy components - mitmproxy and pathod - are installed as "editable", so any changes to the source in the repository will be reflected live in the virtualenv. @@ -74,7 +75,7 @@ mitmproxy test suite: .. code-block:: text - . venv/bin/activate # venv\Scripts\activate on Windows + . venv3.5/bin/activate # venv\Scripts\activate on Windows py.test Note that the main executables for the project - ``mitmdump``, ``mitmproxy``, diff --git a/docs/transparent.rst b/docs/transparent.rst index 71b48595..8befbac5 100644 --- a/docs/transparent.rst +++ b/docs/transparent.rst @@ -27,7 +27,7 @@ Fully transparent mode By default mitmproxy will use its own local ip address for its server-side connections. In case this isn't desired, the --spoof-source-address argument can be used to use the client's ip address for server-side connections. The following config is -required for this mode to work: +required for this mode to work:: CLIENT_NET=192.168.1.0/24 TABLE_ID=100 @@ -42,7 +42,7 @@ required for this mode to work: This mode does require root privileges though. There's a wrapper in the examples directory called 'mitmproxy_shim.c', which will enable you to use this mode with dropped priviliges. -It can be used as follows: +It can be used as follows:: gcc examples/mitmproxy_shim.c -o mitmproxy_shim -lcap sudo chown root:root mitmproxy_shim |