ROBIN -  Open Source Mesh Network Forum Index ROBIN - Open Source Mesh Network
users community forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

stand alone

 
Post new topic   Reply to topic    ROBIN - Open Source Mesh Network Forum Index -> Internetless Mesh Network
View previous topic :: View next topic  
Author Message
Ads






Posted: Wed Aug 23, 2017 12:58 pm    Post subject: Ads

Back to top
minbari
Skilled User
Skilled User


Joined: 15 Dec 2009
Posts: 232

PostPosted: Wed Dec 16, 2009 10:04 pm    Post subject: stand alone Reply with quote

we are trying to use the open-mesh idea for a stand alone project. what internet resources does the orangemesh dashboard and the open-mesh radios use? I have my own orangemesh dashboard running on a local machine and the network radios check in to that machine, but if I remove the internet from the network, the gateway stops checking in and very soon after that the whole network falls apart. is the dashboard server is the only thing that makes this work or are there other internet resources that the radios use?
Back to top
View user's profile Send private message Send e-mail
shasan
Moderator
Moderator


Joined: 16 Feb 2008
Posts: 178
Location: Chapel Hill, NC

PostPosted: Thu Dec 17, 2009 2:28 am    Post subject: Reply with quote

Someone else will need to correct this because I may be wrong. Also I think this topic has been discussed previously, so perhaps you can find that somewhere.

I think the problem is that nodes determine if they are gateways by checking to see if they have an IP address on their eth0 port. They may even check for a route to the internet. I believe by disconnecting your upstream network you may run into some issues with that.

Again, I don't have that much experience in this particular area so someone more clueful could provide more details (or let me know if I'm totally off base).

_________________

Only registered users can see links on this forum!
Register or Login on forum!


unc-chapel hill, class of 2010
Back to top
View user's profile Send private message Send e-mail Visit poster's website
minbari
Skilled User
Skilled User


Joined: 15 Dec 2009
Posts: 232

PostPosted: Thu Dec 17, 2009 3:12 pm    Post subject: Reply with quote

I dont think that it looks for an ip on the eth0. I ran DHCP on my dashboard server (not connected to internet) and it gave out an ip to the gateway node, but it was still not happy. if it is looking for a path to the internet, how is it doing it? if it is pinging a specific address, I have something to go on.
Back to top
View user's profile Send private message Send e-mail
warcraft
Intermediate User
Intermediate User


Joined: 12 Mar 2008
Posts: 86

PostPosted: Thu Dec 17, 2009 5:02 pm    Post subject: Reply with quote

i think he has it pinging like
Only registered users can see links on this forum!
Register or Login on forum!

/
Only registered users can see links on this forum!
Register or Login on forum!

/
Only registered users can see links on this forum!
Register or Login on forum!


or something like that to see if it has internet
dont remember which post i saw that under
Back to top
View user's profile Send private message
ispyisail
Site Admin
Site Admin


Joined: 12 Sep 2008
Posts: 4604
Location: New Zealand

PostPosted: Thu Dec 17, 2009 6:36 pm    Post subject: Reply with quote

have a look at
Code:

/etc/config/general

_________________
ROBIN-Mesh Wiki:

Only registered users can see links on this forum!
Register or Login on forum!

Test Network:
Only registered users can see links on this forum!
Register or Login on forum!



Please donate to ROBIN by paypal:

Only registered users can see links on this forum!
Register or Login on forum!

!
Back to top
View user's profile Send private message
minbari
Skilled User
Skilled User


Joined: 15 Dec 2009
Posts: 232

PostPosted: Thu Dec 17, 2009 7:51 pm    Post subject: Reply with quote

I have looked in there, and I have changed all those URLs and it keeps right on working and checking in. but as soon as internet is taken away, it dies. there has to be something else that it is checking to know it has a path to the internet

note: I have my own dashboard server and it checks in to perfectly, when internet is present. the dashboard server is on the mesh, so no reason I can see why the radios need internet to function.
Back to top
View user's profile Send private message Send e-mail
shasan
Moderator
Moderator


Joined: 16 Feb 2008
Posts: 178
Location: Chapel Hill, NC

PostPosted: Thu Dec 17, 2009 9:05 pm    Post subject: Reply with quote

Could it be a DNS thing? Are you specifying a locally-routable IP address for your dashboard?

_________________

Only registered users can see links on this forum!
Register or Login on forum!


unc-chapel hill, class of 2010
Back to top
View user's profile Send private message Send e-mail Visit poster's website
foxtroop11
Service Provider
Service Provider


Joined: 22 Mar 2009
Posts: 1168
Location: Ansbach, Germany and sometimes the States

