Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have the need to use SonicVPN Client to connect to my company's VPN. Unfortunately there are no ways to connect directly from Ubuntu. So I tried to set up a minimal Windows XP Virtual Machine in VirtualBox to run the SonicVPN Client on. All traffic that matches a specific network should be routed into that vbox. I have configured two network adapters. One Bridged and one Host-Only. The SonicVPN connection is shared over the Host-Only Adapter with "Windows internet sharing" (or so..).

Unfortunately I do not have a clue how to route the traffic correctly from Ubuntu.

I would be very happy, if someone had a tip for me.

share|improve this question
Ubuntu's networking gui tool does have some features for VPN configuration. Have you toyed around with that a lot. Perhaps SonicWall uses typical VPN stuff? –  Doc Sep 27 '11 at 22:02
Unfortunately this SonicWall does not use typical VPN stuff. That's why I have to go this way. Though you could configure it to be compatible with normal ipsec, my company configured it a way that makes me go mad. :) –  Arthur Andersen Sep 28 '11 at 8:46
There's always the "find another job" option. Actually, my solution to this kind of annoyance is to open a reverse ssh tunnel (from work) that I can connect to from where ever. Then through that I can coordinate getting access to other things. Hacky, but worky. –  Doc Sep 28 '11 at 20:50

1 Answer 1

up vote 2 down vote accepted

I finally found the way to do it. I'll describe my solution step by step.

  1. Configure a Windows XP VBox with two Network Interfaces (one Bridged, one Host-Only)
  2. Install the Sonicwall VPN Client software
  3. Click on the newly created "SonicWALL VPN Connection" in your System configurations Network Connections Overview and choose Properties. On The 'Advanced' Tab enable 'Allow network users to connect through this computer's Internet connection' and use the Host-Only Adapter for 'Home network connection'
  4. The TCP/IP settings for the host-only adapter should change to something like If not, configure this manually.
  5. In your Ubuntu system, configure the Host-Only vboxnet to use a static IP The should be "pingable" from within your Ubuntu host.
  6. Now set up the routes: sudo route add -net gw netmask dev vboxnet7 (where vboxnet7 is my Host-Only Adapter)
  7. Reconnect the SonicWALL VPN Client

Now you should be able to access the VPNs machines.

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.