Article delegate-en/4599 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A4597@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: udp associate upstreaming
30 Sep 2009 20:41:19 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


Hi,

In message <_A4597@delegate-en.ML_> on 09/30/09(17:50:34)
you <p2aiqbdyi-c2jtqbbb66vr.ml@ml.delegate.org> wrote:
 |So I tried the new options for Socks5 interface binding and the source
 |addresses for "socks-udp-tosv" are used indeed. But still, there seems to
 |be
 |a problem. After successful udp association between delegate and the
 |upstream proxy, delegate stops its activity and doesn't send any more
 |datagrams to the upstream proxy.

Since I don't have a SOCKS client/server implementation other than
DeleGate, a test what I could do was just chaining DeleGate for
DNS over UDP as follows:

-----------
 Sv% delegated -fv -vd -P1080 SERVER=socks SRCIF=0.0.0.0:0:socks-udp-tocl

   DeleGate as a SOCKS server at the destination server side.
   In this case, the host is multi homed, with different network
   interfaces for internal SOCKS clients and external DNS servers.

 Px% delegated -fv -vd -P1080 SERVER=socks SRCIF=0.0.0.0:0:socks-udp-tosv \
                       SOCKS=192.168.1.Sv:1080

   DeleGate as a SOCKS proxy which forward any requests to SOCKS on Sv.

 Cl% delegated -fv -vd RESOLV=dns RES_NS=150.29.251.14//192.168.1.Px,END. \
                       RES_WAIT=0 -Fresolvy www.aist.go.jp

   DeleGate as a simple DNS client which uses Px as a UDP/SOCKS proxy.
-----------

The result shows UDP packets for DNS is relayed on the chain of
SOCKS client/servers of DeleGate.

-----------
 Cl:
   0+0: SocksV5_sendto[0](192.168.1.Px:53/192.168.1.Px:55696)=42,errno=0
   0+0: SocksV5_recvfrom(961dfb0e:53/c0a80188:55696) = 221
   150.29.246.137,150.29.246.153   www.aist.go.jp

 Px:
   1+1: [SocksV5-serv] VER[5] NMETHODS[1] [0][0]
   1+1: [SocksV5-serv] VER[5] CMD[3] ATYP[1] 0.0.0.0:55696
   1+1: [SocksV5-serv] resp 0 [192.168.1.Px:55696]
   1+1: SRCIF=0.0.0.0:0 [socks-udp-tosv://0.0.0.0:55696]
   1+1: ## SRCIF 0.0.0.0:0 <= 0.0.0.0:55696
   1+1: server_open(VSocket,0.0.0.0:0/42576) BOUND
   1+1: VSocket BIND/SocksV5 0.0.0.0:42576 *:* protocol=udp = 25
   1+1: UDP/SocksV5 C-S client set < 192.168.1.Cl:55696
   1+1: ## hostIFto 150.29.251.14 < 192.168.1.Px (ffff0000)
   1+1: ##ViaSocks-B(by rule)## 150.29.251.14:53
   1+1: ##1 new UDP ASSOC via SOCKS=192.168.1.Sv:1080 << 150.29.251.14:53
   1+1: ##1 UDP/SocksV5 UDP ASSOC forw port=53 -> 42576
   1+1: ##ViaSocks-B(by rule)## 150.29.251.14:53
   1+1: ConnectToServer connected [27] {192.168.1.Sv:1080 <- 192.168.1.Px:40974} [0.001s]
   1+1: VSocket CNCT/SocksV5 192.168.1.Px:40974 192.168.1.Sv:1080 proto=socks = 27
   1+1: SRCIF=0.0.0.0:0 [socks-udp-tosv://150.29.251.14:42576]
   1+1: ## SRCIF 0.0.0.0:0 <= 150.29.251.14:42576
   1+1: [SocksV5-clnt] UDPASSOC [1]0.0.0.0:0 sent(10/10)
                                   ^^^^^^^^^
   1+1: ##1 set UDP ASSOC via 192.168.1.Sv:55302 [27] << 150.29.251.14:53
*  1+1: C-S forw 54/54 > 192.168.1.Sv:55302 >>150.29.251.14:53
*  1+1: S-C forw 54/54 > 192.168.1.Cl:55696 <<150.29.251.14:53
   1+1: UDP/SocksV5 GOT CONTROL
*  1+1: UDP/SocksV5 C-S:96 S-C:275

 Sv:
   1+1: [SocksV5-serv] VER[5] NMETHODS[1] [0][0]
   1+0: dirfopen(/Users/yutaka/delegate/act/restart/_1080_,r): 0 [-1]
   1+1: [SocksV5-serv] VER[5] CMD[3] ATYP[1] 0.0.0.0:0
                                             ^^^^^^^^^
   1+1: ##NOT ViaSocks-B## 0.0.0.0:0
   1+1: SRCIF=0.0.0.0:0 [socks-udp-tocl://0.0.0.0:0]
   1+1: ## SRCIF 0.0.0.0:0 <= 0.0.0.0:0
   1+1: VSocket BIND/SocksV5 0.0.0.0:55302 *:* protocol=udp,noreuseaddr = 18
   1+1: [SocksV5-serv] resp 0 [192.168.1.Sv:55302]
   1+1: UDP/SocksV5 C-S client set < 192.168.1.Px:42576
   1+1: ##NOT ViaSocks-B## 150.29.251.14:53
*  1+1: UDP/SocksV5 C-S 54 ATYP[1] > 150.29.251.14:53
*  1+1: UDP/SocksV5 S-C 44 < 150.29.251.14:53
*  1+1: UDP/SocksV5 C-S 42 ATYP[1] > 150.29.251.14:53
*  1+1: UDP/SocksV5 S-C 211 < 150.29.251.14:53
   1+1: UDP/SocksV5 GOT CONTROL
*  1+1: UDP/SocksV5 C-S:76 S-C:255
-----------

Cheers,
Yutaka
--
  9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V