Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 201997 - net-proxy/dante-1.1.19-r1: requests fail with "unknown version 71 in request" error
Summary: net-proxy/dante-1.1.19-r1: requests fail with "unknown version 71 in request"...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Low enhancement (vote)
Assignee: Gentoo Network Proxy Developers (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-11 23:59 UTC by Daniel Santos
Modified: 2007-12-28 21:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge log (net-proxy_dante-1.1.19-r1_20071211-230242.log.gz,12.88 KB, application/octet-stream)
2007-12-12 00:04 UTC, Daniel Santos
Details
conversation between firefox and dante (firefox_and_dante.log,4.73 KB, text/plain)
2007-12-28 10:41 UTC, Daniel Santos
Details
conversation between konqueror and dante (konqueror_and_dante.log,8.94 KB, text/plain)
2007-12-28 10:43 UTC, Daniel Santos
Details
my dante binaries (mydante-bin.tbz2,283.32 KB, application/octet-stream)
2007-12-28 10:45 UTC, Daniel Santos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Santos 2007-12-11 23:59:01 UTC
dante-sockd closes connection from firefox clients ("The connection to the server was reset while the page was loading.")  Debug log contains message "unknown version 71 in request".

Steps to reproduce:
1. emerge dante
2. Configure /etc/socks/sockd.conf for normal use from clients on local network (as in http://linuxlore.blogspot.com/2006/10/gentoo-linux-howto-configure-socks.html)
3. Enable debugging in /etc/conf.d/dante-sockd (set SOCKD_DEBUG=1).
4. Start dante-sockd and attempt to use it from firefox (I ran firefox from a different machine on the same subnet, but I suspect that the origin of this problem isn't associated with the client address).
5. Firefox should display "The connection was reset" message

I suspect that this is an upstream issue with machine word size personally.


Portage 2.1.4_rc9 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r0, 2.6.23-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Timestamp of tree: Sun, 09 Dec 2007 06:16:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r4
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://mirror.mcs.anl.gov/pub/gentoo/ http://mirror.espri.arizona.edu/gentoo/ http://gentoo.mirrors.tds.net/gentoo"
LINGUAS="en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/java-overlay /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit 7zip X Xaw3d a52 aac aalib acl acpi administrator afs aim aimextras aio akode alsa amd64 amr ao aotuv apache apache2 apm applet ares arts asf async audacious audiofile authdaemond authfile autoipd automount backtrace bash-completion berkdb binfilter bitmap-fonts bittorrent bl bluetooth bonjour boost branding buttons bzip2 c3p0 cairo calendar cdaudio cdb cdda cddb cdparanoia cdr cdrom cg cgi cjk cli commons-digester console cpudetection cpufreq cpulimit cracklib crypt cscope css cups curl curlwrappers daap dbus dedicated dga directfb divx djbfft dmx dolby-record-switch dom4j double-precision dri dts dv dvd dvdnav dvdr dvdread dxr3 eds emoticon encode enscript esd excel exif expat extraicons fam fasttrack fbcon ffmpeg fftw firefox flac flash fmod font-server fontconfig fortran ftp fuse fusion gb gcj gd gdb gdbm geos ggi gif ginac glitz glut gmedia gmp gmtfull gnokii gnome gnomecanvas gnutella gnutls gphoto2 gpm graphviz gs gsl gstreamer gtalk gtk gzip hal hddtemp html hwmixer icecast iconv icq id3 idn ieee1394 imagemagick imap imlib inifile insecure-savers irda isdnlog ithreads jack java java5 javascript jbig jce jikes jingle jmx jpeg jpeg2k kde kdexdeltas kdrive kerberos keyring lame lcms ldap libcaca libsamplerate libvisual libwww lirc live lm_sensors log4j logitech-mouse lua lzo mad maildir math md5sum meanwhile midi mikmod mime ming mjpeg mmap mmkeys mmx mmxext mng modperl modplug motif mouse mozdevelop mozilla mp2 mp3 mp4 mp4live mpeg mpeg2 msn mtp mudflap multicall multislot musepack musicbrainz mysql mysqli nas ncurses net netjack network njb nls nntp nptl nptlonly nsplugin nss nuv nvidia nvtv objc objc++ objc-gc odk offensive ogg openal openexr opengl openmp p2p pam pango pch pcntl pcre pdf perl php player plotutils png portaudio posix postproc ppds pppd pulseaudio python qq qt3 qt3support qt4 quicktime radio rar readline reflection rrdcgi rtc ruby samba sametime sasl sdl sdl-image sdl-sound seamonkey sensord serpentine session sharedext silc slp smp smtp sndfile soap sockets sound speex spell spl sqlite sqlite3 sse sse2 ssl startup-notification stream streamripper subversion svg svgz symlink sysfs syslog sysvipc tagwriting tcl tcpd tetex tga theora threads tidy tiff timidity tk tokenizer transcode trayicon truetype truetype-fonts tse3 type1-fonts unicode urandom usb userlocales v4l v4l2 vcd vda vhosts videos vim-syntax vim-with-x visualization vorbis vorbis-psy wav wavpack webdav wifi wma wmf wxwindows x264 xanim xcb xcomposite xface xforms xine xinerama xml xmlreader xmlrpc xmlwriter xorg xplanet xpm xprint xscreensaver xsl xv xvid xvmc yaepg yahoo yv12 zeroconf zip zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



/etc/sockd/sockd.conf (minus comments) -- probably has a lot of unneeded parameters.
=================================================================
logoutput: syslog
internal: eth0 port = 1080
external: eth0
method: username none
clientmethod: none
user.privileged: sockd
user.notprivileged: sockd
user.libwrap: sockd

client pass {
    from: 192.168.1.0/24 port 1-65535 to: 0.0.0.0/0
}

client pass {
    from:  127.0.0.0/8 port 1-65535 to: 0.0.0.0/0
}

client block {
    from:  0.0.0.0/0 to: 0.0.0.0/0
    log: connect error
}

block {
    from:  0.0.0.0/0 to: 127.0.0.0/8
    log: connect error
}

pass {
    from:  192.168.1.0/24 to: 0.0.0.0/0
    protocol: tcp udp
}

pass {
    from:  127.0.0.0/8 to: 0.0.0.0/0
    protocol: tcp udp
}

block {
    from:  0.0.0.0/0 to: 0.0.0.0/0
    log: connect error
}

pass {
    from: 192.168.1.0/24 to: 0.0.0.0/0
    protocol: tcp udp
}


Output in /var/log/debug after:
1. /etc/init.d/dante-sockd start
2. attempting a connection from firefox (as described above)
3. /etc/init.d/dante-sockd stop
=================================================================
Dec 11 17:48:41 loudmouth sockd: socks_seteuid(): old: 0, new: 109
Dec 11 17:48:41 loudmouth sockd: socks_reseteuid(): current: 109, new: 0
Dec 11 17:48:41 loudmouth sockd: socks_seteuid(): old: 0, new: 109
Dec 11 17:48:41 loudmouth sockd: socks_reseteuid(): current: 109, new: 0
Dec 11 17:48:41 loudmouth sockd: socks_seteuid(): old: 0, new: 109
Dec 11 17:48:41 loudmouth sockd: socks_reseteuid(): current: 109, new: 0
Dec 11 17:48:41 loudmouth sockd[1099]: socks_seteuid(): old: 0, new: 109
Dec 11 17:48:41 loudmouth sockd[1099]: socks_reseteuid(): current: 109, new: 0
Dec 11 17:48:41 loudmouth sockd[1099]: internal addresses (1):
Dec 11 17:48:41 loudmouth sockd[1099]: ^I192.168.1.79.1080
Dec 11 17:48:41 loudmouth sockd[1099]: external addresses (1):
Dec 11 17:48:41 loudmouth sockd[1099]: ^Ieth0, tcp: 0, udp : 0, op: none, end: 0
Dec 11 17:48:41 loudmouth sockd[1099]: external address rotation: none
Dec 11 17:48:41 loudmouth sockd[1099]: compatibility options:
Dec 11 17:48:41 loudmouth sockd[1099]: extensions enabled:
Dec 11 17:48:41 loudmouth sockd[1099]: logoutput goes to: "syslog.daemon",
Dec 11 17:48:41 loudmouth sockd[1099]: cmdline options: "configfile": "/etc/socks/sockd.conf", "daemon": "1", "debug": "1", "keepalive": "1", "linebuffer": "1", "servercount": "1",
Dec 11 17:48:41 loudmouth sockd[1099]: resolveprotocol: udp
Dec 11 17:48:41 loudmouth sockd[1099]: srchost:
Dec 11 17:48:41 loudmouth sockd[1099]: negotiate timeout: 120s
Dec 11 17:48:41 loudmouth sockd[1099]: i/o timeout: 86400s
Dec 11 17:48:41 loudmouth sockd[1099]: euid: 0
Dec 11 17:48:41 loudmouth sockd[1099]: userid: "privileged": "sockd", "notprivileged": "sockd", "libwrap": "sockd",
Dec 11 17:48:41 loudmouth sockd[1099]: child.maxidle: 0
Dec 11 17:48:41 loudmouth sockd[1099]: method(s): username, none
Dec 11 17:48:41 loudmouth sockd[1099]: clientmethod(s): none
Dec 11 17:48:41 loudmouth sockd[1099]: client-rules (3):
Dec 11 17:48:42 loudmouth sockd[1099]: socks-rules (5):
Dec 11 17:48:42 loudmouth sockd[1099]: routes (0):
Dec 11 17:48:42 loudmouth sockd[1099]: socks_seteuid(): old: 0, new: 109
Dec 11 17:48:42 loudmouth sockd[1100]: socks_seteuid(): old: 109, new: 109
Dec 11 17:48:42 loudmouth sockd[1100]: socks_seteuid(): old: 109, new: 109
Dec 11 17:48:42 loudmouth sockd[1101]: selectn(), timeout = NULL
Dec 11 17:48:42 loudmouth sockd[1103]: selectn(), timeout = NULL
Dec 11 17:48:42 loudmouth sockd[1105]: freedescriptors(start): 1021/1024
Dec 11 17:48:42 loudmouth sockd[1106]: freedescriptors(start): 1021/1024
Dec 11 17:48:42 loudmouth sockd[1107]: freedescriptors(start): 1021/1024
Dec 11 17:48:42 loudmouth sockd[1108]: freedescriptors(start): 1021/1024
Dec 11 17:48:42 loudmouth sockd[1109]: selectn(), timeout = NULL
Dec 11 17:48:42 loudmouth sockd[1110]: selectn(), timeout = NULL
Dec 11 17:48:46 loudmouth sockd[1100]: selectn(), tv_sec = 0, tv_usec = 0
Dec 11 17:48:46 loudmouth sockd[1100]: got accept(): 192.168.1.66.1994
Dec 11 17:48:46 loudmouth sockd[1101]: addressmatch(): 192.168.1.0/24, tcp: 1, udp: 1, op: range, end: 65535, 192.168.1.66.1994, tcp, 0
Dec 11 17:48:46 loudmouth sockd[1101]: addressmatch(): 0.0.0.0/0, tcp: 0, udp: 0, op: none, end: 0, 192.168.1.79.1080, tcp, 0
Dec 11 17:48:46 loudmouth sockd[1101]: accesscheck(): method: none, 192.168.1.66.1994 -> 192.168.1.79.1080
Dec 11 17:48:46 loudmouth sockd[1101]: selectn(), tv_sec = 120, tv_usec = 0
Dec 11 17:48:46 loudmouth sockd[1101]: unknown version 71 in request
Dec 11 17:48:46 loudmouth sockd[1101]: selectn(), timeout = NULL
Dec 11 17:48:46 loudmouth sockd[1116]: selectn(), timeout = NULL
Dec 11 17:48:53 loudmouth sockd[1100]: sockdexit()
Dec 11 17:48:53 loudmouth sockd[1103]: recv_negotiate(): recvmsg(): mother closed connection
Dec 11 17:48:53 loudmouth sockd[1103]: sockdexit()
Dec 11 17:48:53 loudmouth sockd[1101]: recv_negotiate(): recvmsg(): mother closed connection
Dec 11 17:48:53 loudmouth sockd[1101]: sockdexit()
Dec 11 17:48:53 loudmouth sockd[1106]: recv_req(): recvmsg(): mother closed connection
Dec 11 17:48:53 loudmouth sockd[1106]: sockdexit()
Dec 11 17:48:53 loudmouth sockd[1116]: recv_negotiate(): recvmsg(): mother closed connection
Dec 11 17:48:53 loudmouth sockd[1116]: sockdexit()
Dec 11 17:48:53 loudmouth sockd[1105]: recv_req(): recvmsg(): mother closed connection
Dec 11 17:48:53 loudmouth sockd[1105]: sockdexit()
Dec 11 17:48:53 loudmouth sockd[1110]: recv_io(): recvmsg(): mother closed connection
Dec 11 17:48:53 loudmouth sockd[1109]: recv_io(): recvmsg(): mother closed connection
Dec 11 17:48:53 loudmouth sockd[1109]: run_io(): can't find mother and no io's
Dec 11 17:48:53 loudmouth sockd[1109]: sockdexit()
Dec 11 17:48:53 loudmouth sockd[1110]: run_io(): can't find mother and no io's
Dec 11 17:48:53 loudmouth sockd[1110]: sockdexit()
Dec 11 17:48:53 loudmouth sockd[1108]: recv_req(): recvmsg(): mother closed connection
Dec 11 17:48:53 loudmouth sockd[1108]: sockdexit()
Dec 11 17:48:53 loudmouth sockd[1107]: recv_req(): recvmsg(): mother closed connection
Dec 11 17:48:53 loudmouth sockd[1107]: sockdexit()
Comment 1 Daniel Santos 2007-12-12 00:04:31 UTC
Created attachment 138289 [details]
emerge log
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2007-12-27 09:42:33 UTC
Works on my box, which has the following emerge --info:
Portage 2.1.3.19 (default-linux/amd64/2007.0/desktop, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3500+
Timestamp of tree: Thu, 27 Dec 2007 08:16:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs collision-protect cvs distlocks metadata-transfer multilib-strict sandbox sfperms sign strict stricter test unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.ines.lug.ro/gentoo http://mirrors.evolva.ro/gentoo ftp://ftp.roedu.net/pub/mirrors/gentoo.org "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS="en ro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.ro.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib accessibility acl acpi activefilter aiglx aio alsa amarok amd64 amr amrnb amrwb aotuv apache2 arts asf atm audiofile berkdb bgpclassless bitmap-fonts bluetooth bzip2 cairo calendar caps cdda cddb cdio cdparanoia cdr clamav cli cpudetection cracklib crypt css ctype cups curl curlwrappers customlog dba dbus dga dhcp dio directfb doc dri dts dv dvd dvdr dvdread eap-tls edirectory eds emboss enca encode esd evo exif expat extensions fam fbcon fbdev ffmpeg fftw firefox flac font-server foomaticdb fortran frxp ftp gd gdbm geoip ggi gif gimp glitz glut gmp gnokii gnome gphoto2 gpm gstreamer gtk gtkhtml guile hal highlight history icecast iconv icq idn imagemagick imap imlib ipv6 irmc isdnlog java jpeg jpeg2k kaspersky kde kerberos lame lcms ldap libcaca libwww lirc live logrotate lzo mad memlimit mhash midi mikmod mime mjpeg mmap mmx mmxext mng motif mozcalendar mp3 mpeg mpeg2 mpm-prefork mudflap musepack mysql nas ncurses netmeeting network nls no-seamonkey nokia6600 nowin nptl nptlonly nsplugin ntlm nvidia offensive ogg openal opengl openmp ospfapi pam pcntl pcre pdf perl php pic png posix postgres pppd python qt3 qt3support qt4 quicktime radius readline realms reflection rtc ruby samba scanner sdk sdl session sharedex sharedmem slang sms sndfile snmp sockets speex spell spl sqlite sqlite3 srt sse sse2 ssl statistics stats subtitles subversion svg sysvipc tcl tcltk tcpd tcpmd5 test tetex texteffect tga theora threads tiff timidity tk tokenizer truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis wma wma123 wxgtk1 wxwindows xanim xcomposite xine xml xml2 xmlrpc xorg xpm xsl xv xvid xvmc yahoo yaz zip zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ro" USERLAND="GNU" VIDEO_CARDS="nvidia nv vmware"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

I will update my host to the latest stable version. 
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2007-12-27 10:30:46 UTC
One more thing... What have you set in your firefox? Are you sure you didn't messed up the connection settings?
Comment 4 Daniel Santos 2007-12-27 10:54:12 UTC
(In reply to comment #3)
> One more thing... What have you set in your firefox? Are you sure you didn't
> messed up the connection settings?
> 

Well this difference is probably ACCEPT_KEYWORDS="amd64 ~amd64".  When you emerged, did you end up with version 1.1.19-r1?  If so, then the next thing to look at is the deps, since you don't have "~amd64" enabled (which changes your whole system of course).

As to your other question, I'm never sure of anything. :)  I screw with my system on a regular basis, but I don't have any reason to suspect that Firefox has a socks protocol speech impediment, although I am sure that they aren't speaking the same language.  But if you still can't reproduce the issue using the same versions of dante and it's deps then I can run a tcptrace if it'll help.


Comment 5 Alin Năstac (RETIRED) gentoo-dev 2007-12-27 11:07:04 UTC
I suspect you have selected the "Use this proxy server for all protocols" checkbox. The right way to configure firefox is to clean all proxies edits and set only the socks host configuration.

Please do this and confirm that it fixed your problem.
Comment 6 Daniel Santos 2007-12-28 10:40:19 UTC
(In reply to comment #5)
> Please do this and confirm that it fixed your problem.

Why would it have fixed my problem?  I had it configured in this way before and I'm still getting the same results including "unknown version 71 in request":

Dec 28 03:28:22 loudmouth sockd[12632]: selectn(), tv_sec = 0, tv_usec = 0
Dec 28 03:28:22 loudmouth sockd[12632]: got accept(): 192.168.1.79.53113
Dec 28 03:28:22 loudmouth sockd[12635]: addressmatch(): 192.168.1.0/24, tcp: 1, udp: 1, op: range, end: 65535, 192.168.1.79.53113, tcp, 0
Dec 28 03:28:22 loudmouth sockd[12635]: addressmatch(): 0.0.0.0/0, tcp: 0, udp: 0, op: none, end: 0, 192.168.1.79.1080, tcp, 0
Dec 28 03:28:22 loudmouth sockd[12635]: accesscheck(): method: none, 192.168.1.79.53113 -> 192.168.1.79.1080
Dec 28 03:28:22 loudmouth sockd[12635]: selectn(), tv_sec = 120, tv_usec = 0
Dec 28 03:28:22 loudmouth sockd[12635]: unknown version 71 in request
Dec 28 03:28:22 loudmouth sockd[12635]: selectn(), timeout = NULL

I'll attach tcpdump conversations.
Comment 7 Daniel Santos 2007-12-28 10:41:47 UTC
Created attachment 139493 [details]
conversation between firefox and dante

Output using the following command:
tcpdump -s0 -i lo -Uw - host 192.168.1.79 or 127.0.0.1 | tcpdump -vvv -Xnr -
Comment 8 Daniel Santos 2007-12-28 10:43:21 UTC
Created attachment 139495 [details]
conversation between konqueror and dante

output from command:
tcpdump -s0 -i lo -Uw - host 192.168.1.79 or 127.0.0.1 | tcpdump -vvv -Xnr -
Comment 9 Daniel Santos 2007-12-28 10:45:17 UTC
Created attachment 139497 [details]
my dante binaries

This is my dante binaries & config files, the result of:
tar cjf mydante-bin.tbz2 $(qlist dante)
Comment 10 Daniel Santos 2007-12-28 10:56:30 UTC
OH CRAP!!!  That's what I get for debugging in the middle of the night.  You're right, but I didn't understand exactly what you were saying and I missed the part about the "socks" only.

It works from both Firefox and Konqueror now.  But now that I look at this more closely, I think it would be cool to enhance dante so that it tells you that you fucked up, all it has to do is look for protocol version 71 (decimal), then it could send a bogus page back to the browser telling the user how to correct their configuration.
Comment 11 Daniel Santos 2007-12-28 11:00:51 UTC
change to enhancement or close invalid?
Comment 12 Alin Năstac (RETIRED) gentoo-dev 2007-12-28 11:40:18 UTC
I'm not familiar with SOCKS protocol, but judging after the error message I guess it is a binary protocol (as in non-ASCII). The only way to give more friendly error messages would be an auto-detection of the communication protocol used by the client (namely HTTP which is - as we all knew - text-based protocol). However this is upstream job, not mine.

Of course, patches are welcome if you want to add this enhancement yourself ;)

Closed as INVALID.
Comment 13 Daniel Santos 2007-12-28 21:54:25 UTC
(In reply to comment #12)
> The only way to give more friendly error messages would be an auto-detection
> of the communication protocol used by the client (namely HTTP which is - as
> we all knew - text-based protocol). However this is upstream job, not mine.

Yea, that's what I was thinkin'. I don't know the protocol for the non-socks proxy, I'll have to find that if I am to redeem myself :)  Apparently, there is some other "html proxy" type of protocol, and yea, it's all binary, I used to screw with UDP-based (custom) protocols a lot in my youth, back in the day, before we had refrigerators and stuff.