From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabian Braennstroem Newsgroups: gmane.emacs.help Subject: Re: tramp with socksify Date: Thu, 23 Aug 2007 21:47:49 +0000 Organization: FernUni Hagen Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1187901647 770 80.91.229.12 (23 Aug 2007 20:40:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Aug 2007 20:40:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 23 22:40:41 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IOJTr-0005eJ-Vr for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Aug 2007 22:40:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOJTr-00027O-CM for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Aug 2007 16:40:39 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed.kamp.net!news.osn.de!diablo2.news.osn.de!news.belwue.de!news-stu1.dfn.de!news-koe1.dfn.de!tamarack.fernuni-hagen.de!news.fernuni-hagen.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 73 Original-NNTP-Posting-Host: pd9e4914d.dip0.t-ipconnect.de Original-X-Trace: tamarack.fernuni-hagen.de 1187897826 18164 217.228.145.77 (23 Aug 2007 19:37:06 GMT) Original-X-Complaints-To: newsadmin@fernuni-hagen.de Original-NNTP-Posting-Date: Thu, 23 Aug 2007 19:37:06 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0 In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:151215 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46789 Archived-At: Hallo Michael, Michael Albinus schrieb am 08/23/2007 06:57 AM: > Fabian Braennstroem writes: > >> Hi Michael, > > Hi Fabian, > >>>>> You need to declare the socksv5 server as proxy: >>>>> >>>>> (add-to-list 'tramp-default-proxies-alist >>>>> (list "test.socksify.com" nil >>>>> "/socks:bypass.socksify.com#1080:")) >> I checked the socks.conf of my office machine, I have >> something like: >> >> route { >> from: 0.0.0.0/0 to: 10.239.253.0/24 via: IPsocks >> port = 180 > > Is this a typo? IPsocks was some kind of IP-number. > >> protocol: tcp >> proxyprotocol: socks_v4 socks_v5 >> method: none >> >> So I would do >> >> (add-to-list 'tramp-default-proxies-alist >> '(list "MyMachineName" nil "/socks:IPsocks#1080:")) >> >> but, first I do not know, if the syntax is correct and >> second my Emacs version 22.1 gives me: >> >> Symbol's value as variable is void: tramp-default-proxies-alist > > First, you must load Tramp in order to declare its variables: > > (require 'tramp) > > Usually, it is done by the autoloader when you access a remote host, > but you want to customize Tramp before. > > Then, you have quoted the list, which is wrong. You must write > > (add-to-list 'tramp-default-proxies-alist > (list "MyMachineName" nil "/socks:IPsocks#1080:")) I tried it without and with tramp 'required' and without the quoted list... but I get: Debugger entered--Lisp error: (void-variable tramp-default-proxies-alist) add-to-list(tramp-default-proxies-alist ("test.socksify.com" nil "/socks:141.36.72.254#1080:")) eval-buffer(# nil "/home/fab/.emacs" nil t) ; Reading at buffer position 193 load-with-code-conversion("/home/fab/.emacs" "/home/fab/.emacs" t t) load("~/.emacs" t t) #[nil "…¾ (require 'tramp) (add-to-list 'tramp-default-proxies-alist (list "test.socksify.com" nil "/socks:141.36.72.254#1080:")) Strange!? Thanks, Fabian