[ubuntu] noob question about squid. forward another proxy to access freedom Internet

view full story

http://ubuntuforums.org – I have tor running in my ubuntu. I want to make ubuntu like a proxy server but this proxy server must use tor proxy as source. let me explain: A: tor proxy: (SOCKS5) B: ubuntu (route tor proxy to phone as a proxy server) C: my Phone (wants to use tor proxy) I installed squid3 but it used direct internet. I wants to switch to C to access to Internet must use -> B and B to use freedom internet must to use -> A C -> B -> A (Hardware)