info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: proxy for Gnus ?


From: Maciek Pasternacki
Subject: Re: proxy for Gnus ?
Date: Sat, 05 Feb 2005 16:11:47 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

On Sweetmorn, Chaos 36, 3171 YOLD, William Xuuu wrote:

> Is it possible to set a proxy for Gnus, so that to be able to connect some
> foreign newsgroup servers?

Gnus can use SOCKSv5 with socks.el from w3.  From my .gnus.el:

(require 'socks)
(setq socks-server '("default" "socks.hostname" socks-port 5)
      socks-username "Login"
      socks-password "Password")

(defun nntp-open-socks-stream (buffer)
  (socks-open-network-stream "nntpd" buffer nntp-address nntp-port-number))

(setq 
 gnus-select-method '(nntp "news.task.gda.pl"
                           (nntp-open-connection-function 
nntp-open-socks-stream))
 gnus-secondary-select-methods '((nnml "Mailbox"
                                       (nnml-directory "~/Mail/")
                                       (nnml-active-file "~/Mail/active")
                                       (nnml-newsgroups-file 
"~/Mail/newsgroups")
                                       (nnml-use-compressed-files t))
                                 (nntp "internal.news.server.somewhere.in.pl"
                                       (nntp-open-connection-function 
nntp-open-socks-stream)
                                       (nntp-connection-timeout 5))
                                 (nntp "news.szpieg.gda.pl"
                                       (nntp-open-connection-function 
nntp-open-socks-stream)
                                       (nntp-connection-timeout 15))
                                 (nntp "news.gmane.org"
                                       (nntp-open-connection-function 
nntp-open-socks-stream)
                                       (nntp-connection-timeout 10))))

Works well with usocksd running from user account on proxying server.

-- 
__    Maciek Pasternacki <maciekp@japhy.fnord.org> [ http://japhy.fnord.org/ ]
`| _   |_\  / { ...wszystkie dokumenty uległy rozkładowi.
,|{-}|}| }\/       Wszystko, co kochałem, uległo rozkładowi.
\/   |____/        Jestem zdrów i cały. }              ( M. Świetlicki )  -><-

reply via email to

[Prev in Thread] Current Thread [Next in Thread]