Package: openvpn Version: 2.0-1 Severity: normal Tags: patch
If my vpn config file uses the "log" option, then the vpn connection no longer closes all file descriptors: [EMAIL PROTECTED]:~# ps ax | grep sbin/openvpn 1600 ? Ss 0:00 /usr/sbin/openvpn --writepid /var/run/openvpn.client.pid --status /var/run/openvpn.client.status 10 --cd /etc/openvpn --config /etc/openvpn/client.conf [EMAIL PROTECTED]:~# ls -l /proc/1600/fd/ total 7 lrwx------ 1 root root 64 2005-05-20 12:33 0 -> /dev/pts/15 l-wx------ 1 root root 64 2005-05-20 12:33 1 -> /var/log/openvpn l-wx------ 1 root root 64 2005-05-20 12:33 2 -> /var/log/openvpn l-wx------ 1 root root 64 2005-05-20 12:33 3 -> /var/run/openvpn.client.status lrwx------ 1 root root 64 2005-05-20 12:33 4 -> /var/run/openvpn/replay lrwx------ 1 root root 64 2005-05-20 12:33 5 -> socket:[36861961] lrwx------ 1 root root 64 2005-05-20 12:33 6 -> /dev/net/tun fd 0 (stdin) should not be connected to my pty. This causes ssh to hang when logging out. The below patch is a workaround, but maybe this should be handled upstream. -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing'), (50, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.11.3 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages openvpn depends on: ii debconf 1.4.45 Debian configuration management sy ii libc6 2.3.2.ds1-21 GNU C Library: Shared libraries an ii liblzo1 1.08-2 data compression library ii libssl0.9.7 0.9.7e-3 SSL shared libraries -- debconf information: openvpn/change_init: true openvpn/create_tun: false * openvpn/stop2upgrade: false openvpn/default_port: *** fixdaemon --- /etc/init.d/openvpn 2005-05-20 12:20:48.000000000 -0400 +++ /etc/init.d/openvpn.fixdaemon 2005-05-20 12:24:11.000000000 -0400 @@ -42,7 +42,7 @@ $DAEMON --writepid /var/run/openvpn.$NAME.pid \ $DAEMONARG $STATUSARG --cd $CONFIG_DIR \ - --config $CONFIG_DIR/$NAME.conf || echo -n " FAILED->" + --config $CONFIG_DIR/$NAME.conf < /dev/null || echo -n " FAILED->" echo -n " $NAME" } stop_vpn () { -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]