OpenSwan on DD-WRT v24 rc5

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page 1, 2  Next
Author Message
akutz
DD-WRT Novice


Joined: 30 Nov 2007
Posts: 3

PostPosted: Sun Dec 02, 2007 14:07    Post subject: OpenSwan on DD-WRT v24 rc5 Reply with quote
I really want a VPN solution that I can use my native Mac client with, but since OS X 10.5.1 does not support SSL VPNs, that means I have to use either PPTP or L2TP/IPSEC. For securit y purposes I chose the latter and decided on OpenSwan.

OpenSwan and L2TPD are both available from the OpenWRT ipk downloads repository. I installed them into the Mini build of DD-WRT. I then spent 2 days configuring the heck out of OpenSwan on a Linux VM in order to ensure that it worked it with my Mac using PSK and RSA sigs. Finally I built my firmware with the working config files:

Code:

Changing to directory '/etc/ipsec.d/aacerts'
Changing to directory '/etc/ipsec.d/ocspcerts'
Changing to directory '/etc/ipsec.d/crls'
  Warning: empty directory
| inserting event EVENT_LOG_DAILY, timeout in 76262 seconds
| next event EVENT_SHUNT_SCAN in 120 seconds

| *received whack message
Segmentation fault


I spared you the long log,but the end result was a seg fault. Either my router doesn't have enough RAM (16 RAM, 4 flash, both 100% full), or something just doesn't work. It isn't a misconfiguration, the config files are known to work. I am betting it is because my router's memory and flash are completely maxed out.

For the time being I will use PPTP until I install OpenSwan on a box behind my router. If anyone is able to get this to work, please let me know.

Hope this helps.
Sponsor
hryamzik
DD-WRT Novice


Joined: 05 Apr 2008
Posts: 5

PostPosted: Thu Apr 10, 2008 16:37    Post subject: Reply with quote
I've tried to install openswan and have had problems with free space and with ipkg witch often can't install packadges fom web but installs them after manual downloading. So.
Code:
I have a blank jffs
rm -r /jffs/*
really blank, u c. 700kb free space.
# !!! no ipkg update
mkdir /tmp/ports/ && cd /tmp/ports/
wget http://downloads.openwrt.org/whiterussian/packages/openswan_2.4.6-1_mipsel.ipk
wget http://downloads.openwrt.org/whiterussian/packages/ip_2.6.11-050330-1_mipsel.ipk
wget http://downloads.openwrt.org/whiterussian/packages/libgmp_4.1.4-1_mipsel.ipk
wget http://downloads.openwrt.org/whiterussian/packages/kmod-openswan_2.4.30brcm\+2.4.6-2_mipsel.ipk
#
ipkg -force-depends install openswan_2.4.6-1_mipsel.ipk ip_2.6.11-050330-1_mipsel.ipk libgmp_4.1.4-1_mipsel.ipk kmod-openswan_2.4.30brcm\+2.4.6-2_mipsel.ipk

 df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 1.9M      1.9M         0 100% /
/dev/mtdblock/4           1.0M    748.0k    276.0k  73% /jffs


Mmm. Now I'l go and try to configure it =)
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Sat Apr 19, 2008 20:38    Post subject: Reply with quote
is there no strongswan package. stronswan is activly developed by the universitiy of rappersweil and astaro afaik
_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
DigiGuru
DD-WRT Novice


Joined: 10 Sep 2008
Posts: 10

PostPosted: Mon Oct 06, 2008 16:45    Post subject: Reply with quote
When I've tried this, I get the following on my Asus WL-500w

Code:
/jffs/usr/sbin/ipsec: unknown IPsec command `auto' (`ipsec --help' for list)


I can get openswan installed on my linkstation, but that goes down every now and again and I'd like to have it all centralised on the router.

Oh and its not a space issue:

Code:

Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    4608      4608         0 100% /
/dev/root                 4608      4608         0 100% /
/dev/scsi/host0/bus0/target0/lun0/part1
                        118819     51912     60771  46% /jffs
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Tue Oct 07, 2008 16:49    Post subject: Reply with quote
btw there are 2 mac openvpn exsisting

http://www.google.de/search?q=openvpn+mac&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:de:official&client=firefox-a

_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
lukmei
DD-WRT Novice


Joined: 11 May 2009
Posts: 2

PostPosted: Tue May 12, 2009 8:59    Post subject: Anyone successful yet! Reply with quote
Hello!
Was anyone successful yet in getting a L2TP/IPSec-server to run on a WRT54G?
And more importantly, would this someone share his knowledge with me?
And to make it even worse: I am newbie, so a step to step instruction would be great and very much appreciated!
Thanks a lot in advance!
Abel408
DD-WRT User


Joined: 02 Jun 2009
Posts: 76

PostPosted: Tue Jun 23, 2009 19:39    Post subject: Reply with quote
It appears that openswan is impossible to install on dd-wrt. I can't think of any way to have a IPSec tunnel on dd-wrt. Openswan needs the ipsec.d directory in the etc directory which is on a non-writable file system.

DD-wrt should really look into some IPSec support. It is the only thing it is missing from an expensive router.
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Wed Jun 24, 2009 6:51    Post subject: Reply with quote
we will not add it

we have openvpn

_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
ubergeekin
DD-WRT Novice


Joined: 15 Aug 2007
Posts: 2

PostPosted: Sun Jun 28, 2009 4:10    Post subject: Reply with quote
That's really too bad, because there are plenty of devices out there that don't support PPTP, making it impossible to create an IPSec tunnel. It's forcing me to have to find another OS.
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Sun Jun 28, 2009 11:11    Post subject: Reply with quote
u dont read the topic, right? i wont repeat myself but there a openvpn clients for almost any platform
_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
ubergeekin
DD-WRT Novice


Joined: 15 Aug 2007
Posts: 2

PostPosted: Sat Jul 04, 2009 0:29    Post subject: Reply with quote
I need to create an IPsec endpoint, the other endpoint doesn't support SSL/TLS, so I have to find another OS. Openswan doesn't work in DD-WRT, http://www.dd-wrt.com/wiki/index.php/OpenSwan or at least the wiki doesn't even have a listing for how to correctly install the product, unless someone can point me to a good resource...
dummptyhummpty
DD-WRT Novice


Joined: 19 Sep 2007
Posts: 23

PostPosted: Mon Aug 03, 2009 7:54    Post subject: Reply with quote
Sash wrote:
u dont read the topic, right? i wont repeat myself but there a openvpn clients for almost any platform


Except the iPhone...I'm not sure why PPTP can't be replaced with IPSEC support.
SixFortySix
DD-WRT Novice


Joined: 20 Apr 2010
Posts: 10
Location: Kentucky

PostPosted: Tue Apr 20, 2010 18:09    Post subject: Reply with quote
Sash wrote:
u dont read the topic, right? i wont repeat myself but there a openvpn clients for almost any platform



What about a solution for Site to Site Connectivity?
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Sun Jun 06, 2010 15:03    Post subject: Reply with quote
well... I'm new here, and I've an almost happy Asus RT-N16 running DD-WRT v.24-sp2 mega.

I've made a lot's of research, trial and error and I think I can't even get IPsec working, can someone pleasse tell me what I should do? or... what have you really done?
lalalandrus
DD-WRT Novice


Joined: 06 Sep 2006
Posts: 23

PostPosted: Sun Nov 21, 2010 20:20    Post subject: Reply with quote
there is a ipsec kernel module that you might have to insmod...

my wireless provider is blocking pptp gre packets and i have to move to ipsec

ill post what i find as i try to get ipsec working
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum