* David Woodhouse [06.12.2011 20:20]: > On Tue, 2011-12-06 at 18:34 +0100, Adam Pi?tyszek wrote: >> I tried to tcpdump the connection process of the official cient, but >> my experience with http protocol is too limited to debug this... > > Use mitmproxy: http://mitmproxy.org/ > > Edit /etc/hosts on your VPN client host, so that it has the address of > the machine on which you run mitmproxy, for the VPN server's hostname. > > Then when you connect it'll actually connect to mitmproxy, and mitmproxy > will see the Host: header in the request and pass the traffic on to the > real VPN server. Can I do this using one host (my laptop)? I am trying to run mitmproxy on 443 port, but when I set 127.0.0.1 in /etc/hosts to the name of the VPN server, it just can't connect. I also see nothing in mitmproxy window. Thanks in advance for you help, /Adam