early notes/experiments for #35

This commit is contained in:
Kevin Hester committed 2020-12-15 17:41:35 +08:00
1 parent 0759c1593f
commit 271489714d
2 files changed
+10

No files matched your search

+4
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
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")