LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-06-2008, 08:42 AM   #1
gsic
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
Programming using IPsec


Hello,
Does someone has experience programming with IPsec on C and could appoint me to good API's? I have no experience with IPsec, but I really need to learn it.
I'm trying to develop a C application on linux using IPsec and I'm unable to find out how to do it or API's for it. I tried IPsec-tools, but seems that it uses some headers that should be present in the kernel and isn't.
I'm using the 2.6.15 kernel and I've been trying to install the 2.6.24 version so I can enable the IPsec options, as I was unable to find then on 2.6.15, but I've never done it before and I'm not doing it right, I got how to compile alright, but I seem to have been configuring the kernel wrongly, as it always shows some error message when I boot it.
I would really be glade if I don't have to change the kernel version, I'm interest in learning it, but for now it is just delaying me and I have lots to do, for my graduation and for my job.

Thanks,
Gustavo.
 
Old 03-07-2008, 08:41 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939
When I think of IPSec, as in VPN, I think of a secure tunnel that is, from a program's point-of-view, "just there." The IP-addresses that are designated to "flow through the tunnel" appear simply to be ... IP-addresses just like any other.

The "kernel magic" that you speak of is what enables the data sent to and from these IP-addresses to be "automagically" diverted through the tunnel.

Probably the best place to start is elsewhere on the Internet where various introductions and HOWTOs, of admittedly-varying quality, exist in abundance.

I found it very hard to wrap my cranium around IPSec, and I've been in this business for ... well, nevermind. "A very long time now."
 
Old 03-11-2008, 01:17 PM   #3
gsic
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks, now that I know that I don't need to program oriented to IPsec I could find out a lot of thing, but I tried and I'm still trying the HOWTOs everywhere I can find then, and I'm only able to find HOWTO VPN.

I don't want to build a VPN, I just want to config the IPsec policy with two sockets, one for sending and another receiving. I want to config a "per-socket" policy, but can seen to find it anywhere.

the closer I found from what I want is the ipsec FAQ from netBSD.org
 
  


Reply



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
about IPsec mallikk_in Linux - Networking 4 05-11-2007 03:38 AM
IPsec cranium2004 Linux - Security 5 05-01-2005 08:21 PM
Ipsec MarleyGPN Linux - Networking 1 07-15-2003 08:18 AM
ipsec pk21 Linux - Software 2 01-30-2003 06:39 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:23 PM.

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