File: configure.sample

package info (click to toggle)
pipsecd 1%3A19990511-28
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 284 kB
  • ctags: 272
  • sloc: ansic: 2,183; perl: 1,832; sh: 82; makefile: 41
file content (17 lines) | stat: -rw-r--r-- 567 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh
#
# This script will be called each time a remote peer change its address.
#
# The arguments on the command line will be the interface name and the real
# remote address.
#

# Helper functions. ifname and remaddr will be set automatically
. /usr/lib/pipsecd/functions

case $ifname in
    #ul0) turnon zaphod.ldpnet.ada.eu.org marvin.ldpnet.ada.eu.org ;;
    #ul1) turnon 137.194.8.199 137.194.160.199 137.194.160.121 eth0 ;;
    #ipsec0) turnon 192.168.10.1 192.168.10.2 ;;
    *) logger -p error -t pipsecd "Unknown interface $ifname ($remaddr)" ;;
esac