-
Notifications
You must be signed in to change notification settings - Fork 144
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
meshtastic --tunnel -> Read TUN in a Thread failure #104
Comments
This issue has been mentioned on Meshtastic. There might be relevant details there: https://meshtastic.discourse.group/t/meshtastic-tunnel-sh-1-ifconfig-not-found/3818/1 |
https://linuxconfig.org/how-to-install-missing-ifconfig-command-on-debian-linux
this issue looks solve but I fall into an other one:
@geeksville which Linux distrubion do you use ? |
I'm not lucky ;-(
|
works. I see the device rebooting. |
@geeksville On which firmware version tunnel was tested ? |
Same behavior with firmware-tbeam-1.2.5.bin |
#96 ? |
I also cant get tunnel working |
Comment Thread and call __tunReader() around line 104:
Launch meshtastic --tunnel mesh0 interface is up
Ping is ok:
|
Modification done into tunnel.py Around line 100:
With modification:
Then everything work. I can ping, ssh and http a web page. Seams to confirm an issue in relation with the Thread. |
Can't move TUN creation in the __tunReader function as also needed in the write. So the question is how do we pass the tun to the thread ? |
Take a look at #106; see if that works for you. |
You PR looks so simple ! |
I just tested between: Pings work in both directions. Thanks a lot. @geeksville please inject the PR in the Trunk. I'm closing the issue. |
On Linux distributions ifconfig is no longer up to date and ip should be used. The only legitimate purpose for ifconfig would be on BSD systems. |
Hi,
I'm trying to setip the tunnel for test purposes. I got an error about ifconfig.
I did the test on a VM Debian 10 and on a VM Ubuntu.
Followed the steps from pages:
After a french install of ubuntu here are the command I used as root:
After putting in debug I can identify the issue at line https://github.com/meshtastic/Meshtastic-python/blob/8380e57fa060b4cd5a46cfce7ec4fcc99019c3ed/meshtastic/tunnel.py#L102
If I do a small test.py
File
Test
Identical error message.
Looks like there is an issue with the lib.
I just tested with Debian on a RPI3. Same issue.
Can't any related discussion in the forum.
Any clue from anybody ?
The text was updated successfully, but these errors were encountered: