-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange behavior with WAN settings in the gateway router #265
Comments
More about this issue. Yesterday after rebooting all the routers of the mesh I coudn't get internet access in any of them except the one connected to WAN. Watching the BMX6 "Gateways tunnel announcements" in the rest of the routers, none of them had the inet4 tunnel (internet network) listed (there were clouds, publicv6 and nodes). |
Definitively now I can recreate the issue. When the router working as gateway (with the WAN connection) is rebooted, this router automatically connects to the WAN but doesn't announce the internet gateway tunnel to the rest of the mesh. Simply reconnecting the WAN connection (in the interfaces page), announces the internet gateway tunnel to the rest of the mesh. But if you don't manually reconnect the WAN connection, the rest of the mesh have no internet connectivity. |
Nothing? |
On Thu, Dec 28, 2017 at 01:44:45PM +0000, Modante wrote:
Nothing?
At least anybody could help me with a script in order to disconnect an reconnect the WAN connection 1 minute after boot to avoid to do that manually in case I am not available at home in case of accidental switch off the router with the WAN connection?
Thanks and regards :-)
The behaviour you describe is indeed a bit weird. Which type of WAN
connection do you use? After all it sounds like a problem with
watchping...
|
Just as a temporay workaround, you can use smonit to monitor and execute actions. Here an example hook thay you might copy to /etc/smonit/ It checks ping to 192.168.1.1, if does not work it disables and enables the WAN interface. Smonit is executed by default in cron, but you can run it manually typing "smonit".
|
@p4u Thank you for the smonit script. I will test it. Is it 192.168.1.1 the IP that should verify? Not better an internet public IP? |
I have solved it at "my way" ;-P
Then, what I did was to delay the execution of the watchping script adding sleep 10 at the beginning of /etc/init.d/watchping:
Cause it takes a time to connect to WAN via PPPoE, when boots, watchping it takes 10 secs to test internet connectivity and if it detects, announce the gateway tunnel. Without this delay always detects no-internet and removed the tunnels. |
Uh, I always thought it was running in cron!
@p4u @G10h4ck @aparcar @altergui @nicopace What's an elegant fix? The |
On Mon, Jan 01, 2018 at 03:46:08PM +0000, Ilario Gelmetti wrote:
Uh, I always thought it was running in cron!
Instead seems that has its own [loop time parameter](/libremesh/lime-packages/blob/develop/packages/watchping/files/usr/bin/watchping#L6) `pinginterval`.
So maybe fails to start 'cause that interface is not up when watchping is called?
@modante can you check if watchping is present in `ps` output when the `sleep 10` is not present?
Something like this should appear:
```
ps | grep watch
1806 root 1368 S {watchping} /bin/sh /usr/bin/watchping eth0.2 120 8.8.8.8 20 wan
23653 root 1356 S grep watch
```
@p4u @G10h4ck @aparcar @altergui @nicopace What's an elegant fix? The `sleep 10` @modante added? Inserting that in cron?
Neither cron nor an explicit sleep is the right solution to this
problem, please don't do either of it as it adds an imcomplete
work-around for a problem which should be addressed in watchping's
init-script by adding the appropriate reload trigger and also
making sure it only starts once the corresponding interface is up.
There are many examples for this and I tried implementing it for
watchping:
https://github.com/libremesh/lime-packages/blob/develop/packages/watchping/files/etc/init.d/watchping#L100
Maybe the interfaces are not collected properly from your config?
Can you add some 'echo' calls into the init script to see what's going
on?
|
I am pretty sure. But from a novice point of view ;-)
I ran ps before adding the sleep and yes it was running. It is enabled in the init scripts.
Could you explain me better what should I do? Sorry but I don't understand right. |
I had another look at it and think that the problem can be resolved by
changing line 6 'START=99' in
https://github.com/libremesh/lime-packages/blob/develop/packages/watchping/files/etc/init.d/watchping#L6
to be 'START=19' (ie. just before network) instead, so that triggers
are defined before the interface comes up.
|
Doesn't work for me. Removed sleep, changed start to 19 and after rebooting the scrip was disabled. I enabled it but didn't work till I ran it. Rebooted again, now is enabled but still doesn't annouce the inet tunnel if I don't run it manually. |
Up to now, seems that watchping will not be included in the next 19.something release, so I would close this. |
Something happened yesterday while I was configuring a new router for the mesh.
I am not sure if that was the originator, but I selected in the Simple Config > Advanced > Internet Priorized Gateway (bmx6) > LiMe-WDR3500 and suddenly the internet connection stopped. I thought that was another fault of the WISP.
Revising two hours later I noticed that in the WAN connection of the router that serves like gateway, the protocol changed from PPPoE to DHCP. I put again the settings for PPPoE and it is working till now.
Anybody that noticed something similar?
The text was updated successfully, but these errors were encountered: