The patch from Lionel Elie Mamane does not work for current version of openvpn from squeeze (2.1.3-2). Applies cleanly, but the resulting route is broken.
Workaround suggested by someone at http://openvpn.net/archive/openvpn-users/2007-12/msg00036.html that works for me is to add gateway with script in /etc/ppp/ip-up.d/default-gateway: ---------------8<-------------- #!/bin/bash if [ $(ip route list exact default |\ awk '/^default/ {print $2}') = dev ]; then IF=$(ip route | awk '/^default/ {print $3}') GW=$(ip address show $IF |\ awk '/peer/ {print $4}' | cut -d"/" -f1) ip route replace default via $GW dev $IF fi -----------8<------------------ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org