remote_hosts.cfg - ranges/subnets?

Message boards : BOINC client : remote_hosts.cfg - ranges/subnets?
Message board moderation

To post messages, you must log in.

AuthorMessage
River~~
Avatar

Send message
Joined: 12 Mar 07
Posts: 59
Message 9065 - Posted: 24 Mar 2007, 16:20:03 UTC

Can we use a range of ip addresses in the remote_hosts.cfg file?

Or a subnet?

I mean I'd like to be able to say

10.23.0.0/24

or

10.23.0.1-254

or suchlike to allow any machine from a specified subnet or range to connect. neither of these work, giving an error message like

Can't resolve hostname [10.23.0.1-254] host not found

so it appears to think it is a domain not an IP range. The other format gives a similar error.

Can I make a request for at least one of these formats to be included in a later release, unless there is a pre-existing work-around.

My specific application is to allow a box that comes in on a VPN to be allowed to BoincView the boxes within that net, but apart from knowing I will be on that subnet I don't know in advance what IP I will have. If I think I trust the other folk VPN-ing in, that should be up to me, shouldn't it?

I am sure others will find a use for this extension if offered, and of course it would make no difference to people setting up a list of single IPs.

River~~
ID: 9065 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 9073 - Posted: 24 Mar 2007, 19:26:08 UTC
Last modified: 24 Mar 2007, 19:38:34 UTC

I'd prefer this format, it's more flexible:
10.23.0.1-10.23.0.254

I think I'll send an email to boinc_dev proposing the feature (and linking to this thread).

River, if you want a workaround, you know Perl, so you should know how :D Make a script that generates all combinations.

(I don't know perl, but here's a PHP example, which I think is the same)
for($i=1; $i<=254; $i++) {
print "10.23.0.$in";
}

Run it and redirect output to remote_hosts.cfg. You're done.
ID: 9073 · Report as offensive
Metod, S56RKO

Send message
Joined: 9 Sep 05
Posts: 128
Slovenia
Message 9115 - Posted: 26 Mar 2007, 6:52:29 UTC - in response to Message 9073.  

(I don't know perl, but here's a PHP example, which I think is the same)
for($i=1; $i<=254; $i++) {
print "10.23.0.$in";
}


The same as Bourne shell script:

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
#!/bin/sh
for I in `seq 1 254`; do
echo "10.23.0.${I}"
done
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Metod ...
ID: 9115 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 9117 - Posted: 26 Mar 2007, 11:49:37 UTC - in response to Message 9115.  

The same as Bourne shell script:

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
#!/bin/sh
for I in `seq 1 254`; do
echo "10.23.0.${I}"
done
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-

I usually do it like this in bash:

#!/bin/bash
for (( I=1; I<=254; I++ )); do
echo "10.23.0.${I}";
done
ID: 9117 · Report as offensive
River~~
Avatar

Send message
Joined: 12 Mar 07
Posts: 59
Message 9217 - Posted: 30 Mar 2007, 14:22:53 UTC - in response to Message 9117.  

The same as Bourne shell script:

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
#!/bin/sh
for I in `seq 1 254`; do
echo "10.23.0.${I}"
done
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-

I usually do it like this in bash:

#!/bin/bash
for (( I=1; I<=254; I++ )); do
echo "10.23.0.${I}";
done


so nobody thought of the obvious, then?

DIMENSION F(4)
F = 14H(9H 10.23.0.,I1)
DO 10 I=1,254
IF (I.EQ.10) F = 14H(9H 10.23.0.,I2)
IF (I.EQ.100) F = 14H(9H 10.23.0.,I3)
10 WRITE(6,F)I
END


;)


But seriously, thanks for passing my suggestion on to the devs, Nicolas, as my point was that the code should be written once and put in the client, not re-written every time someone wants to do it.

R~~
ID: 9217 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 9228 - Posted: 30 Mar 2007, 17:22:27 UTC - in response to Message 9217.  


