all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: tramp with socksify
  2007-08-02  6:05 tramp with socksify Fabian Braennstroem
@ 2007-08-02  5:31 ` Michael Albinus
       [not found] ` <mailman.4224.1186032713.32220.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 11+ messages in thread
From: Michael Albinus @ 2007-08-02  5:31 UTC (permalink / raw)
  To: Fabian Braennstroem; +Cc: help-gnu-emacs

Fabian Braennstroem <f.braennstroem@gmx.de> writes:

> Hi,

Hi,

> I wonder how I can use tramp together with socksify and telnet;
> i.e. right I connect with:
> /usr/bin/socksify telnet -l username ip-number port
>
> Does anyone know, if and how I can use tramp to open my remote files?
> Would be nice!

Recent Tramp 2.1 supports socksv5 proxies and http tunnels. Check the
manual for gateway methods. Note that you need GNU Emacs 22.1 for this.

> Regards!
> Fabian

Best regards, Michael.

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

* tramp with socksify
@ 2007-08-02  6:05 Fabian Braennstroem
  2007-08-02  5:31 ` Michael Albinus
       [not found] ` <mailman.4224.1186032713.32220.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 11+ messages in thread
From: Fabian Braennstroem @ 2007-08-02  6:05 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I wonder how I can use tramp together with socksify and telnet;
i.e. right I connect with:
/usr/bin/socksify telnet -l username ip-number port

Does anyone know, if and how I can use tramp to open my remote files?
Would be nice!

Regards!
Fabian

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

* Re: tramp with socksify
  2007-08-02 22:22   ` Fabian Braennstroem
@ 2007-08-02 22:22     ` Michael Albinus
       [not found]     ` <mailman.4278.1186093331.32220.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 11+ messages in thread
From: Michael Albinus @ 2007-08-02 22:22 UTC (permalink / raw)
  To: Fabian Braennstroem; +Cc: help-gnu-emacs

Fabian Braennstroem <f.braennstroem@gmx.de> writes:

> It sounds that it would be possible ... unfortunately the part about
> the gateway methods is not
> as informative as the others, at least I don't get a clue reading it
> and google does not help with socksify, telnet
> and tramp!?

OK let's try it together. Maybe we can find out in parallel how the
documentation can be approved.

Assume you will connect to test.socksify.com via telnet. Your socksv5
server is bypass.socksify.com:1080 (in fact I don't know neither the
host name nor the port number of their socksv5 server, it is just a
guess).

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

Then you can connect to test.socksify.com simply via "telnet:test.socksify.com".

> Fabian

Best regards, Michael.

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

* Re: tramp with socksify
       [not found] ` <mailman.4224.1186032713.32220.help-gnu-emacs@gnu.org>
@ 2007-08-02 22:22   ` Fabian Braennstroem
  2007-08-02 22:22     ` Michael Albinus
       [not found]     ` <mailman.4278.1186093331.32220.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 11+ messages in thread
From: Fabian Braennstroem @ 2007-08-02 22:22 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Michael,

Michael Albinus schrieb am 08/02/2007 05:31 AM:
> Fabian Braennstroem <f.braennstroem@gmx.de> writes:
> 
>> Hi,
> 
> Hi,
> 
>> I wonder how I can use tramp together with socksify and telnet;
>> i.e. right I connect with:
>> /usr/bin/socksify telnet -l username ip-number port
>>
>> Does anyone know, if and how I can use tramp to open my remote files?
>> Would be nice!
> 
> Recent Tramp 2.1 supports socksv5 proxies and http tunnels. Check the
> manual for gateway methods. Note that you need GNU Emacs 22.1 for this.

It sounds that it would be possible ... unfortunately the part about
the gateway methods is not
as informative as the others, at least I don't get a clue reading it
and google does not help with socksify, telnet
and tramp!?

Fabian

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

* Re: tramp with socksify
       [not found]     ` <mailman.4278.1186093331.32220.help-gnu-emacs@gnu.org>
@ 2007-08-03 12:41       ` Fabian Braennstroem
  2007-08-03 13:30         ` Michael Albinus
  0 siblings, 1 reply; 11+ messages in thread
From: Fabian Braennstroem @ 2007-08-03 12:41 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Michael,

Michael Albinus schrieb am 08/02/2007 10:22 PM:
> Fabian Braennstroem <f.braennstroem@gmx.de> writes:
> 
>> It sounds that it would be possible ... unfortunately the part about
>> the gateway methods is not
>> as informative as the others, at least I don't get a clue reading it
>> and google does not help with socksify, telnet
>> and tramp!?
> 
> OK let's try it together. Maybe we can find out in parallel how the
> documentation can be approved.

It is probably my fault, I have never heard anything about socksify...

> Assume you will connect to test.socksify.com via telnet. Your socksv5
> server is bypass.socksify.com:1080 (in fact I don't know neither the
> host name nor the port number of their socksv5 server, it is just a
> guess).
> 
> 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:"))
> 
> Then you can connect to test.socksify.com simply via "telnet:test.socksify.com".

Maybe I forgot to say, that I use:

socksify telnet -l USERNAME IPaddress portnumber

to connect to the other machine on the terminal. I would assume that
the IPaddress is the socksv server...
I am not able to check right now, because I just started my holidays
for the next two weeks ... than I will check out more.

Thanks!
Fabian

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

* Re: tramp with socksify
  2007-08-03 12:41       ` Fabian Braennstroem
@ 2007-08-03 13:30         ` Michael Albinus
  0 siblings, 0 replies; 11+ messages in thread
From: Michael Albinus @ 2007-08-03 13:30 UTC (permalink / raw)
  To: Fabian Braennstroem; +Cc: help-gnu-emacs

Fabian Braennstroem <f.braennstroem@gmx.de> writes:

> Hi Michael,

Hi Fabian,

>> Assume you will connect to test.socksify.com via telnet. Your socksv5
>> server is bypass.socksify.com:1080 (in fact I don't know neither the
>> host name nor the port number of their socksv5 server, it is just a
>> guess).
>> 
>> 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:"))
>> 
>> Then you can connect to test.socksify.com simply via "telnet:test.socksify.com".

Should be "/telnet:test.socksify.com:", of course.

> Maybe I forgot to say, that I use:
>
> socksify telnet -l USERNAME IPaddress portnumber
>
> to connect to the other machine on the terminal. I would assume that
> the IPaddress is the socksv server...

Nope. That is the target you want to reach with your telnet command,
as far as I understand socksify. So you would open
"/telnet:USERNAME@IPaddress#portnumber" in your case.

The configuration of `tramp-default-proxies-alist' is equivalent to
what you need to configure in socks.conf for socksify.

> I am not able to check right now, because I just started my holidays
> for the next two weeks ... than I will check out more.

Have a nice time!

> Thanks!
> Fabian

Best regards, Michael.

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

* Re: tramp with socksify
@ 2007-08-22 22:33 Fabian Braennstroem
  2007-08-23  6:57 ` Michael Albinus
       [not found] ` <mailman.5172.1187852253.32220.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 11+ messages in thread
From: Fabian Braennstroem @ 2007-08-22 22:33 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Michael,

Michael Albinus schrieb am 08/03/2007 01:30 PM:
> Fabian Braennstroem <f.braennstroem@gmx.de> writes:
>
>> Hi Michael,
>
> Hi Fabian,
>
>>> Assume you will connect to test.socksify.com via telnet.
Your socksv5
>>> server is bypass.socksify.com:1080 (in fact I don't know
neither the
>>> host name nor the port number of their socksv5 server,
it is just a
>>> guess).
>>>
>>> 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:"))
>>>
>>> Then you can connect to test.socksify.com simply via
"telnet:test.socksify.com".
>
> Should be "/telnet:test.socksify.com:", of course.
>
>> Maybe I forgot to say, that I use:
>>
>> socksify telnet -l USERNAME IPaddress portnumber
>>
>> to connect to the other machine on the terminal. I would
assume that
>> the IPaddress is the socksv server...
>
> Nope. That is the target you want to reach with your
telnet command,
> as far as I understand socksify. So you would open
> "/telnet:USERNAME@IPaddress#portnumber" in your case.
>
> The configuration of `tramp-default-proxies-alist' is
equivalent to
> what you need to configure in socks.conf for socksify.


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

I assume that I am still doing something (a lot) wrong!?

>> I am not able to check right now, because I just started
my holidays
>> for the next two weeks ... than I will check out more.

> Have a nice time!
Thanks, I had a nice time :-)

Fabian

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

