Version: (using KDE KDE 3.4.2) Installed from: Slackware Packages Compiler: gcc-3.3.6 OS: Linux I run dante socks and setup in /etc/ directory file socks.conf { route from 0.0.0.0/0 to 0.0.0.0/0 via 192.168.11.101 port 5555 protocol: tcp udp proxyprotocol: socks_v4 socks_v5 method: none } 192.168.11.101 is my socks server on different server. In konqueror in settings -> Proxy -> socks and click enable socks and select dante. In Proxy menu i select Connect to internet directly (may this is the right choice, i search in google but no any documentations found how what is the right choice). I restart konqueror but konqueror does not run again, kcontrol also unable to run. No any error messages. I make strace output and i see: open("/usr/lib/libsocks.so", O_RDONLY) = 15 open("/etc/socks.conf", O_RDONLY) = 15 read(15, "# $Id: socks.conf,v 1.28 2001/12"..., 8192) = 4604 open("/tmp/./sockslockXXXXFTsQfL", O_RDWR|O_CREAT|O_EXCL, 0600) = 16 unlink("/tmp/./sockslockXXXXFTsQfL") = 0 File socks.conf is loaded normal, but in end of file last few lines is: write(9, "\1\2\1\0\307\0\0\0\235\2\0\0", 12) = 12 write(9, "\0\0\0\20konqueror-16906\0\0\0\0\vDCOPServ"..., 110) = 110 write(9, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0EKBookmarkManager"..., 89) = 89 read(9, "\2\3\0\0021\0\0\0", 8) = 8 read(9, "\235\2\0\0", 4) = 4 read(9, "\0\0\0\vDCOPServer\0\0\0\0\20konqueror-169"..., 49) = 49 gettimeofday({1125994407, 508942}, NULL) = 0 gettimeofday({1125994407, 509000}, NULL) = 0 munmap(0xb750b000, 4096) = 0 exit_group(1) = ? Any body know what is the problem ?
Setting to Direct Connection was the right thing to do.
Hm ... very interest, i resolve a problem with konqueror exit but i unable to make it to use socks. My socks.conf file only have: route { from: 0.0.0.0/0 to: 0.0.0.0/0 via: 192.168.11.101 port = 5423 proxyprotocol: socks_v5 } 192.168.11.101 is my socks server. My server are setuped to accept connection from my home pc, but i see in socks server that my home pc does not connect to socks server and in log of socks client have: Sep 8 10:37:42 (1126165062) KDE[4784]: dante/client v1.1.17 running Sep 8 10:37:42 (1126165062) KDE[4784]: Rconnect(): unsupported address family '1', fallback to system connect() I check socks serve with mozilla and work fine but with konqueror does not. Any solutions about this problem ?
That error message is expected and normal, since Konqueror and other KDE applications use and abuse Unix-domain sockets (which are family 1). But I really don't know what the problem could be. Can you attach a full strace of a simple KDE program (kcontrol is ok)?
Created attachment 12516 [details] konqueror strace output
Comment on attachment 12516 [details] konqueror strace output Changing the MIME type for the attachment.
I don't see anything wrong with the trace you attached. According to it, Konqueror opened fine and browsed to a site on mit.edu. I can even see the webpage being retrieved in the trace. So, what exactly happened in that trace that was wrong? Also, can you try a simpler app than Konqueror?
Can't work with socks. My pc does not connect to socks server and socks client log: Sep 8 10:37:42 (1126165062) KDE[4784]: dante/client v1.1.17 running Sep 8 10:37:42 (1126165062) KDE[4784]: Rconnect(): unsupported address family '1', fallback to system connect() What program also support with socks in kde to try ?
Please describe "can't work with socks" a little better: does Konqueror start? can you interact with it? can you type addresses in Konqueror? does it look like it's going to a website? does the website show? can you close the application? I need details to understand what is going wrong. In special, note that your strace shows that you DID go to a website, because a webpage was received. So, from what I can see, Konqueror is working and there's nothing wrong.
Yes, Konqueror is started, can see pages and all, BUT DOES NOT WORK WITH SOCKS! It's does not connect to socks server! Dante client log say: Sep 8 10:37:42 (1126165062) KDE[4784]: dante/client v1.1.17 running Sep 8 10:37:42 (1126165062) KDE[4784]: Rconnect(): unsupported address family '1', fallback to system connect() So Konqueror or KDE does not use right socks library. See: Sep 8 10:37:42 (1126165062) KDE[4784]: dante/client v1.1.17 running Sep 8 10:37:42 (1126165062) KDE[4784]: Rconnect(): unsupported address family '1', fallback to system connect() Dante clinet say that do not recive from KDE/Konqueror supported address family!
How have you configured socks? With socksify or did you configure it in KControl?
Yes, i have configured dante socks server that work fine with mozilla and i make socks.conf in my /etc/ directory that contain: $cat /etc/socks.conf debug: 1 logoutput: /var/log/dante-client route { from: 0.0.0.0/0 to: 0.0.0.0/0 via: 192.168.11.101 port = 5423 proxyprotocol: socks_v5 } And i configure my konqueror to use socks from kcontrol -> internet & network -> Proxy that i say: Direct connect and from socks menu click enable socks -> select dante and restart konqueror (test say socks is loaded sucessful). After restart of konqueror and my dante client log: Sep 8 10:37:42 (1126165062) KDE[4784]: dante/client v1.1.17 running Sep 8 10:37:42 (1126165062) KDE[4784]: Rconnect(): unsupported address family '1', fallback to system connect() and konqueror going direct connect to site not to socks server. I have permissions to socks server and i see that my home pc does not connect to socks server.
Have you logged out and back in after making these changes?
No, i exit from konqueror and start again. I have some terminals opened in X mode and i unable to restart my X server or KDE. Konqueror say that doed not needed to restart KDE, just to restart konqueror. I now remember that may be i tried to restart X server and kde and changes have no effect. Yes, i restarted kde and no effect with new settings. When i tried to open url dante client logged the same error: Sep 8 10:37:42 (1126165062) KDE[4784]: dante/client v1.1.17 running Sep 8 10:37:42 (1126165062) KDE[4784]: Rconnect(): unsupported address family '1', fallback to system connect()
Please try this (and follow instructions precisely): 1. Open Konqueror 2. Open Konsole 3. Run in Konsole: killall kio_http 4. Run in Konsole: strace -f -t -s 1024 -o /tmp/kdeinit.trace kdeinit 5. Browse a site in the Konqueror window that was open 6. When the site finishes loading, go back to Konsole, quit strace and run: kdeinit 7. Attach the kdeinit.trace file here
Created attachment 12522 [details] kdeinit strace output
I attach you strace output, the site that i tried to open (privacy.net) does not opened complete, i see dante client log that the same error has been logged.
Ok, now I understand. Your trace confirms what you said: the connection was direct, not through the SOCKS server. Is there any chance you could test KDE 3.5 beta 1 (due to be out in a week)? I think I fixed a bug related to this recently.
Ok, i will test it and will report you if bug is fixed or not.
Have you had a chance to test this?
Does this problem still exist in KDE 3.5?
this is definitely happening in kde-3.5.1 in exactly the fashion described.
this is definitely happening in kde-3.5.5 in exactly the fashion described with dante-1.1.19 on gentoo.
Please, could someone test how is working now with konqueror 3.5.9 and 4 ?
This does not apply to KDE 4 since SOCKS support was dropped.
So we can close this? Or should we let it open for a future fix on 3.5 ?
Agreed.