[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: Re: SOCKS and Konqueror "micro-HOWTO"
From: George Staikos <staikos () kde ! org>
Date: 2001-04-17 18:43:26
[Download RAW message or body]
Yes this has always been a good solution for those systems which have
runsocks/LD_PRELOAD available. It's a little less userfriendly for people
who aren't accustomed to the command prompt too. (yes, KDE is starting to
get some of those users!)
Thanks for the micro-HOWTO. We should put this together with the KSOCKS
documentation as an alternative method.
On Tuesday 17 April 2001 13:17, David Sweet wrote:
> I've seen a lot questions about using Konqueror via a SOCKS proxy (a common
> proxy system that keeps users somewhat safe behind a firewall).
>
> Here's how I did it on a Mandrake 7.2 system.
> 1) Install runsocks (I used
> ftp://rpmfind.net/linux/falsehope/home/gomez/socks5/runsocks-1.0r11-3.i386.
>rpm but you might need a different version for your system) and follow the
> instructions to configure it. For example, my /etc/libsocks5.conf file
> reads: sock5 - - - - 172.37.0.34
> where the IP is the LAN-wide IP of our firewall.
> 2) As root,
> cp $KDEDIR/bin/kdeinit $KDEDIR/bin/kdeinit.orig
> where, on Mandrake 7.2, KDEDIR=/usr
> 3) As root,
> echo 'runsocks kdeinit.orig $*' > $KDEDIR/bin/kdeinit
>
>
> How it works:
> runsocks intercepts network-related (libc?) function calls using
> LD_PRELOAD and turns them into SOCKS operations. The program being
> executed with runsocks is none the wiser. You usually use runsocks like
> this:
> 'runsocks ftp ftp.kde.org'
> or similarly.
> You, therefore, might be tempted to run konqueror like this:
> 'runsocks konqueror http://www.kde.org'
> but it wouldn't work. All of the network IO is handled by kioslaves which
> do not run in the konqueror process but instead are started by kdeinit as
> dynamically loaded libraries. So what we really want to do is to turn every
> exec of 'kdeinit' into 'runsocks kdeinit', thus, we have the above hack.
>
> Enjoy. Let me know if you have any problems.
>
> Dave
--
George Staikos
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic