Article delegate-en/597 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]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] tcprelay and udprelay [Directx Proxying]
02 Oct 1999 10:03:36 GMT =?iso-8859-1?Q?Lo=EFc_de_Vaulx?= <pimbabdyi-p5lznxjcgjxr.ml@ml.delegate.org>


hello!

Actually, I need to open a lot of tcprelay and udprelay ports on my server
to test and develop some directx software
and I can't find the best way to do what I need.
I would like to use a command like
delegated -Pip:2300-2400 SERVER="tcprelay://serverip:2300-2400"....
but I can't find the good syntax.

Here is what I do actually
I use PCA and PCB on 2 network interfaces IPA and IPB

PCA ---------- IPA (Proxy) IPB ----------- PCB
PCA = 172.17.101.4
IPA=172.17.101.255
IPB=192.168.0.1
PCB=192.168.0.3

What I need to open between the two PC is :
TCP Port 47624
TCP Ports 2300-2400
UDP Ports 2300-2400


=== SOURCE CODE START HERE ===
echo port 47624
delegated -P47624 SERVER="tcprelay://PCA:47624" \
    DGROOT="/var/spool" \
    LOGFILE="47624.tcp.log"

for i in 00 00 00 00 00 01 06 00 00 00 00 01 12 13 14 15 16 17 18 19 20 21
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
97 98 99
{
    echo port PCB - PCA 23$i tcp
    delegated -PIPB:23$i SERVER="tcprelay://PCA:23$i" \
        DGROOT="/var/spool" \
        LOGFILE="23$i.PCB.PCA.tcp.log"

    echo port PCA - PCB 23$i tcp
    delegated -PIPA:23$i SERVER="tcprelay://PCB:23$i" \
        DGROOT="/var/spool" \
        LOGFILE="23$i.PCA.PCB.tcp.log"

    echo port PCB - PCA 23$i udp
    delegated -PIPB:23$i SERVER="udprelay://PCA:23$i" \
         DGROOT="/var/spool" \
         LOGFILE="23$i.PCB.PCA.udp.log"

    echo port PCA - PCB 23$i udp
        delegated -PIPA:23$i SERVER="udprelay://PCB:23$i" \
        DGROOT="/var/spool" \
        LOGFILE="23$i.PCA.PCB.udp.log"
}

==== END SOURCE ====

Is there a better way to do this?
Actually there is about 400 process and I don't think that's the best way!!!
Help me please :-)

Cheers,
Loic.



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