DIMENSION F(4)
F = 14H(9H 10.23.0.,I1)
DO 10 I=1,254
IF (I.EQ.10) F = 14H(9H 10.23.0.,I2)
IF (I.EQ.100) F = 14H(9H 10.23.0.,I3)
10 WRITE(6,F)I
END

...
What language is that? o.O
ID: 9228 · Report as offensive
Metod, S56RKO

Send message
Joined: 9 Sep 05
Posts: 128
Slovenia
Message 9243 - Posted: 31 Mar 2007, 11:09:34 UTC - in response to Message 9228.  
Last modified: 31 Mar 2007, 11:11:39 UTC


      DIMENSION F(4)
      F = 14H(9H 10.23.0.,I1)
      DO 10 I=1,254
      IF (I.EQ.10)  F = 14H(9H 10.23.0.,I2) 
      IF (I.EQ.100) F = 14H(9H 10.23.0.,I3)
10    WRITE(6,F)I 
      END


...
What language is that? o.O


Fortran if I'm not much mistaken. One needs to hit reply to this post link to see the formatting though.

[edit]added [ code]..[ /code] tags to reveal formatting.

Metod ...
ID: 9243 · Report as offensive
River~~
Avatar

Send message
Joined: 12 Mar 07
Posts: 59
Message 9255 - Posted: 31 Mar 2007, 18:42:05 UTC - in response to Message 9243.  

Fortran if I'm not much mistaken.


Yes, its almost Fortran

Most is F IV except for one feature (array assignment). Its also almost F 77 except for another (assign char to array). So its all Fortran but would need some work to make it go properly...

R~~
ID: 9255 · Report as offensive
Profile KSMarksPsych
Avatar

Send message
Joined: 30 Oct 05
Posts: 1239
United States
Message 9257 - Posted: 31 Mar 2007, 19:09:37 UTC - in response to Message 9255.  

Fortran if I'm not much mistaken.


Yes, its almost Fortran

Most is F IV except for one feature (array assignment). Its also almost F 77 except for another (assign char to array). So its all Fortran but would need some work to make it go properly...

R~~



Whatever it was it made my head hurt...

I almost understood the Perl and bash scripts.

:-)
Kathryn :o)
ID: 9257 · Report as offensive
Aurora Borealis
Avatar

Send message
Joined: 8 Jan 06
Posts: 448
Canada
Message 9260 - Posted: 31 Mar 2007, 20:58:19 UTC
Last modified: 31 Mar 2007, 20:59:58 UTC

Scary, Fortran came to mind as soon as I saw River's post. The thing is the last time I used Fortran was in school 35 years ago and that was on punch cards.
ID: 9260 · Report as offensive
Metod, S56RKO

Send message
Joined: 9 Sep 05
Posts: 128
Slovenia
Message 9275 - Posted: 1 Apr 2007, 9:04:01 UTC - in response to Message 9260.  

The thing is the last time I used Fortran was in school 35 years ago and that was on punch cards.


For those who don't know history: punch cards - hence the formatting (or more exactly - identification) of Fortran.

Metod ...
ID: 9275 · Report as offensive
Aurora Borealis
Avatar

Send message
Joined: 8 Jan 06
Posts: 448
Canada
Message 9288 - Posted: 1 Apr 2007, 16:24:23 UTC - in response to Message 9275.  
Last modified: 1 Apr 2007, 16:50:54 UTC

The thing is the last time I used Fortran was in school 35 years ago and that was on punch cards.


For those who don't know history: punch cards - hence the formatting (or more exactly - identification) of Fortran.

History of Punched cards.
If you're interested this is the computer IBM 1130 that I learned to program on in college when I took my electronics courses. This was the card reader.

Boinc V 7.4.36
Win7 i5 3.33G 4GB NVidia 470
ID: 9288 · Report as offensive

Message boards : BOINC client : remote_hosts.cfg - ranges/subnets?

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.