Message boards : BOINC client : remote_hosts.cfg - ranges/subnets?
Message board moderation
Author | Message |
---|---|
Send message Joined: 12 Mar 07 Posts: 59 |
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~~ |
Send message Joined: 19 Jan 07 Posts: 1179 |
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. |
Send message Joined: 9 Sep 05 Posts: 128 |
(I don't know perl, but here's a PHP example, which I think is the same) The same as Bourne shell script: -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- #!/bin/sh for I in `seq 1 254`; do echo "10.23.0.${I}" done -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- Metod ... |
Send message Joined: 19 Jan 07 Posts: 1179 |
The same as Bourne shell script: I usually do it like this in bash: #!/bin/bash for (( I=1; I<=254; I++ )); do echo "10.23.0.${I}"; done |
Send message Joined: 12 Mar 07 Posts: 59 |
The same as Bourne shell script: 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~~ |
Send message Joined: 19 Jan 07 Posts: 1179 |
... What language is that? o.O |
Send message Joined: 9 Sep 05 Posts: 128 |
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 ... |
Send message Joined: 12 Mar 07 Posts: 59 |
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~~ |
Send message Joined: 30 Oct 05 Posts: 1239 |
Fortran if I'm not much mistaken. Whatever it was it made my head hurt... I almost understood the Perl and bash scripts. :-) Kathryn :o) |
Send message Joined: 8 Jan 06 Posts: 448 |
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. |
Send message Joined: 9 Sep 05 Posts: 128 |
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 ... |
Send message Joined: 8 Jan 06 Posts: 448 |
The thing is the last time I used Fortran was in school 35 years ago and that was on punch cards. 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 |
Copyright © 2025 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.