summaryrefslogtreecommitdiff
path: root/testing/tests/ikev1/ip-pool-db/pretest.dat
blob: 19067265207b6a35f76d0dce48ccc880bf8155ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
moon::cat /etc/ipsec.d/tables.sql > /etc/ipsec.d/ipsec.sql
moon::cat /etc/ipsec.d/ipsec.sql | sqlite3 /etc/ipsec.d/ipsec.db
moon::ipsec pool --add bigpool --start 10.3.0.1 --end 10.3.3.232 --timeout 0 2> /dev/null
moon::ipsec pool --addattr dns  --server PH_IP_WINNETOU 2> /dev/null
moon::ipsec pool --addattr dns  --server PH_IP_VENUS 2> /dev/null
moon::ipsec pool --addattr nbns --server PH_IP_VENUS 2> /dev/null
moon::ipsec pool --statusattr
moon::/etc/init.d/iptables start 2> /dev/null
carol::/etc/init.d/iptables start 2> /dev/null
dave::/etc/init.d/iptables start 2> /dev/null
carol::ipsec start
dave::ipsec start
moon::ipsec start
carol::sleep 2 
carol::ipsec up home
dave::ipsec up home
carol::sleep 1