Hi,
I know the topic is a little old but my question fits perfectly so I'll just ask here.
The Linode is a Debian 6.0 amd64 with the default linode 2.6.38_amd64 kernel.
I'm trying to setup IPSEC in transport mode between two linodes in different data centers using the manual config as in ipsec-howto.org:
Code:
#!/usr/sbin/setkey -f
flush;
spdflush;
# AH SAs using 128 bit long keys
add IP1 IP2 ah 0x200 -A hmac-md5 <key1>;
add IP2 IP1 ah 0x300 -A hmac-md5 <key2>;
# ESP SAs using 192 bit long keys (168 + 24 parity)
add IP1 IP2 esp 0x201 -E 3des-cbc <key3>;
add IP2 IP1 esp 0x301 -E 3des-cbc <key4>;
# Security policies
spdadd IP2 IP1 any -P out ipsec esp/transport//require ah/transport//require;
spdadd IP1 IP2 any -P in ipsec esp/transport//require ah/transport//require;
The ouput when running is:
Code:
$ setkey -f /etc/ipsec-tools.conf
The result of line 15: (null).
The result of line 16: (null).
The default linode kernel 2.6.38 seems to have the right options, but the spdadd commands fail. The same config works fine on a Debian 6.0 with the stock kernel somewhere else.
Any ideas?