[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp with socksify
From: |
Fabian Braennstroem |
Subject: |
Re: tramp with socksify |
Date: |
Thu, 23 Aug 2007 21:47:49 +0000 |
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 |
Hallo Michael,
Michael Albinus schrieb am 08/23/2007 06:57 AM:
> Fabian Braennstroem <f.braennstroem@gmx.de> 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(#<buffer *load*> 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