mirror of
https://github.com/meshtastic/python.git
synced 2026-01-13 18:28:03 -05:00
early notes/experiments for #35
This commit is contained in:
4
extra/meshtastic_tun.rules
Normal file
4
extra/meshtastic_tun.rules
Normal 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
6
extra/tuntest.py
Normal 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")
|
||||
Reference in New Issue
Block a user