LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-05-2012, 02:53 PM   #1
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Question Sonicwall VPN tunnel established but won't route


I have a VPN setup using a Sonicwall and it works great when connecting from a Windows based PC, such as when at work, using their client. The rest of the time, I would really like to be able to use the VPN from Linux.

Using Ubuntu as the base PC and Openswan, I have partial success in that I am able to establish a tunnel, using the various how-to documents that I have been pouring over. The configuration and is pretty standard, but I had to include things like ipv4_forwarding on and disable redirects, etc. The tunnel indicates that it is established on both ends, including the Firewall status on Sonicwall administration screen. Furthermore, ipsec --verify indicates all is well as there are no warnings or errors. The trick here was DH group 5, no PFS, aggressive mode, etc... all as the how to docs show. But ....

The problem that I am facing is that traffic won't route through the tunnel. I am not seeing a virtual adapter, e.g. ipsec0, nor am I seeing any additional entries in the routing table. From the research I have done, I understand that this is typical of the switch to NETKEY from KLIPS, which did establish a tunnel. From what I understand, the routing is done at the netfilter level in the kernel instead of at the virtual interface layer.

In this particular case, I am using a cell phone modem rather than the typical wired ethernet port. This means by default adapter is ppp0. I am looking at several options to get past this point and I was wondering if anyone has any suggestions, ideas, or comments on these approaches or better yet, some information on how they got it working?

I am looking at the following:
1 - this may be the easiest approach (I saw this today and haven't had a chance to try it yet): it looks like in ipsec.conf you can specify interfaces=”ipsec0=eth0” in the config setup or even interfaces=%defaultroute. In this case, the ppp0 device is the default route.
2 - There is another tool that can be used in conjunction, xlt2pd, layer 2 protocol daemon. It seems that a lot of people have used this tool to "ping pong" between Netkey and the PPP device when connecting with phones.
3 - I spent quite a bit of time trying to compile a custom kernel with KLIPS support. I found some additional instructions on it. One critical pieces is that you can't have both Klips and Netkey installed. Ultimately I was able to build the kernel with Netkey removed and run Ubuntu on it. Unfortunately, try as hard as I might, I couldn't get the kernel modules from the openswan to compile and kept running into error after error.
4 - I noticed that the openswan download page has Ubuntu binaries, including what appear to be Ubuntu Images supposedly with KLIPS patched and built in.

Can anyone either shed some light on what I a missing and / or give me a shove in the right direction?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN route issues, all traffic through VPN tunnel stuartornum Linux - Server 4 03-05-2007 03:07 AM
Can I Route Specific Addresses Through an IPSec VPN Tunnel? strick1226 Linux - Networking 3 12-15-2005 08:30 AM
2.6: ping on established(!) VPN tunnel doesn't! sundialsvcs Linux - Networking 1 12-09-2005 05:09 PM
VPN through sonicwall firewall envirodug Linux - Networking 4 06-17-2005 11:43 AM
Sonicwall and Linux VPN Client shane_kelly55 Linux - Networking 1 06-17-2005 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration