From: Valery V. V. <val...@gm...> - 2010-07-20 16:03:07
|
> Django <dj...@1a...> wrote: > >> I'd like to give jabber.el a try in my office environment. >> >> Unfortunately I can't manage, to get the client connected to my account >> at the jabber server, as I'm sitting behind a web proxy. >> >> My jabber server provides me with an access via port 80, which I'd use, >> as port 5223 is blocked by the firewall anyway. However, direct >> connection to the jabber server doesn't work. >> >> I tried this configuration with JabberEl 0.8.0 (private information XXXed): >> >> (custom-set-variables >> '(jabber-account-list (quote (("django@XXX" (:password . "XXX") >> (:network-server . "jabberd.XXX.de") (:port . 80) (:connection-type >> . network)))))) >> >> Can't get connection this way. It hangs. >> >> With my psi client I can specify a connection proxy of type HTTP >> "Connect". That works fine. >> >> Is there some similar setting to use with JabberEl? Any ideas? Magnus Henoch <mag...@gm...> wrote: > I'm afraid that's currently impossible, at least with only Emacs. > > From your Psi settings I deduce that this is not a straight XMPP connection > on port 80, but you're using the HTTP CONNECT method. Emacs currently > doesn't support doing that for arbitrary TCP connections. (I think I filed a > request for that in the emacs bug tracker, though) > > You may be able to use some other program to proxy the connection for you, > as is often used for SOCKS proxies. I don't know of any such program for > HTTP proxies, though... I use corkscrew [*] for this purpose. It lets me connect emacs-jabber to GTalk through a corporate proxy server with HTTP authentication. [*] http://www.agroman.net/corkscrew/ This line of inetd.conf creates "listening" socket at localhost:12345. Every connection to this port gets proxied through proxyserver:3128 to talk.google.com:443. $ grep -B1 talk\.google /etc/inetd.conf #:OTHER: Other services 12345 stream tcp nowait vvv /usr/bin/corkscrew /usr/bin/corkscrew proxyserver 3128 talk.google.com 443 /home/vvv/.proxy-auth (Note, that grep prints two lines. Those may be wrapped by a mail agent.) An authentication file: $ cat /home/vvv/.proxy-auth username:password $ ls -l /home/vvv/.proxy-auth -rw------- 1 vvv vvv 20 Jul 11 2008 /home/vvv/.proxy-auth And the corresponding ~/.emacs settings: $ sed -n '/jabber-account-list/,/^$/ p' /home/vvv/.emacs (setq jabber-account-list (list (append '("use...@gm..." (:connection-type . ssl)) (if (work-lan-p) '((:network-server . "127.0.0.1") (:port . 12345)) '((:network-server . "talk.google.com")))))) Hope this helps. -- vvv |