<rdf:RDF
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xml:base='http://javatelnet.org/rdf'>
    <s:Snip rdf:about='http://javatelnet.org/rdf#Using+the+Connection+Relay+Daemon'
         s:cUser='leo'
         s:oUser=''
         s:mUser='leo'>
        <s:name>Using the Connection Relay Daemon</s:name>
        <s:content>__relayd/mrelayd__&#xD;&#xA;&#xD;&#xA;All Java Applets have several security restrictions that prevent a random applet from doing damage on your computer or on the network. Due to this reason it is not possible to open a telnet/ssh connection to any other machine then the one the applet was downloaded from (the webserver).&#xD;&#xA;&#xD;&#xA;Sometimes your application is not running on the webserver, in these cases you need some kind of forwarder. Any program, tool or firewall configuration that forwards connections going to a specified port on the webserver to your real targethost and port will do.&#xD;&#xA;&#xD;&#xA;We have supplied to simple tools that establish that portforwarding. They run on the webserver  (you will __need permission__ from its system __administrator__).&#xD;&#xA; &#xD;&#xA;__Single Relay Demon__&#xD;&#xA;&#xD;&#xA;The first one is the single relaydemon. It can have just one targethost and -port (but it can be used by multiple users at the same time).&#xD;&#xA;&#xD;&#xA;It is started on the webserver host by running:&#xD;&#xA;&#xD;&#xA;{code}./relayd &lt;localport&gt; &lt;targethost&gt; &lt;targetport&gt;{code}&#xD;&#xA;&#xD;&#xA;In the applet you only set the parameter ~~Socket.port~~ to &lt;localport&gt;. &lt;targethost&gt; and &lt;targetport&gt; are the host where the application is.&#xD;&#xA;&#xD;&#xA;&lt;localport&gt; can be choosen freely and should be above 1024.&#xD;&#xA; &#xD;&#xA;__Multiple Relay Demon__&#xD;&#xA;&#xD;&#xA;This one allows multiple users going to multiple targets (only needed if you have more than one access point). If you have just one targethost and targetport, the single relay demon above works as well!&#xD;&#xA;&#xD;&#xA;It is started on the webserver host by running:&#xD;&#xA;&#xD;&#xA;{code}./mrelayd{code}&#xD;&#xA;&#xD;&#xA;It listens on port 31415 by default.&#xD;&#xA;&#xD;&#xA;In the applet you have to change the parameters:&#xD;&#xA;{table}&#xD;&#xA;Parameter   | Comments&#xD;&#xA;Socket.host | the target ~~host~~ you want to connect to&#xD;&#xA;Socket.port | the target ~~port~~ you want to connect to&#xD;&#xA;Socket.relay| the webserver address&#xD;&#xA;Socket.relayPort | 31415&#xD;&#xA;{table}&#xD;&#xA;&#xD;&#xA;~~(Note: Both relay demons impose a __security risk__. Always clear their use with your administrator.)~~</s:content>
        <s:mTime>2005-11-11 10:19:06.351</s:mTime>
        <s:cTime>2005-11-10 14:23:53.043</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#Docs and Tutorials'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#Docs and Tutorials/'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#Installing as a local Telnet/SSH Application'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#Installing the Applet'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#Docs+and+Tutorials'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#SnipSnap/config'/>
                <rdf:li rdf:resource='#SSH'/>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#Plugin SSH'/>
                <rdf:li rdf:resource='#Download'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#Plugin Script'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#Configuring Plugins'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#Plugin Terminal'/>
                <rdf:li rdf:resource='#default.conf'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#installing the applet'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#Configuring+Plugins'/>
                <rdf:li rdf:resource='#mrelayd'/>
                <rdf:li rdf:resource='#download'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#start/2005-11-10/1'/>
                <rdf:li rdf:resource='#About'/>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='#jan'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#SnipSnap/tracker'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#Plugin ButtonBar'/>
                <rdf:li rdf:resource='#snipsnap-portlet-3'/>
                <rdf:li>
                    <s:Snip rdf:about='http://javatelnet.org/rdf#Using+the+Connection+Relay+Daemon'>
                        <s:attachments
                             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
                    </s:Snip>
                </rdf:li>
                <rdf:li rdf:resource='#dhelrod'/>
                <rdf:li rdf:resource='#snipsnap-portlet-1'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#start/'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#SnipSnap/themes/thinkberg/css/snip.css'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#'/>
                <rdf:li rdf:resource='#SnipSnap'/>
                <rdf:li rdf:resource='#leo'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#Plugin+SSH'/>
                <rdf:li rdf:resource='#Telnet'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#SnipSnap/themes/thinkberg/css/debug.css'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#Installing+as+a+local+Telnet/SSH+Application'/>
            </rdf:Bag>
        </s:snipLinks>
    </s:Snip>
</rdf:RDF>
