Gnus development mailing list
 help / color / mirror / Atom feed
From: merlyn@stonehenge.com (Randal L. Schwartz)
Cc: ding@gnus.org
Subject: Re: tunneling nntp connection
Date: 31 Oct 2000 06:50:32 -0800	[thread overview]
Message-ID: <m1lmv53w07.fsf@halfdome.holdit.com> (raw)
In-Reply-To: Karl Kleinpaste's message of "31 Oct 2000 08:51:04 -0500"

>>>>> "Karl" == Karl Kleinpaste <karl@charcoal.com> writes:

Karl> Use an ssh tunnel:
Karl> ssh -g -q -f -x -L8787:localhost:119 other.host sleep 1000000
Karl> Then you use port 8787 on localhost to reach other.host's port 119.

You don't need the huge sleep if you launch it within the actual
connection.  Here's what I use:

(setq
 gnus-select-method '(nntp "news.telemumble.com"
			   (nntp-address "localhost")
			   (nntp-port-number 11901)
			   (nntp-prepare-server-hook
			    (lambda nil "tunnel prepare"
			      (call-process "ssh" nil 0 nil "-f" "-q"
					    "-L" "11901:news.oneblame.com:119"
					    "telemumble.com" "exec" "sleep" "60")
			      (sit-for 3)))))



-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



  reply	other threads:[~2000-10-31 14:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-31 13:28 Paul Stevenson
2000-10-31 13:51 ` Karl Kleinpaste
2000-10-31 14:50   ` Randal L. Schwartz [this message]
2000-10-31 15:03   ` Paul Stevenson
2000-10-31 13:51 ` Stainless Steel Rat
2000-10-31 14:14   ` Peter Makholm
2000-10-31 15:05     ` Stainless Steel Rat
2000-10-31 14:44   ` Jake Colman
2000-10-31 15:07   ` Paul Stevenson
2000-10-31 15:21     ` Peter Makholm
2000-10-31 16:15       ` Paul Stevenson

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=m1lmv53w07.fsf@halfdome.holdit.com \
    --to=merlyn@stonehenge.com \
    --cc=ding@gnus.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).