PostPosted: Thu Dec 17, 2009 10:26 pm    Post subject: Reply with quote

Check in /lib/robin/ and take a look at the inet-test.sh file. I'm away from my setup, but I think it states somewhere in the forum here you need to put atleast 2-3 ip's within your local network, might also have to take a look at the url, but I think the first part is enough.
Back to top
View user's profile Send private message
ispyisail
Site Admin
Site Admin


Joined: 12 Sep 2008
Posts: 4604
Location: New Zealand

PostPosted: Fri Dec 18, 2009 1:23 am    Post subject: Reply with quote

Code:
#!/bin/sh
#/lib/robin/inet-test.sh

IFS=\;
set ${CHKIP:-198.41.0.4;192.33.4.12;128.8.10.90;192.5.5.241;192.36.148.17;192.58.128.30;193.0.14.129;198.32.64.12;202.12.27.33}
unset IFS

cnt=0
while [  $cnt -lt 3 ]; do
   random=$(hexdump -d -n2 /dev/urandom | awk 'NF > 1 {print (($2 % 9) + 1)}')
   eval $(echo "ip=\$$random")
   TEST_IP="${TEST_IP} $ip"
   let cnt=cnt+1
done

TEST_DOMAIN="checkin.open-mesh.com
Only registered users can see links on this forum!
Register or Login on forum!


Only registered users can see links on this forum!
Register or Login on forum!


Only registered users can see links on this forum!
Register or Login on forum!


wget_options="-t 3 -T 40 --spider"

passed() {
   case $1 in
      1) testWas="traceroute";;
      2) testWas="wget test domains";;
      3) testWas="fping test domains";;
      4) testWas="fping: $2 $3 $4";;
   esac

   logger -st ${0##*/} "passed: $testWas"
   echo "0"
    exit
}

#...........fping - IP-oriented (3 of 9 random)
nTest=4
[ $(fping -a $TEST_IP 2>/dev/null |wc -l) -gt 0 ] && {   echo "0";   exit; }
logger -st ${0##*/} "failed (f)pinging $TEST_IP";

#...........wget - spider
nTest=2
for DOMAIN in $TEST_DOMAIN ; do
   wget $wget_options "http://${DOMAIN}" > /dev/null 2>&1 && passed $nTest
done
logger -st ${0##*/} "failed wgetting $TEST_DOMAIN ";

#f...........ping - domains-oriented
nTest=3
[ $(fping -a $TEST_DOMAIN 2>/dev/null |wc -l) -gt 0 ] && passed $nTest
logger -st ${0##*/} "failed (f)pinging $TEST_DOMAIN ";

#...........traceroute
#nTest=1
#for DOMAIN in $TEST_DOMAIN ; do
#   anyIP="$(
#      traceroute -f3 -m6 -n $DOMAIN |awk '{print $2}' \
#            |grep -v 'to' \
#            |grep -v '^10\..*'  \
#            |grep -v '^172\.[16-31]\..*'  \
#            |grep -v '^192\.168\..*' \
#            |grep -v '*'
#   )"
#   [ -n "$anyIP" ] && passed $nTest
#done

#we don't have internet
echo "1"
#

_________________
ROBIN-Mesh Wiki:

Only registered users can see links on this forum!
Register or Login on forum!

Test Network:
Only registered users can see links on this forum!
Register or Login on forum!



Please donate to ROBIN by paypal:

Only registered users can see links on this forum!
Register or Login on forum!

!
Back to top
View user's profile Send private message
Antonio (isleman)
Site Admin
Site Admin


Joined: 10 Feb 2008
Posts: 2323
Location: Toscana, Italy

PostPosted: Fri Dec 18, 2009 11:14 am    Post subject: Reply with quote

ok guys I need your help (and time): let's try this on_the_fly patch, if works then I commit the trunk.

@shasan
we need a dashboard option like "enable Stand Alone Mode" [ ] (default is un-checked)
The option will be described, in the reply, inside the #@# config management section using the directive enable.stand_alone_mode <value>:

SECTION: #@#config management
OPTION: enable.stand_alone_mode 1|0 (default 0)

0=inet-test.sh is run against inet IPs (default)
1=inet-test.sh will return the no-error code

e.g. the directives:
#@#config management
enable.stand_alone_mode 1

will activate the stand alone mode.

@all

1) ssh to the gateway node that you want patch

2) edit /etc/config/management adding the line:
Code:
option  'stand_alone_mode'  '0'

at the end of the file. Then close and save, and verify that the change was successful by running the command:
uci show management
you should see:
Code:
management.enable.stand_alone_mode=0

in the last line of the output.


3) edit /lib/robin/inet-test.sh adding the line:
Code:

