DTCP Client -- dtcpclient

Multiple Sessions

Someone may want to have the connections to multiple servers and use multiple tunnels. The dtcpclient can treat only one session. However, basically, you can use multiple sessions by running multiple dtcpclient.
In this case, the treatment of dtcpclient_script.conf may be a problem. Perhaps, the configuration is different for each server.
You can add a prefix to a variable in dtcpclient_script.conf. For example, you can set `tunif' variable like as following:
hoge_tunif='gif0'
fuga_tunif='gif1'
Here, the prefix like `hoge' and `fuga' is the labels which is specified by -e option of dtcpclient. That is, dtcpclient with `-e hoge' option use gif0 which is specified by `hoge_tunif', and dtcpclient with `-e fuga' option use gif1 which is specified by `fuga_tunif'.

You can specify multiple lines in dtcpclient.auth. Each line is constructed by server name, user name and password.

There is one more issue to run multiple dtcpclient. The pidfile in which prosess-id is recorded conflicts with each other. You can avoid this problem by specifying -f option to dtcpclient.

For example, when you want to connect to tcp.hoge.example.org and dtcp.fuga.example.org, your settings will be like as follows:

/usr/local/etc/dtcpclient.auth:
dtcp.hoge.example.org:user:password
dtcp.fuga.example.org:user:password
/usr/local/etc/dtcpclient_script.conf:
hoge_tunif='gif0'
hoge_static_routes='default,3ffe:505::/32'
fuga_tunif='gif1'
fuga_static_routes='2001:200:300::/40'
the command line of dtcpclient:
dtcpclient -Dl -t network -u user -e hoge -f /var/run/dtcpclient_hoge.pid dtcp.hoge.example.org
dtcpclient -Dl -t network -u user -e fuga -f /var/run/dtcpclient_fuga.pid dtcp.fuga.example.org


All Rights Reserved, Copyright (C) 2004 Hajimu UMEMOTO
Last Modified Jun 18, 2004
ume@mahoroba.org