Command line to launch Fwd1:
fwd.net1$ dietForwarder name Fwd1
net-config net1.cfg
Command line to launch Fwd2-1:
fwd.net2$ dietForwarder name Fwd2-1
peer-name Fwd1
ssh-host fwd.net1 ssh-login
dietUser
ssh-key id_rsa_net1
remote-port 50000
net-config net2-1.cfg C
Command line to launch Fwd2-3:
fwd.net2$ dietForwarder name Fwd2-3
peer-name Fwd3
ssh-host fwd.net3 ssh-login
dietUser
ssh-key id_rsa_net3
remote-port 50000
net-config net2-3.cfg C
Command line to launch Fwd3:
fwd.net3$ dietForwarder name Fwd3
net-config net3.cfg
Configuration file for Fwd1:
Fwd1 manages the communications for all the host outside
net1.
accept:.* reject:.*\.net1
Configuration file for Fwd2-1:
Fwd2-1 manages the communication for all the hosts located on
net1.
accept:.*\.net1
Configuration file for Fwd2-3:
Fwd2-3 manages the communication for all the hosts located on
net3.
accept:.*\.net3
Configuration file for Fwd3:
Fwd1 manages the communications for all the host outside
net3.
accept:.* reject:.*\.net3
Using this configuration, a communication from a host on net1 to a host on net3 is first routed from Fwd1 to Fwd2-1 and then from Fwd2-3 to Fwd3. Note that Fwd1 has to be launched before Fwd2-1, and Fwd3 has to be launched before Fwd2-3.