Bug 252500 - Connection failure using SOCKS5 proxy
Summary: Connection failure using SOCKS5 proxy
Status: REOPENED
Alias: None
Product: konversation
Classification: Applications
Component: general (show other bugs)
Version: 1.5-rc1
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-27 05:48 UTC by _
Modified: 2021-07-30 16:17 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ 2010-09-27 05:48:43 UTC
on a remote opensuse 11.3 server,

	lsb_release -a
		LSB Version:    core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-ia32:core-3.2-ia32:core-4.0-ia32:desktop-4.0-ia32:desktop-4.0-noarch:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.2-ia32:graphics-3.2-noarch:graphics-4.0-ia32:graphics-4.0-noarch
		Distributor ID: SUSE LINUX
		Description:    openSUSE 11.3 (i586)
		Release:        11.3
		Codename:       n/a

i installed

	rpm -qa | grep -i dante-server
		dante-server-1.1.19-139.1.i586

started sockd

	ps ax | grep -i sockd
	 2038 ?        S<s    0:00 /usr/sbin/sockd -D
	 2039 ?        S<     0:00 /usr/sbin/sockd -D
	 2040 ?        S<     0:00 /usr/sbin/sockd -D
	 2041 ?        S<     0:00 /usr/sbin/sockd -D
	 2042 ?        S<     0:00 /usr/sbin/sockd -D
	 2043 ?        S<     0:00 /usr/sbin/sockd -D
	 2044 ?        S<     0:00 /usr/sbin/sockd -D
	 2045 ?        S<     0:00 /usr/sbin/sockd -D
	 2240 pts/3    S<+    0:00 grep -i sockd

listening on,

	netstat -an | grep 1080
		tcp        0      0 127.0.0.1:1080          0.0.0.0:*               LISTEN


on a client, i opened a tunnel to the server,

	ssh -L 1080:localhost:1080 root@my.remote.server

	ps ax | grep "ssh -L"
		20458 pts/2    S+     0:00 ssh -L 1080:localhost:1080 root@my.remote.server

i open firefox, setup to use the SOCKS5 proxy @ 127.0.0.1:1080, and can successfully nav to http://kde.org, where logs show the accepted connection,

	tail -f /var/log/dante.log
		Sep 26 20:05:16 (1285556716) sockd[2039]: pass(1): tcp/accept [: 127.0.0.1.35276 -> 127.0.0.1.1080
		Sep 26 20:05:17 (1285556717) sockd[2039]: pass(1): tcp/accept [: 127.0.0.1.35277 -> 127.0.0.1.1080
		Sep 26 20:05:17 (1285556717) sockd[2039]: pass(1): tcp/accept [: 127.0.0.1.35278 -> 127.0.0.1.1080
		Sep 26 20:05:17 (1285556717) sockd[2039]: pass(1): tcp/accept [: 127.0.0.1.35279 -> 127.0.0.1.1080
		Sep 26 20:05:18 (1285556718) sockd[2400]: created new iochild
		Sep 26 20:05:18 (1285556718) sockd[2039]: pass(1): tcp/accept [: 127.0.0.1.35280 -> 127.0.0.1.1080
		...


next, i open chatzilla/firefox, still setup to use the SOCKS5 proxy @ 127.0.0.1:1080, and can successfully connect to irc://irc.oftc.net:6667, where

	tail -f /var/log/dante.log
		Sep 26 20:40:18 (1285558818) sockd[3802]: pass(1): tcp/accept [: 127.0.0.1.42335 -> 127.0.0.1.1080
		Sep 26 20:40:25 (1285558825) sockd[3802]: pass(1): tcp/accept [: 127.0.0.1.42336 -> 127.0.0.1.1080
		Sep 26 20:40:26 (1285558826) sockd[3802]: pass(1): tcp/accept [: 127.0.0.1.42337 -> 127.0.0.1.1080
		...

finally, i open Konversation, setup to use the SOCKS5 proxy @ 127.0.0.1:1080, and attempt to connect irc://irc.oftc.net:6667;

the connection FAILS, where, at Konversation console,

	[20:28] [Info] Looking for server irc.oftc.net (port 6697) ...
	[20:28] [Error] Connection to server irc.oftc.net (port 6697) lost: Unknown error.
	[20:28] [Info] Trying to reconnect to irc.oftc.net (port 6697) in 10 seconds.
	[20:29] [Info] Looking for server irc.oftc.net (port 6697) ...
	[20:29] [Error] Connection to server irc.oftc.net (port 6697) lost: Unknown error.
	[20:29] [Info] Trying to reconnect to irc.oftc.net (port 6697) in 10 seconds.

and,

	tail -f /var/log/dante.log
		Sep 26 20:29:02 (1285558142) sockd[3802]: pass(1): tcp/accept [: 127.0.0.1.57377 -> 127.0.0.1.1080
		Sep 26 20:29:11 (1285558151) sockd[3803]: socketoptdup(): setsockopt(0, 32): Invalid argument (errno = 22)
		Sep 26 20:29:11 (1285558151) sockd[3803]: socketoptdup(): setsockopt(0, 33): Invalid argument (errno = 22)
		Sep 26 20:29:20 (1285558160) sockd[3803]: socketoptdup(): setsockopt(0, 32): Invalid argument (errno = 22)
		Sep 26 20:29:20 (1285558160) sockd[3803]: socketoptdup(): setsockopt(0, 33): Invalid argument (errno = 22)
Comment 1 Eike Hein 2013-04-15 01:51:01 UTC
Is this still an issue with newer versions?
Comment 2 rdmadss1 2013-08-15 11:08:47 UTC
Yes
Comment 3 rdmadss1 2013-08-15 11:09:31 UTC
Here using Konversation: 1.5-branch #4215 on KDE 4.10.5, Qt 4.8.4
Comment 4 Eike Hein 2013-08-15 22:57:01 UTC
Thank you for the update.
Comment 5 Nolaan 2016-08-11 08:52:46 UTC
This issue is still present in version 1.6.1, worst it manages to connect silently thus leaking your private IP adress.
Comment 6 Daniel Roschka 2021-07-30 16:17:17 UTC
This bug is still present in Konversation 1.7.7.