~ubuntu-branches/ubuntu/hardy/openswan/hardy-updates

« back to all changes in this revision

Viewing changes to testing/pluto/dpd-05/westrun.sh

  • Committer: Bazaar Package Importer
  • Author(s): Rene Mayrhofer
  • Date: 2005-01-27 16:10:11 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050127161011-idgybmyz3vwhpfiq
Tags: 2.3.0-2
Urgency HIGH due to security issue and problems with build-deps in sarge.
* Fix the security issue. Please see
  http://www.idefense.com/application/poi/display?id=190&
      type=vulnerabilities&flashstatus=false
  for more details. Thanks to Martin Schulze for informing me about
  this issue.
  Closes: #292458: Openswan XAUTH/PAM Buffer Overflow Vulnerability
* Added a Build-Dependency to lynx.
  Closes: #291143: openswan: FTBFS: Missing build dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# we can transmit in the clear
 
4
ping -q -c 8 -n 192.1.2.23
 
5
 
 
6
# bring up the tunnel
 
7
ipsec auto --up west-east
 
8
 
 
9
# use the tunnel
 
10
#ping -q -c 8 -n 192.1.2.23
 
11
 
 
12
# show the tunnel!
 
13
echo "Tunnel should be up"
 
14
ipsec eroute
 
15
 
 
16
# Let R_U_THERE packets flow
 
17
sleep 15
 
18
 
 
19
echo "Setting up block"
 
20
iptables -I INPUT -s 192.1.2.23/32 -d 0/0 -j DROP
 
21
iptables -I OUTPUT -d 192.1.2.23/32 -s 0/0 -j DROP
 
22
sleep 10
 
23
ipsec eroute
 
24
sleep 10
 
25
ipsec eroute
 
26
sleep 10
 
27
 
 
28
# DPD should have triggered now
 
29
echo "Tunnel should be down on West, not East"
 
30
ipsec eroute
 
31
 
 
32
# Remove the Blockage
 
33
echo "Removing block"
 
34
iptables -D INPUT -s 192.1.2.23/32 -d 0/0 -j DROP
 
35
iptables -D OUTPUT -d 192.1.2.23/32 -s 0/0 -j DROP
 
36
ping -q -c 8 -n 192.1.2.23
 
37
 
 
38
# Tunnel should be back up now
 
39
echo "Tunnel should be up"
 
40
ipsec eroute
 
41
echo end