west:~#
 TZ=GMT export TZ
west:~#
 ipsec spi --clear
west:~#
 ipsec eroute --clear
west:~#
 enckey=0x4043434545464649494a4a4c4c4f4f515152525454575758
west:~#
 authkey=0x87658765876587658765876587658765
west:~#
 saref=3745
west:~#
 nfsaref=$(printf "%d" $(( ($saref * 65536) | 0x80000000 )))
west:~#
 ipsec tncfg --create mast1
pfkey write: Success
west:~#
 ipsec spi --af inet --edst 192.1.2.45 --spi 0x12345678 --proto esp --src 192.1.2.23 --esp 3des-md5-96 --enckey $enckey --authkey $authkey
west:~#
 ipsec spi --af inet --edst 192.1.2.45 --spi 0x12345678 --proto tun --src 192.1.2.23 --dst 192.1.2.45 --ip4 --outif 1
west:~#
 ipsec spigrp inet 192.1.2.45 0x12345678 tun inet 192.1.2.45 0x12345678 esp 
west:~#
 ifconfig mast0 inet 192.1.2.45 netmask 255.255.255.255 up
west:~#
 iptables -A INPUT -i mast0 -j DROP
west:~#
 ifconfig mast1 inet 192.1.2.46 netmask 255.255.255.255 up
west:~#
 arp -s 192.1.2.23  10:00:00:64:64:45
west:~#
 arp -s 192.1.2.254 10:00:00:64:64:45
west:~#
 ipsec look
west NOW
esp0x12345678@192.1.2.45 ESP_3DES_HMAC_MD5: dir=in  src=192.1.2.23 iv_bits=64bits iv=0xDEADF00DDEADF00D alen=128 aklen=128 eklen=192 life(c,s,h)= natencap=none natsport=0 natdport=0 refcount=3 ref=1
tun0x12345678@192.1.2.45 IPIP: dir=in  src=192.1.2.23 life(c,s,h)= natencap=none natsport=0 natdport=0 refcount=3 ref=2
ROUTING TABLE
west:~#
 echo 0xffffffff >/proc/sys/net/ipsec/debug_xform
west:~#
 echo 0xffffffff >/proc/sys/net/ipsec/debug_rcv

