My AMG script works like this:

if(terminal_ip is in .1 network)
     print host=10.1.1.37
     print host=10.1.1.38
     print host=10.1.1.39

if(terminal_ip is in the .2 network)
     print host=10.1.2.37
     print host=10.1.2.38
     print host=10.1.2.39

The FOG was created on the .1 network.  The sunray servers communicate
on the .1 network.  I have not even added the interfaces for .2 yet
(this is an add-on).  I don't see how this can guarentee the sunray
DTU is routed appropriately.  After all, even without the test box the
sunray server that that displays the login prompt is not necessarily
the server one ends up at after logging in.  I know the fog checks to
see if an active session is on another server and if not I believe it
also load balances.  Should the utamgh script be ran on the master
only or all sunray servers in the FOG?

On Tue, Nov 6, 2012 at 2:19 PM, Jim Klimov <[email protected]> wrote:
> On 2012-11-06 19:50, John Doe wrote:
>>
>> Hello,
>>
>> This is an extension of my other question, "Forcing Sunray clients on
>> a subnet to use a certain interface."  I was able to write an amgh
>> redirect script to look at the incoming IP and redirect to the
>> appropriate server.  Assume I have the following servers:
>
> ...
>
>> If I move the sunray client to the 10.0.2.0/24 subnet I can only
>> speculate the folow will go as follows based on my script:
>
>
> Maybe I've missed something in your question or in AMGH,
> but I think redirects should occur based on the session
> token - the pseudo.IEEE001122334455 based on DTU MAC
> address (regardless of its current IP) or smartcard
> token (or a login-pass software token).
>
> If your script somehow keeps track of where to redirect
> to, it should be able to translate the needed server name
> into needed IP on same subnet as the DTU (and I think you
> can utquery the IP address for a token, if you don't
> store the data in some database yourself).
>
> If the login prompt flashes from the needed subnet (and
> you have a means to verify that), this is already the
> proper X11 session which will continue to serve your
> token via FOG failover/redirect).
>
> But my rambling can be wrong at any number of places, so
> I hope someone more aware in this subject can help too :)
>
> //Jim
>
> _______________________________________________
> SunRay-Users mailing list
> [email protected]
> http://www.filibeto.org/mailman/listinfo/sunray-users
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to