Page 1 of 1

Set up a VB Ubuntu Proxy between two VB Ubuntu

Posted: 5. May 2019, 15:45
by ata1704
Hi. I try to get a project done for school.
My teacher wants me to get HTP2 traffic visible. The hard thing is to get traffic decrypted. So that's what my problem is right now...
And if I write "with ssl", I call the website with htps (cannot write it with double t, because I'm not allowed to post websites...)
VB1 is the Client(192.168.2.100), VB2 is the Proxy(192.168.2.101) and VB3 is the Server(192.168.2.102). Gateway is 192.168.2.1.
I installed Apache,... on VB3 and also got SSL working. So for example I can access the info-page 192.168.2.101/info.php (with SSL) from all VBs.
I installed mitmproxy von VB2 and configured it as described on mitmproxy website (transparend mode).
I also got the Client to use the certificate of mitmproxy and trust it. I also include the pem file in the firefox pem library.
Now I change the Gateway of the Client to the IP of the proxy (192.168.2.101) in the system settings of ubuntu.
But nothing is happening in my proxy. Mitmproxy is not showing any traffic. But I can still open 192.168.2.101/info.php (with SSL) using the Client.
Could it be, that Virtualbox somehow managed to still use the other Gateway (192.168.2.1)?

I also tried bridge mode and set up manual IPv4 settings in Ubuntu (Client) and change the gateway to the new IP of the proxy. This way I can also view facebook/google,... but with the same problem, that the proxy is not showing any traffic.