I've searched before and came on some solutions like (this, this, this and this). I've an application (Java based) which I must force it to use a proxy (because its online service is censored in my network). I reach the site online using Tor or Freegate which both are run locally on my laptop. I've to use one of these at (127.0.0.1:8580 HTTPs) or (127.0.0.1:9150 Socks). Additionally I don't have a separate server, or connected computer to redirect my outgoing TCP or UDP to that computer. I want this network: Application->Tor->Internet.
According to recommendations above, I can use a transparent proxy such as proxifier. I setup Tor/freegate proxy in my proxifier and setup a rule to allow Tor/FreeGate to connect the internet directly and redirect all other traffics to use my proxy but I get this error in proxifier:
[12.29 17:47:57] javaw.exe *64 - [::ffff:46.4.84.169]:443 (IPv6) error : Could not connect to proxy 127.0.0.1:9150 - connection attempt failed with error 10061
[12.29 18:22:41] javaw.exe *64 - [::ffff:127.0.0.1]:8580 (IPv6) error : Could not connect through proxy 127.0.0.1:8580 - Proxy server cannot establish a connection with the target, status code 400
Do you have any offer? Is it possible to solve this problem with using another transparent proxy program such as CCProxy or WinGate, ....?
p.s. Another solution might be Squid but since I'm not familiar with it and I'm running on Windows 7/x64 do you offer to go after squid 4 windows? can squid offer different or better mechanism than Proxifier?
more description of my failed solution as @barlop asked: I use Proxifier as an transparent proxy. since my desired proxy is locally set up (localhost:9150 or 8550) it's not possible to easily direct all connection to the desired proxy in Proxifier it is kind of recursive since Tor needs a direct access to internet so I add a rule to except my proxy program (Tor or FreeGate) to use internet directly but all other application should redirect their traffic using Proxifier. However I'm not sure about the role of "localhost" in the rule set showed in the uploaded picture to me it's kind of contradiction but with both of them I couldn't connect my application to use the proxy.
here are the image of Rules and Proxies has been set in Proxifier: