From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83747 Path: news.gmane.org!not-for-mail From: Abramov Aleksey Newsgroups: gmane.emacs.gnus.general Subject: Re: Coaching to ssh port forward an NNTP connection Date: Tue, 27 Aug 2013 11:23:56 +0400 Message-ID: <87a9k3ha0j.fsf@mmer.org> References: <7kzjs819br.fsf@callisto.jtan.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1377619151 14627 80.91.229.3 (27 Aug 2013 15:59:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Aug 2013 15:59:11 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32003@lists.math.uh.edu Tue Aug 27 17:59:13 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VELfk-000871-SA for ding-account@gmane.org; Tue, 27 Aug 2013 17:59:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1VELfA-0000Zq-8l; Tue, 27 Aug 2013 10:58:36 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1VEDeF-0006l4-6K for ding@lists.math.uh.edu; Tue, 27 Aug 2013 02:25:07 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1VEDeC-0003Ep-UP for ding@lists.math.uh.edu; Tue, 27 Aug 2013 02:25:06 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1VEDeA-00052O-Uh for ding@gnus.org; Tue, 27 Aug 2013 09:25:02 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VEDeA-0001pZ-RD for ding@gnus.org; Tue, 27 Aug 2013 09:25:02 +0200 Original-Received: from broadband-95-84-129-236.nationalcablenetworks.ru ([95.84.129.236]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Aug 2013 09:25:02 +0200 Original-Received: from levenson by broadband-95-84-129-236.nationalcablenetworks.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Aug 2013 09:25:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 47 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: broadband-95-84-129-236.nationalcablenetworks.ru User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:heP3no3ZkhqbbnUT6dqCPBz2JbY= X-Spam-Score: -4.3 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83747 Archived-At: Harry Putnam writes: > I'm completely lost trying to understand how port forwarding with ssh > might do what I'd like to do. > > Currently my normal ISP (direcpath) has been banned at > new.gmane.org... I'm not sure what is going on but at least one other > person has posted on gmane.emacs.gnus.user that they were having a > similar problem. > > Until the problem gets cleared up, I'd Like to try to use ssh to trick > news.gmane.org into thinking the connection is from s remote machine I > have access to that is not in direcpath domain. The idea being that I > could sit at my desktop. Fire up emacs/gnus but the nntp conversation > is running in a ssh tunnel to the remote machine and from there to > news.gmane.org > > I do not have root at the remote machine but I recall long long ago > doing something similar with that same remote and home desktop but at > that time it didn't involve nntp. > > Trouble is I cannot remember the first thing about how it was done or > find any notes I may have kept... this has been 10 or more yrs ago. > > Can anyone give an outline of how something like that might be done? > To create an ssh tunnel is pretty easy. # ssh -ANf -L5119:news.gmane.org:119 router.example.com # telnet localhost 5119 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 200 news.gmane.org InterNetNews NNRP server INN 2.5.1 ready (posting ok) Connection closed by foreign host. There could be only one problem, TCP forwarding shouldn't be disabled in sshd which you are connecting to. In my case the interesting thing is that, there is a http proxy before router. =) -- Sincerely, Abramov Aleksey.