Hey there, i've got this wierd bug with vpnc... generally it works flawlessly, but when in a cafe on a public wifi (where you have to login using provided credentials over a webform, which you get shown if you try to open a url in your browser), i get the following error: vpnc: expected xauth packet; rejected: (ISAKMP_N_UNEQUAL_PAYLOAD_LENGTHS)(30) running the following command gives me the output further below sudo vpnc --debug 2 --no-detach /etc/vpnc/vpnc.conf vpnc version 0.5.3 S1 init_sockaddr [2014-07-26 18:04:02] S2 make_socket [2014-07-26 18:04:02] S3 setup_tunnel [2014-07-26 18:04:02] using interface tun0 S4 do_phase1_am [2014-07-26 18:04:02] S4.1 create_nonce [2014-07-26 18:04:02] S4.2 dh setup [2014-07-26 18:04:02] S4.3 AM packet_1 [2014-07-26 18:04:02] S4.4 AM_packet2 [2014-07-26 18:04:02] (Cisco Unity) (Xauth) (DPD) (Nat-T 02N) (unknown) (unknown) got ike lifetime attributes: 2147483 seconds IKE SA selected psk+xauth-aes128-md5 peer is XAUTH capable (draft-ietf-ipsec-isakmp-xauth-06) ignoring that peer is DPD capable (RFC3706) peer is NAT-T capable (draft-02)\n peer is using type 130 (ISAKMP_PAYLOAD_NAT_D_OLD) for NAT-Discovery payloads peer is using type 130 (ISAKMP_PAYLOAD_NAT_D_OLD) for NAT-Discovery payloads NAT status: this end behind NAT? YES -- remote end behind NAT? no S4.5 AM_packet3 [2014-07-26 18:04:02] NAT-T mode, adding non-esp marker S4.6 cleanup [2014-07-26 18:04:02] S5 do_phase2_xauth [2014-07-26 18:04:02] S5.1 xauth_request [2014-07-26 18:04:02] S5.2 notice_check [2014-07-26 18:04:02] S5.3 type-is-xauth check [2014-07-26 18:04:02] S5.4 xauth type check [2014-07-26 18:04:02] S5.5 do xauth reply [2014-07-26 18:04:02] NAT-T mode, adding non-esp marker S5.2 notice_check [2014-07-26 18:04:02] payload too short or not padded: len=432, min=28 (ivlen=16) isakmp length does not match packet length: isakmp = 432 != datalen = 428 S5.3 type-is-xauth check [2014-07-26 18:04:02] ---!!!!!!!!! entering phase2_fatal !!!!!!!!!--- NAT-T mode, adding non-esp marker S7.11 send isakmp termination message [2014-07-26 18:04:02] NAT-T mode, adding non-esp marker vpnc: expected xauth packet; rejected: (ISAKMP_N_UNEQUAL_PAYLOAD_LENGTHS)(30) Reproducible: Always Steps to Reproduce: 1. be on a public wifi using some sort of login-in-webform-authentication 2. do the abovementioned login 3. start vpnc 4. vpnc exits with the mentioned errormessage merge --info Portage 2.2.10 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.18-r1, 3.9.0-gentoo x86_64) ================================================================= System uname: Linux-3.9.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-3520M_CPU_@_2.90GHz-with-gentoo-2.2 KiB Mem: 7876032 total, 5598328 free KiB Swap: 8388604 total, 8388604 free Timestamp of tree: Sat, 26 Jul 2014 16:00:01 +0000 ld GNU ld (GNU Binutils) 2.24 app-shells/bash: 4.2_p45-r1 dev-lang/python: 2.7.6, 3.3.3 dev-util/cmake: 2.8.12.1-r4 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.12.6, 1.13.4, 1.14.1 sys-devel/binutils: 2.24-r2 sys-devel/gcc: 4.8.2 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.13 (virtual/os-headers) sys-libs/glibc: 2.18-r1 Repositories: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="rsync://gentoo.lagis.at/gentoo-distfiles/ http://mirror.bytemark.co.uk/gentoo/ rsync://mirror.bytemark.co.uk/gentoo/ http://ftp.swin.edu.au/gentoo http://mirrors.163.com/gentoo/" LANG="de_DE.UTF8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cli consolekit cracklib crypt cxx dbus directfb dri dts dvd encode exif fam fbcon ffmpeg firefox flac fortran gdbm gif gpm iconv ipv6 jpeg kde keymap lcms libnotify mad mmx mng modules mp3 mp4 mpeg mplayer multilib ncurses nls nocd nptl nsplugin ogg opengl openmp pam pango pcre pdf plasma png policykit qt3support qt4 rdesktop readline sdl session smp spell sse sse2 sse3 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upnp upower usb v4l vorbis wifi wxwidgets x264 xcb xml xorg xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Please ask at http://lists.unix-ag.uni-kl.de/pipermail/vpnc-devel list. Ideally try latest vpnc dev snapshot (I thought we have -9999.ebuild for it but seems not).
commit 2ae6a66dbaf6fc2440beefff98bc7f30a14128be Author: Justin Lecher <jlec@gentoo.org> Date: Wed Sep 23 14:59:52 2015 +0200 net-misc/vpnc: Drop old obsoletes: Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=380399 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=518254 Package-Manager: portage-2.2.21 Signed-off-by: Justin Lecher <jlec@gentoo.org> https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ae6a66dbaf6fc2440beefff98bc7f30a14128be