Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sorry for the long question, but the situation/desire is quite complex. Here is my setup: I have a laptop which I carry around everywhere and I have a desktop sitting at home, connected to the internet through a router using NAT.

My objective is to create a connection from my laptop to my desktop that can allow me to (in order of priority):

  1. Use the desktop as a proxy server
  2. Access files on the desktop remotely
  3. Control said desktop from the laptop using VNC or similar.

Now here is the scene. I have already looked up and tried several ways to achieve the above goals.

  1. Teamviewer - I used it and didn't like it. This is not an option.
  2. SSH - This seems ideal, I have figured a way to use this for both proxy and file sharing. However, I am currently unable to connect it due to the NAT. I have a separate thread trying to get that to work here.
  3. VPN - I've figured out how to use this method for proxy, but not file sharing. However this faces the same problem as the above: I can't get it to connect through the NAT.

Does anyone have any other solutions for what I want? Otherwise, if there are solutions to connecting through the NAT, please tell me (in the other thread).


share|improve this question

You can configure using Squid proxy server and Dansguardian content filtering combination The following is the link and the steps

Dansguardian Content Filtering With Squid Transparent Proxy On Ubuntu Dansguardian Content Filtering With Squid Transparent Proxy On Ubuntu

sudo apt-get install squid3 sudo nano /etc/squid3/squid.conf

(Search for http_port 3128 and add following ) http_port 3128 transparent

(Search for INSERT and add following )

acl localnet src

http_access allow localnet http_access allow localhost

sudo /etc/init.d/squid3 restart For squid in detail follow the below link dont follow the IPtable part from this link

share|improve this answer
I tried this. I couldn't manage to configure the squid server. – amol.kamath Oct 13 '12 at 10:03
try this link you can skip step 3 and step 4 from the link 1)… let me know where u get stuck – kam gos Oct 18 '12 at 5:55
Also this one haven't tried this but… – kam gos Oct 18 '12 at 5:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.