[Bug 382168] Re: vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route"
This bug just appeared after updates to my 12.04.1 LTS system. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/382168 Title: vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vpnc/+bug/382168/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 382168] Re: vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route"
** Changed in: vpnc (Debian) Status: Unknown => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/382168 Title: vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vpnc/+bug/382168/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 382168] Re: vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route"
** Bug watch added: Debian Bug tracker #575188 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=575188 ** Changed in: vpnc (Debian) Importance: Undecided => Unknown ** Changed in: vpnc (Debian) Status: New => Unknown ** Changed in: vpnc (Debian) Remote watch: None => Debian Bug tracker #575188 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/382168 Title: vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vpnc/+bug/382168/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 382168] Re: vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route"
vpnc 0.5.3r512-1 contains the fix to vpnc-script (in Ubuntu from 12.04, I believe) ** Changed in: vpnc (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/382168 Title: vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vpnc/+bug/382168/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 382168] Re: vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route"
** Changed in: vpnc (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/382168 Title: vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vpnc/+bug/382168/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 382168] Re: vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route"
** Also affects: vpnc (Debian) Importance: Undecided Status: New -- vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route" https://bugs.launchpad.net/bugs/382168 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 382168] Re: vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route"
or for better readability (call me quiche-eater): DEV=$($IPROUTE route \ | sed -ne 's/^default.* dev \([[:alnum:]-]\+\)\(.*metric \([0-9]\+\)\)\{0,1\}.*$/\1 \3/p' \ | sort -n -k2 \ | sed -e '1{s/^\([[:alnum:]-]\+\).*$/\1/;q}') -- vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route" https://bugs.launchpad.net/bugs/382168 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 382168] Re: vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route"
I can concur with Peter Maydell the complete line 93 should read DEV=$($IPROUTE route | sed -ne 's/^default.* dev \([[:alnum:]-]\+\)\(.*metric \([0-9]\+\)\)\{0,1\}.*$/\1 \3/p' | sort -n -k2 | sed -e '1{s/^\([[:alnum:]-]\+\).*$/\1/;q}') -- vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route" https://bugs.launchpad.net/bugs/382168 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 382168] Re: vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route"
Actually the line I'm using ends with .. | sed -e '1{s/^\([[:alnum:]-]\+\).*$/\1/;q}') (must have got truncated when I wrote that comment and I didn't notice). I think this will ensure that you always get only one device name, which yours doesn't. -- vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route" https://bugs.launchpad.net/bugs/382168 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 382168] Re: vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route"
DEV=$($IPROUTE route | sed -ne 's/^default.* dev \([[:alnum:]-]\+\)\(.*metric \([0-9]\+\)\)\{0,1\}.*$/\1 \3/p' | sort -n -k2 | sed -e 's/^\([[:alnum:]-]\+\).*$/\1/') works better ... -- vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route" https://bugs.launchpad.net/bugs/382168 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 382168] Re: vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route"
This bug just appeared for me in 9.10 beta. -- vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route" https://bugs.launchpad.net/bugs/382168 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 382168] Re: vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route"
If you replace the current line which sets DEV with this one: DEV=$($IPROUTE route | sed -ne 's/^default.* dev \([[:alnum:]-]\+\)\(.*metric \([0-9]\+\)\)\{0,1\}.*$/\1 \3/p' | sort -n -k2 | sed -e '1{s/^\([[:alnum:]-]\+\).*$ then it works for me, at least. However, this could probably use testing to make sure it doesn't break anything. (Incidentally, I think the effect of this bug will be that the MTU will be left at the default of 1500 rather than set to 1412, which will probably break networking in some cases.) -- vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route" https://bugs.launchpad.net/bugs/382168 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs