Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497586 - net-proxy/dante-1.4.0-r1 - "direct route fallback" disabled by default - "Network is unreachable" in net-irc/irssi, net-ftp/lftp, etc
Summary: net-proxy/dante-1.4.0-r1 - "direct route fallback" disabled by default - "Net...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Network Proxy Developers (OBSOLETE)
URL:
Whiteboard:
Keywords: PATCH
: 521306 (view as bug list)
Depends on:
Blocks: 506794
  Show dependency tree
 
Reported: 2014-01-08 23:00 UTC by Zhu Sha Zang
Modified: 2014-08-28 09:21 UTC (History)
10 users (show)

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


Attachments
emerge --info (emerge.info,8.97 KB, text/plain)
2014-01-10 10:15 UTC, Andrew Savchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zhu Sha Zang 2014-01-08 23:00:06 UTC
Updating net-proxy/dante at last 06/Jan my irssi (with socks5 useflag ativated) stoped to connect to any irc network.

I don't know if this is a bug, if not appologise me.

To better explain:

http://www.youtube.com/watch?v=TPef1oR1nzo

I removed socks5 from irssi anda it starts to connect.

---

emerge --info                                                                                                                                     20:55
Portage 2.2.8 (default/linux/amd64/13.0, gcc-4.8.2, glibc-2.17, 3.12.6-gentoo-ib02 x86_64)
=================================================================
System uname: Linux-3.12.6-gentoo-ib02-x86_64-Intel-R-_Core-TM-_i3_CPU_M_380_@_2.53GHz-with-gentoo-2.2
KiB Mem:     5909588 total,   4058124 free
KiB Swap:    3903788 total,   3903788 free
Timestamp of tree: Wed, 08 Jan 2014 16:00:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.12.1-r2
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.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r1
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.12 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -Os -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -mtune=generic -Os -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --keep-going=y --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pt_BR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2 --load-average"
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="256-color R X Xaw3d a52 aalib abyss acl acpi action_modeswitch addbookmarks additions addressbook adiummessagestyle adobe-cff adplug ads airplay alac alisp all_sfx alsa amd64 animation-rtl annotations ao aosd apache2 apbs apng applet asf aspell ass assistant athena atmo audit auto-hinter autoipd autotrace avahi avatars avcodec avformat avx awn background backgrounds bash-completion bashlogger battery bazaar berkdb bineditor bittorrent bl blender blender-game bookmarks branding bs2b bsf bufferevents bzip2 c++0x cairo call caps captcha captchaforms cb chm cli clientinfo cmake collab color compress compressed-lumas connectivity console consolekit contacts context contrast contrib corefonts cracklib creds cron crypt cryptsetup cscope css csv ctype cue curl cvs cxx daap dap dbus dcc_video dds debugger declarative designer designer-plugin desktopglobe detex devhelp device-mapper dhcp dia dirac diskio djvu dmx dnd docbook dot dri dts dv dvb dvbplayer dvbsetup dvd dvdr dvi dvi2tty dvipdfm eap ebook ecap edd egl elbeem embedded emf emotion emovix enca enchant encode eolconv epydoc equalizer escreen espeak ethumb eve excel exif expat extensions extra extras faac faad fakevim fam farp farsight fastscroll fbcon ffmpeg filelog firefox firefox-bookmarks flac flash flickr fontconfig fontforge fonts foomaticdb fortran fortran2003 fpx freetds ftp fuse gallium game-engine games gbm gcj gcrypt gd gdbm geocode geoip geonames gflags ggi gif git gkrellm glade glamor gles gles1 gles2 glew gmail gme gmp gnumeric gnuplot go google googledrive gpg gphoto2 gpl gpm gpsd gpssync gpu grammar graphics graphite graphviz gs gsf gsl gsm gsmloc gstreamer gtalk gtk gtk3 gtkhtml gtkspell gtkstyle gts gudev gui gzip gzip-el hbci hddtemp hdf5 hdri hesiod highlight hipe hires-icons histman history holidays hostip hpcups hpijs hscolour html htmlreport http httpd httppower humanities hwdb ices iconv icoutils icq id3 id3tag ide idn image imaging imap imlib infinality inkjar inotify iostats iplsrc iptc ipv6 ipython irc isag jabber jack jadetex java javascript jbig jemalloc jingle jit joystick jpeg justify kate kde kdrive kerberos keymap kig-scripting kipi konqueror kpoll ladspa lame lapack laptop lash lastfm lastfmfingerprint lastfmradio latex lcms lensfun libass libcaca libevent libffi libkms liblockfile libnotify libsamplerate libssh2 libtiger libv4l libv4l2 libvisual listen-queue live lm_sensors lock logrotate lqr lua lua-cairo lua-imlib luajit luatex lv2 lxde lyx lzma lzo m17n-lib mac mad madde madwifi manual map marble math mathml matplotlib matroska matrox mbox md5 md5sum mdnsresponder-compat meanwhile melt mercurial messages metacontacts metalink metis mfd-rewrites minizip mlib-update mms mmx mmxext mng moc modules mount mouse mozdom mozilla mozsha1 mp3 mp3tunes mp4 mpd mpeg mplayer mrim mudflap mule multilib multimedia multiprocess multislot multitarget multiuser musepack music musicbrainz nano-syntax nas nat nat-pmp ncat ncurses ndiff neXt netbeans netlink netpbm nettle network newmousefocus nlpsolver nls nmap-update nntp nominatim notebook nping npp nptl nsplugin nss numpy nut nvcontrol objc objc++ objc-gc ocr odk ofa offensive offlinehelp ofx ogg ogg123 ogm okteta okular omega oniguruma openal openct opencv opendbx openexr openft opengl openid openinventor openipmi openmedia openmp openpgp openrc opensc opensm openssl opensslcrypt openstreetmap opensync openvpn openxml opera optimisememory optimization optimized-qmake origin oscar osdmenu osmesa otr ots ovftool pam pango pcap pcntl pda pdf pdfannotextractor pep8 perforce perl pgf phonehome php physfs playdar player playlist playtools plazes plotutils plugins png pnm pogooglue policykit pop portmon posix postgres postproc postscript powersave ppds ppp prediction privacy privacylists private-headers privatestorage profiler profiling projectm pronounce ps psf pstoedit pstricks publishers publishsubscribe pvr pyflakes pygments pylint pyqt4 python python3 pyx qalculate qdbm qimageblitz qmake qml qq qqwry qrcode qscintilla qt3support qt4 quicklaunch quicktime quotes qwt radio raptor rar rcs rdesktop readline real realtime recode redeyes registration remotecontrol remoteosd replaygain resolver reviewboard rfc3779 romio rope rostersearch rpc rplay rss rtc rtf rtmp rtsp rubrica samba sasl scale0tilt scanfolder scanner schroedinger science scipy script scripts scrobbler sctp sdk sdl sdl-image sdl-sound sdlaudio sdlgfx seamless-hbars secure-delete security semantic-desktop sendto sensord session shared-dricore shine shorten shout sidebar sip skyhook skype slang slit smbclient smbsharemodes smbtav2 smi smime smp sms smtp smux sna sndfile snmp socialweb sockets socks5 sound source sourceview sox sparse speex spell sql sqlite sqlite3 sse sse2 sse3 sse4_1 ssh ssl ssse3 stars startup-notification stats stream stroke strong-optimization subversion svg system-sqlite systemtap t1lib taglib talkfilters tcl tcpd tcpreplay tdb tellico templates tex tex4ht texmacs themes theora thesaurus thin-splines threads thunderbird tidy tiff tint2conf tk toolame toolbar toolkit-scroll-bars tools tor tordns tproxy trace traits truetype tslib tta tweak-mode twitgin twitter twolame udev udisks ukit unicode unique unlock-notify upcall upower urlpicpreview urwid usb utils uxa v4l v8 vaapi valgrind vamp vcd vcdx verse video view-captcha vim vim-pager vim-syntax visual vix vkontakte vlc vlm vmd vmware-tools vmware_guest_freebsd vmware_guest_linux vmware_guest_netware vmware_guest_solaris vmware_guest_winPre2k vmware_guest_windows vnc vocoder voice volpack vorbis vpx vtk wallpapers wav waveout wavpack wddx weather weather-metar weather-xoap webdav-neon webgl webm webp whiteboarding width wifi winbind wineappdb winpopup wireshark wma wma-fixed wmf word-perfect wordperfect wpd wpg wps wxwidgets wyfv x264 xanim xattr xbase xcap xchatdccserver xcomposite xdg xdmcp xetex xface xforward xfs xft xgetdefault xhtml xim xindy xine xinerama xls xml xmldoclet xmlpatterns xmlreader xmlrpc xmlsec xmlwriter xmp xmpp xmppuriqueries xnest xorgmodule xosd xpm xps xrandr xrender xscreensaver xterm xv xvfb xvid yahoo yahoo-geo yandexnarod yaz youtube zephyr zero-penalty-hit ziffy zip zlib zsh-completion zvbi" 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="ricoh samsung spca50x" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DVB_CARDS="dibusb-usb1 dibusb-usb2 usb-dib0700" ELIBC="glibc" ENLIGHTENMENT_MODULES="access backlight battery clock comp conf-applications conf-dialogs conf-display conf-edgebindings conf-interaction conf-intl conf-keybindings conf-menus conf-paths conf-performance conf-randr conf-shelves conf-theme conf-window-manipulation conf-window-remembers connman cpufreq dropshadow everything fileman fileman-opinfo gadman ibar ibox illume2 mixer msgbus notification pager quickaccess shot start syscon systray tasks temperature tiling winlist wizard xkbswitch" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pt_BR en de en_GB" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy java mobility profiler websvccommon javacard javafx" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3" RUBY_TARGETS="ruby18 ruby19 ruby20 ruby21" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="vesa vga v4l fbdev intel" XTABLES_ADDONS="account chaos condition delude dhcpmac fuzzy geoip iface ipmark ipp2p ipv4options length2 logmark lscan pknock psd quota2 rawnat steal sysrq tarpit tee checksum dnetmap echo gradm ipset4"
USE_PYTHON="2.7 3.2 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC


Reproducible: Always

Steps to Reproduce:
Just updated dante-1.4.0
Comment 1 Andrew Savchenko gentoo-dev 2014-01-10 10:14:18 UTC
Same problem here: dante-1.4.0 and irssi-0.8.15-r1[socks5 ssl ipv6 -perl]:
Irssi: Unable to connect server irc.freenode.net port 6697 [Network is unreachable], while host is reachable and other clients (e.g. hexchat) work fine.
Comment 2 Andrew Savchenko gentoo-dev 2014-01-10 10:15:48 UTC
Created attachment 367558 [details]
emerge --info
Comment 3 Andrew Savchenko gentoo-dev 2014-01-10 10:26:01 UTC
Downgrade to dante-1.4.0_pre1-r1 solved the problem for me. I masked dante-1.4.0 for now.
Comment 4 Jacob Braun 2014-01-12 21:28:17 UTC
I can confirm this bug and the "resolution". Downgrading dante allowed me to connect fine.
Comment 5 Jacob Braun 2014-03-21 16:29:01 UTC
Has anyone tried the newer dante with the recently added irssi 0.8.16_rc1?
Comment 6 Ben Kohler gentoo-dev 2014-08-01 14:48:30 UTC
FYI this is affecting our minimal installcd isos.  Since dante-1.4.0-r1 went stable in June, all of our minimal isos are shipping with broken irssi.
Comment 7 Ben Kohler gentoo-dev 2014-08-01 15:12:43 UTC
This still affects irssi-0.8.16, too
Comment 8 Jacob Braun 2014-08-01 16:16:39 UTC
Confirming what Ben said below. Still masking anything greater than 1.4.0_pre1-r1 so I can use irssi.
Comment 9 Ben Kohler gentoo-dev 2014-08-01 18:39:51 UTC
I see the problem now.  As of dante-1.4.0, the fallback to direct route (no proxy) is disabled by default.  So unless you have a working socks proxy, applications using socks/dante are going to fail.


Tail of dante-1.3.2 output:
...
debug: socks_requestpolish(): no route found, assuming direct fallback is ok
debug: Rconnect(): route prepared for socket 4 is a direct route
debug: Rconnect(): direct connect on socket 4 to 38.229.70.20.6667 returned -1: (Operation now in progress)
debug: Rgetsockopt(), socket 4

------

Tail of dante-1.4.0 output:
...
info: socks_requestpolish(): no route found to handle request connect and direct route fallback disabled.  Nothing we can do.
Comment 10 Ben Kohler gentoo-dev 2014-08-01 18:48:35 UTC
And from the NEWS file on dante-1.4.0:

 o Fallback to direct (non-proxy) routes now defaults to off in the client,
   as well as in the server.

   To keep previous behaviour in the client, with direct route fallback
   for destinations with no matching route, set SOCKS_DIRECTROUTE_FALLBACK
   to "yes" in the environment, or ./configure with --enable-drt-fallback.

   Direct fallback is enabled if there are no routes configured (as is
   usually the case in a server configuration), and disabled otherwise.


I have confirmed that either of the above mentioned workarounds does resolve the issue.  I would be in favor of setting --enable-drt-fallback in our ebuilds to preserve old behavior, but that's a decision to be made by the dante & irssi maintainers.
Comment 11 Ben Kohler gentoo-dev 2014-08-03 16:40:50 UTC
I think this is "breaking" all applications which use dante, I just tested net-ftp/lftp[socks5] and it does the same thing:

# lftp ftp.mozilla.org
lftp ftp.mozilla.org:~> ls                          
`ls' at 0 [Network is unreachable]
Comment 12 Ben Kohler gentoo-dev 2014-08-17 19:51:47 UTC
--- dante-1.4.0-r1.ebuild       2014-08-17 14:49:46.255929033 -0500
+++ dante-1.4.0-r2.ebuild       2014-08-17 14:50:55.208929639 -0500
@@ -57,6 +57,7 @@
                --enable-preload \
                --enable-clientdl \
                --enable-serverdl \
+               --enable-drt-fallback \
                --with-libc=libc.so.6 \
                $(use_enable debug) \
                $(use_with kerberos gssapi) \
Comment 13 Rick Farina (Zero_Chaos) gentoo-dev 2014-08-18 14:11:41 UTC
This is an issue for our users and our livecd so while wearing my releng and QA hat I will be committing the fix in comment 12 on August 25th if no one else does.
Comment 14 Rick Farina (Zero_Chaos) gentoo-dev 2014-08-19 02:30:41 UTC
18:07 < dastergon> feel free to touch the package if you want

+  19 Aug 2014; Rick Farina <zerochaos@gentoo.org> +dante-1.4.0-r2.ebuild:
+  fixing bug #497586 and setting defaults back to 1.4.0_pre settings. avoiding
+  load on arch teams for this tested fix

done
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-28 09:21:50 UTC
*** Bug 521306 has been marked as a duplicate of this bug. ***