Skip to contentSkip to conversation

ipsec implementation using netfilter

DISCUSSION avinash m 3 participants 3 messages Mar 19, 2005 netfilter

lore
Share & tools
lore

avinash m

author
#0 lore raw

Hi

I am a newbie trying to implement ipsec in transport
mode. i am new to writing networking code too.

The crypto algorithms are actually implemented on a crypto accelerator card which can be programmed using some registers to setup an encryption/decryption sessions. The security associations are also stored in the crypto card.

I have seen the openswan.org but that didnt get me anywhere. I am also not clear hoe i could place this customization into the existing ipsec stack(if i could understand that)

Now i am of the idea of implementing this using the
netfilter module. I am planning to place hook on the loca input and local output hooks. The packets are then sent to the card for enc/dec.

I this the right way to implement? if not could i get some pointers to do this the right way.

Thanx in advance.
shawn

__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

#1 lore raw
Quoted 4 lines · On Fri, 18 Mar 2005 22:56:21 -0800 (PST) avinash m <[email protected]> wrote:

I have seen the openswan.org but that didnt get me anywhere. I am also not clear hoe i could place this customization into the existing ipsec stack(if i could understand that)

People have written experimental patches that allow hw acceleration of IPSEC using the existing IPSEC stack. It's actually not very difficult.

See the [email protected] archives for details.

Using netfilter is the last way you would go about doing this.

#2 lore raw
In reply to avinash m

Hi there,

I Have recently (almost) completed work on building an ipcomp implementation using netfilter to handle packet input. It works, but have you ever heard of a 'filter' that lets stuff through and makes it bigger or smaller :-)

In the same way as IMQD is used for ingress and egress queuing, it 'is' possible to do these things in netfilter but it really isnt the place to build this sort of thing, (my ipcomp system happily interoperates with the 2.6ipcomp on other machines but really doesnt make sense when observing packets at my end with ethereal)

building another driver maybe called hw_ipsec shouldnt be that hard, i should imagine it would have the same interfaces to the kernel as the current ipsec.

Ian

Quoted 34 lines · avinash m

Hi

I am a newbie trying to implement ipsec in transport
mode. i am new to writing networking code too.

The crypto algorithms are actually implemented on a crypto accelerator card which can be programmed using some registers to setup an encryption/decryption sessions. The security associations are also stored in the crypto card.

I have seen the openswan.org but that didnt get me anywhere. I am also not clear hoe i could place this customization into the existing ipsec stack(if i could understand that)

Now i am of the idea of implementing this using the
netfilter module. I am planning to place hook on the loca input and local output hooks. The packets are then sent to the card for enc/dec.

I this the right way to implement? if not could i get some pointers to do this the right way.

Thanx in advance.
shawn

__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

Signature · 1 line
Ian Norton-Badrul