early notes/experiments for #35

This commit is contained in:
Kevin Hester
2020-12-15 17:41:35 +08:00
parent 0759c1593f
commit 271489714d
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
# for userspace access to the TUN network interface by meshtastic. Add your user to the netdev group.
# gives access via /dev/net/tun permissions
# install via sudo cp meshtastic_tun.rules /etc/udev/rules.d/
KERNEL=="tun", GROUP="netdev", MODE="0660", OPTIONS+="static_node=net/tun"

6
extra/tuntest.py Normal file
View File

@@ -0,0 +1,6 @@
# delete me eventually
from tuntap import TunTap
tun = TunTap(nic_type="Tun",nic_name="tun0")
tun.config(ip="10.115.1.2",mask="255.255.0.0")