Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

Sometimes I work in place where I have free wifi, but it requires proxy - and it work only for http(s). In my work I need ssh sometimes. I bought a G4 card, but it has transfer limit so I would like to use G4 only for ssh, and in browser use proxy only. How to configure it properly on ubuntu?

share|improve this question

You should aim for a customized routing table. The way you describe your problem, you want the following:

  • A route to the proxy which uses the WiFi interface
  • A route to your ssh server which uses the G4 card
  • A default route on either device, or none at all, as you are not expecting any connections to hosts other than these two, right?

I must confess I'm not much of a GUI user in things like these. I know you could set up the routing table like this using the rourte command line tool. You'd basically add a route to the specific target through the default gateway of the device in question. You could even write a script to automate the process, once you've worked out the commands to use.

I guess there are ways to achieve similar effects using the Ubuntu graphical user interface tools. Someone else might know that detail. Answers to questions bearing the routing tag might also provide useful information on that, although I haven't found a GUI tutorial on custom routes at my first glance.

share|improve this answer

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.