* Re: tramp with socksify
  2007-08-22 22:33 Fabian Braennstroem
@ 2007-08-23  6:57 ` Michael Albinus
       [not found] ` <mailman.5172.1187852253.32220.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 11+ messages in thread
From: Michael Albinus @ 2007-08-23  6:57 UTC (permalink / raw)
  To: Fabian Braennstroem; +Cc: help-gnu-emacs

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?

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

> Fabian

Best regards, Michael.

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

* Re: tramp with socksify
       [not found] ` <mailman.5172.1187852253.32220.help-gnu-emacs@gnu.org>
@ 2007-08-23 21:47   ` Fabian Braennstroem
  2007-08-24  4:13     ` Michael Albinus
       [not found]     ` <mailman.5236.1187928802.32220.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 11+ messages in thread
From: Fabian Braennstroem @ 2007-08-23 21:47 UTC (permalink / raw)
  To: help-gnu-emacs


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 "\b…¾

(require 'tramp)
(add-to-list 'tramp-default-proxies-alist
             (list "test.socksify.com" nil
"/socks:141.36.72.254#1080:"))

Strange!?

Thanks, Fabian

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

* Re: tramp with socksify
  2007-08-23 21:47   ` Fabian Braennstroem
@ 2007-08-24  4:13     ` Michael Albinus
       [not found]     ` <mailman.5236.1187928802.32220.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 11+ messages in thread
From: Michael Albinus @ 2007-08-24  4:13 UTC (permalink / raw)
  To: Fabian Braennstroem; +Cc: help-gnu-emacs

Fabian Braennstroem <f.braennstroem@gmx.de> writes:

> Hallo Michael,

Hi,

> 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 "\b…¾
>
> (require 'tramp)
> (add-to-list 'tramp-default-proxies-alist
>              (list "test.socksify.com" nil
> "/socks:141.36.72.254#1080:"))

Please check the Tramp version "C-h v tramp-version". It must be a
recent Tramp 2.1.

> Strange!?
>
> Thanks, Fabian

Best regards, Michael.

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

* Re: tramp with socksify
       [not found]     ` <mailman.5236.1187928802.32220.help-gnu-emacs@gnu.org>
@ 2007-08-24 21:31       ` Fabian Braennstroem
  0 siblings, 0 replies; 11+ messages in thread
From: Fabian Braennstroem @ 2007-08-24 21:31 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: help-gnu-emacs

Hi,

Michael Albinus schrieb am 08/24/2007 04:13 AM:
> Fabian Braennstroem <f.braennstroem@gmx.de> writes:
> 
>> Hallo Michael,
> 
> Hi,
> 
>> 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 "\b…¾
>>
>> (require 'tramp)
>> (add-to-list 'tramp-default-proxies-alist
>>              (list "test.socksify.com" nil
>> "/socks:141.36.72.254#1080:"))
> 
> Please check the Tramp version "C-h v tramp-version". It must be a
> recent Tramp 2.1.

That's was the problem, but I had no luck with my socksify
yet ... I will contact my admin next week and see, if
he can explain me a bit more about socks.
So far, thanks for your help; I'll keep you informed.
Fabian

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

end of thread, other threads:[~2007-08-24 21:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-02  6:05 tramp with socksify Fabian Braennstroem
2007-08-02  5:31 ` Michael Albinus
     [not found] ` <mailman.4224.1186032713.32220.help-gnu-emacs@gnu.org>
2007-08-02 22:22   ` Fabian Braennstroem
2007-08-02 22:22     ` Michael Albinus
     [not found]     ` <mailman.4278.1186093331.32220.help-gnu-emacs@gnu.org>
2007-08-03 12:41       ` Fabian Braennstroem
2007-08-03 13:30         ` Michael Albinus
  -- strict thread matches above, loose matches on Subject: below --
2007-08-22 22:33 Fabian Braennstroem
2007-08-23  6:57 ` Michael Albinus
     [not found] ` <mailman.5172.1187852253.32220.help-gnu-emacs@gnu.org>
2007-08-23 21:47   ` Fabian Braennstroem
2007-08-24  4:13     ` Michael Albinus
     [not found]     ` <mailman.5236.1187928802.32220.help-gnu-emacs@gnu.org>
2007-08-24 21:31       ` Fabian Braennstroem

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.