[ 1 -eq "$(uci get management.enable.stand_alone_mode)" ] && { echo "0"; exit; }

just before the comment:
Code:
#...........fping - IP-oriented (3 of 9 random)

close and save.

4) edit /usr/sbin/update-management.sh adding these lines:
Code:

         "enable.stand_alone_mode")
            CURRENT_VALUE=$(uci get ${option})
            [ "$CURRENT_VALUE" = "$VALUE" ] || {
               uci set $option=$VALUE
               uci commit management
            }
         ;;

just before the lines:
Code:
      esac         
   fi      
done < $WDIR/management

close and save.

Done, no need to reboot the node!

Arrow As long as the dashboard is not modified, it is also possible to test the patch by forcing stand_alone_mode to 1 in the previous step 2):
Code:
option  'stand_alone_mode'  '1'


Let me know and thanks for your time.

Antonio

(remember to uncheck GATEWAY LAN BLOCK if you want access the machines plugged to the LAN thet is behind the patched gateway)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
minbari
Skilled User
Skilled User


Joined: 15 Dec 2009
Posts: 232

PostPosted: Fri Dec 18, 2009 3:42 pm    Post subject: Reply with quote

you guys are AWESOME! thank you very much Antonio. it works!

the only thing I have seen that doesn't work so far is the "route" command. it hangs the SSH session everytime. curiously, the "ip route" command works fine. if that is the only drawback, I can live with it. the network functions as expected.
Back to top
View user's profile Send private message Send e-mail
Antonio (isleman)
Site Admin
Site Admin


Joined: 10 Feb 2008
Posts: 2323
Location: Toscana, Italy

PostPosted: Fri Dec 18, 2009 4:17 pm    Post subject: Reply with quote

have you tryied route -n ?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
minbari
Skilled User
Skilled User


Joined: 15 Dec 2009
Posts: 232

PostPosted: Fri Dec 18, 2009 4:30 pm    Post subject: Reply with quote

ok, that works fine. what is the -n switch do?
Back to top
View user's profile Send private message Send e-mail
shasan
Moderator
Moderator


Joined: 16 Feb 2008
Posts: 178
Location: Chapel Hill, NC

PostPosted: Fri Dec 18, 2009 4:49 pm    Post subject: Reply with quote

Great Antonio, I've made a patch. It's here:

Only registered users can see links on this forum!
Register or Login on forum!



I haven't /tested/ it but I think it should work. Let me know if there are any problems.

_________________

Only registered users can see links on this forum!
Register or Login on forum!


unc-chapel hill, class of 2010
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Antonio (isleman)
Site Admin
Site Admin


Joined: 10 Feb 2008
Posts: 2323
Location: Toscana, Italy

PostPosted: Fri Dec 18, 2009 5:08 pm    Post subject: Reply with quote

@minbari
-n
show numerical addresses instead of trying to determine symbolic host names

@shasan
ok, I think it should work anyway I'll keep you informed
Back to top
View user's profile Send private message Send e-mail Visit poster's website
minbari
Skilled User
Skilled User


Joined: 15 Dec 2009
Posts: 232

PostPosted: Fri Dec 18, 2009 6:03 pm    Post subject: Reply with quote

ok, I updated my SQL and dashboard files with the ones you supplied and it all works. I have a "standalone" checkbox that is updating via the batman script.
Back to top
View user's profile Send private message Send e-mail
shasan
Moderator
Moderator


Joined: 16 Feb 2008
Posts: 178
Location: Chapel Hill, NC

PostPosted: Fri Dec 18, 2009 6:22 pm    Post subject: Reply with quote

Great! Glad it's working for you. Thanks for bringing this issue up so that we can support it.

_________________

Only registered users can see links on this forum!
Register or Login on forum!


unc-chapel hill, class of 2010
Back to top
View user's profile Send private message Send e-mail Visit poster's website
funchip
Moderator
Moderator


Joined: 12 Sep 2008
Posts: 267
Location: Sacramento, California, USA

PostPosted: Sun Dec 20, 2009 10:05 pm    Post subject: Reply with quote

When adding the feature to MeshConnect dashboard, we noticed that you may also need to have the SQL field "stand_alone" in connectDB.php. Otherwise the dashboard wouldn't be able to alter the field in the database accordingly. I believe the case is applicable to OrangeMesh as well.

Just FYI.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ROBIN - Open Source Mesh Network Forum Index -> Internetless Mesh Network All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
c d
e



Powered by phpBB © 2001, 2005 phpBB Group

Abuse - Report Abuse - TOS & Privacy.
Powered by forumup.it free forum, create your free forum! Created by Hyarbor & Qooqoa
Confirmed

Page generation time: 0.875