File: 02-west-init.sh

package info (click to toggle)
libreswan 5.2-2.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 81,632 kB
  • sloc: ansic: 129,988; sh: 32,018; xml: 20,646; python: 10,303; makefile: 3,022; javascript: 1,506; sed: 574; yacc: 511; perl: 264; awk: 52
file content (17 lines) | stat: -rwxr-xr-x 771 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/testing/guestbin/swan-prep --hostkeys
# confirm that the network is alive
../../guestbin/wait-until-alive -I 192.0.1.254 192.0.2.254
# adding some routes to sow confusion on purpose
../../guestbin/ip.sh route add 192.168.1.1 via 192.0.1.254 dev eth0
../../guestbin/ip.sh route add 192.168.1.2 via 192.1.2.45 dev eth1
../../guestbin/ip.sh route add 192.168.1.16/28 via 192.1.2.45 dev eth1
../../guestbin/ip.sh route add 25.1.0.0/16 via 192.0.1.254
../../guestbin/ip.sh route add 25.2.0.0/16 via 192.1.2.45
ipsec start
../../guestbin/wait-until-pluto-started
ipsec auto --add westnet-all
../../guestbin/ip.sh route list
for i in `seq 1 12`; do ipsec auto --add orient$i; done
ipsec auto --status |grep "[.][.][.]"
ipsec whack --impair suppress_retransmits
echo "initdone"