OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / freeswan / klips / test / east-none-02 / spi1.sh
1 #!/bin/sh
2 TZ=GMT export TZ
3
4 ipsec spi --clear
5 ipsec eroute --clear
6
7 ipsec klipsdebug --set pfkey
8 ipsec klipsdebug --set verbose
9
10 ipsec tncfg --attach --virtual ipsec0 --physical eth1
11 ifconfig ipsec0 inet 192.1.2.23 netmask 0xffffff00 broadcast 192.1.2.255 up
12
13 arp -s 192.1.2.45 10:00:00:64:64:45
14 arp -s 192.1.2.254 10:00:00:64:64:45
15
16 ipsec look
17
18 # magic route command
19 route add -host 192.0.1.1 gw 192.1.2.45 dev ipsec0
20
21 ipsec ikeping --verbose --wait 2 --inet 192.0.1.1 192.0.1.1 192.0.1.1 192.0.1.1