Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Maciek Pasternacki <maciekp@japhy.fnord.org>
Subject: Re: proxy for Gnus ?
Date: Sat, 05 Feb 2005 16:11:47 +0100	[thread overview]
Message-ID: <874qgrvy6k.fsf@lizard.king> (raw)
In-Reply-To: <87is5735a7.fsf@williamxuuu.org>

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	other threads:[~2005-02-05 15:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-05  6:11 William Xuuu
2005-02-05 15:11 ` Maciek Pasternacki [this message]
2005-05-18  1:27 william_xuuu
2005-05-18  7:51 ` Reiner Steib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874qgrvy6k.fsf@lizard.king \
    --to=maciekp@japhy.fnord.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).