1. Windows Mobile 5, AutoBind and Transparent Local Proxies
2. AutoBind and Transparent Local Proxies
Folks, We're trying to develop an application for Windows Mobile 5 that uses an LSP to redirect connections (particularly those from IE) to a local proxy, which munges the traffic in various ways and sends it out over the network. There's a corresponding proxy on the Internet that un-munges the data and passes it along to the content server as if we were never there. This approach seems to work fine on earlier Windows Mobile platforms (e.g., Pocket PC 2003), but we're running into trouble with Windows Mobile 5. It seems that our connections to the local proxy aren't getting through: we either get a host unreachable error or a timeout, depending on the network configuration. Having done a bit of digging, we suspect that this might be caused by the new AutoBind LSP that ships with WM5. It appears that this LSP, working in conjunction with the Connection Manager and IE, is automatically binding IE's sockets to a particular interface corresponding to a "real" network connection. That is, when IE calls bind, the socket gets bound to a real IP address, like 169.x.y.z (for ActiveSync) or 10.191.0.4 (for an Ethernet connection on our LAN). Thus, when we try to connect to 127.0.0.1, the real network interface to which the socket is bound doesn't know what to do--hence the timeouts and errors. When we use a test program, which doesn't use the Connection Manager, our sockets don't get bound to a particular interface when we call bind()--the address returned by getsockname() is 0.0.0.0--and connections are redirected to the local proxy without difficulty. Can anyone confirm our analysis of what's going on? More importantly, is there any reasonable way to make an application like ours work on WM5? Assuming we're not grossly misunderstanding what's happening, the AutoBind functionality would seem to make redirecting connections to a local proxy difficult for anyone.
3. Transparent proxy with DD-WRT
How can I configure my router to route traffic from LAN to the Internet through a SOCKS5 proxy? Any link to further documentation on that would be helpful, too. Thanks, Tobi
5. Transparent proxy configuration problem.