I've managed to get openswan working on openwrt. The process is somewhat involved, therefore I consider this a developer topic rather than something I would put a regular user through :-)
I documented what I did to get things working at http://wiki.linuxops.net/tiki-read_arti … rticleId=6, and for the brave I have packages ready to rock and roll at http://www.linuxops.net/ipkg. Do read the article first though as openwrt needs to be modified somewhat to be able to run the openswan scripts. Well, until I package the coreutils "tr" and "id" tools for openwrt, that is.
The changes I made to openswan are temporary. From what I gather from the openwan developers they're working on making the openswan release ready for easy crosscompiling and ipkg packaging. Some changes are already in CVS, I heard. Of course all this is just building on the work others did. Most of the credit for the openswan end of things goes to Paul Wouters.