Page 1 of 1

Configure fahclient for remote access via XML

Posted: Fri Jul 25, 2014 7:49 am
by Valerium
Hello!

I run FAH on my home server under Linux (Debian 7.0) and have only SSH access to it. I'd like to check status of folding from FAHControl on my laptop, but can't force fahclient on server bind to IP different from 127.0.0.1. So if I type

Code: Select all

$ telnet 127.0.0.1 36330
I receive greating

Code: Select all

Welcome to the Folding@home Client command server.
But if I use

Code: Select all

$ telnet 192.168.1.2 36330               # 192.168.1.2 is IP of server in my LAN
fahclient receives connection, but drops it.

Code: Select all

Trying 192.168.1.2...
Connected to 192.168.1.2.
Escape character is '^]'.
Connection closed by foreign host.
I appear fahclient binds to 192.168.1.2, but rejects connections from if. In documentation to config.xml I can't find anything about IP-addresses or access control. May be, I look in wrong place?

P.S. Excuse my my grammar, I've few practice in English.

Re: Configure fahclient for remote access via XML

Posted: Fri Jul 25, 2014 12:07 pm
by ChristianVirtual
Welcome to the Forum Valerium,

here a setting I have in my config.xml file; works well for me ...

Code: Select all

<config>

  <allow v='192.168.1.0/24'/>

  <!-- Remote Command Server -->
  <password v='password comes here'/>

</config>

The "allow" statement above assume that you use a regular Class-C network subnet; with 255.255.255.0 as mask; thats why the /24. This should allow access from all PC in your network.

Expected response from FAHClient

Code: Select all

Welcome to the Folding@home Client command server.
> 
More here: https://fah-web.stanford.edu/projects/F ... oteClients

Based on standard config you need to authenticate via "auth" once telnet makes the connection. Also would be great to share your config files with us (remove passkey and password, of course); easier to see what you tried.