Package: ifupdown Version: 0.7~alpha2 Severity: wishlist Tags: patch Attached is a patch which includes support for an "openvpn" method so that ifup/ifdown can be used to start and stop openvpn vpns. An example entry in interfaces would be:
iface myvpnname inet openvpn vpn configname which then would cause running "ifup myvpnname" to start the vpn defined in /etc/openvpn/configname.conf thanks, stew -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.18-3-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages ifupdown depends on: ii debconf [debconf-2.0] 1.5.13 Debian configuration management sy ii iproute 20061002-4 Professional tools to control the ii libc6 2.6-2 GNU C Library: Shared libraries ii lsb-base 3.1-23.1 Linux Standard Base 3.1 init scrip ii net-tools 1.60-17 The NET-3 networking toolkit ifupdown recommends no packages. -- debconf information excluded
diff -ru ifupdown-0.7~alpha2.orig/ifupdown.nw ifupdown-0.7~alpha2/ifupdown.nw --- ifupdown-0.7~alpha2.orig/ifupdown.nw 2007-08-03 22:44:30.000000000 -0400 +++ ifupdown-0.7~alpha2/ifupdown.nw 2007-08-03 22:44:56.000000000 -0400 @@ -4118,6 +4118,22 @@ @ <<inet methods>>= +method openvpn + description + This method starts and stops openvpn virtual private networks + options + vpn name -- Use /etc/openvpn/$name.conf as the configuration file + up + /usr/sbin/openvpn --daemon ovpn-[[%vpn%]] \ + --status /var/run/openvpn.[[%vpn%]].status 10 \ + --writepid /var/run/openvpn.[[%vpn%]].pid \ + --cd /etc/openvpn \ + --config /etc/openvpn/[[%vpn%]].conf < /dev/null + down + cat /var/run/openvpn.[[%vpn%]].pid | xargs -i kill -TERM {} +@ + +<<inet methods>>= method wvdial description This method uses wvdial to configure a PPP interface. See that command