User Tools

Site Tools


technical:ipsec:ipsec-tools

This is an old revision of the document!


Description

IPsec-Tools was devloped by the KAME project and is now deprecated. You may still find this package usefulf for quickly configuring IPsec tunnels in an lab environment.

Install

Install from Alpine APK or a package of your choice.

apk add ipsec-tools

Configure Tunnel

ip tunnel add gre0  mode gre remote <remote_ip_addr> local <local_ip_addr> ttl 255
ip link set gre0 up
ip address <tunnel_ip_addr>/<subnet_mask>

Configure ipsec.conf

Configure racoon.conf

mkdir /etc/racoon

Copy Certificates and Key

scp {ca.pem,cert.pem,key.pem} <user>@<host>:/etc/racoon/ done

Enable the IPsec Service

setkey -f /etc/ipsec.conf
racoon -f /etc/racoon/racoon.conf
technical/ipsec/ipsec-tools.1679944027.txt.gz · Last modified: by jc