Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* proxy for Gnus ?
@ 2005-05-18  1:27 william_xuuu
  2005-05-18  7:51 ` Reiner Steib
  0 siblings, 1 reply; 4+ messages in thread
From: william_xuuu @ 2005-05-18  1:27 UTC (permalink / raw)


Hi, there.

Now the only way for me to connect the net is throught a http proxy.
How do I tell Gnus, and all ftp/telnet/ssh session to go throught it
either ?

thanks.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: proxy for Gnus ?
  2005-05-18  1:27 proxy for Gnus ? william_xuuu
@ 2005-05-18  7:51 ` Reiner Steib
  0 siblings, 0 replies; 4+ messages in thread
From: Reiner Steib @ 2005-05-18  7:51 UTC (permalink / raw)


On Wed, May 18 2005, william_xuuu@163.com wrote:

> Now the only way for me to connect the net is throught a http proxy.
> How do I tell Gnus, and all ftp/telnet/ssh session to go throught it
> either ?

I never tried, but it should be possible, see (info "(gnus)Indirect
Functions") and (info "(gnus)Example Methods") ...

,----[ (info "(gnus)Example Methods") ]
|    If you are behind a firewall and only have access to the NNTP server
| from the firewall machine, you can instruct Gnus to `rlogin' on the
| firewall machine and telnet from there to the NNTP server.  Doing this
| can be rather fiddly, but your virtual server definition should
| probably look something like this:
| 
|      (nntp "firewall"
|            (nntp-open-connection-function nntp-open-via-rlogin-and-telnet)
|            (nntp-via-address "the.firewall.machine")
|            (nntp-address "the.real.nntp.host")
|            (nntp-end-of-line "\n"))
| [...]
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: proxy for Gnus ?
  2005-02-05  6:11 William Xuuu
@ 2005-02-05 15:11 ` Maciek Pasternacki
  0 siblings, 0 replies; 4+ messages in thread
From: Maciek Pasternacki @ 2005-02-05 15:11 UTC (permalink / raw)


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 )  -><-


^ permalink raw reply	[flat|nested] 4+ messages in thread

* proxy for Gnus ?
@ 2005-02-05  6:11 William Xuuu
  2005-02-05 15:11 ` Maciek Pasternacki
  0 siblings, 1 reply; 4+ messages in thread
From: William Xuuu @ 2005-02-05  6:11 UTC (permalink / raw)


Hi,

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

thanks.

-- 
William


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-05-18  7:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-18  1:27 proxy for Gnus ? william_xuuu
2005-05-18  7:51 ` Reiner Steib
  -- strict thread matches above, loose matches on Subject: below --
2005-02-05  6:11 William Xuuu
2005-02-05 15:11 ` Maciek Pasternacki

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).