Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IP tuntap command can't open tun

I want to create a TUN interfae I type command in adb like below

mkdir -p /dev/net
busybox mknod /dev/net/tun1 c 10 200
chmod 666 /dev/net/tun1
ip tuntap add dev tun1 mode tun

When I type "ip tuntap add dev tun1 mode tun" It show "open: No such file or directory" like this https://i.sstatic.net/R2NwF.jpg

Can anyone give me some idea? It's about kernel or other? How to fix it?

like image 585
Mark Avatar asked Oct 31 '25 20:10

Mark


1 Answers

as root run

mkdir /dev/net
ln -s /dev/tun /dev/net/tun

for certain Synology devices, tun module have to be installed first. As root run

insmod /lib/modules/tun.ko
mkdir /dev/net
mknod /dev/net/tun c 10 200
chmod 600 /dev/net/tun
like image 58
Mark Mark Avatar answered Nov 03 '25 09:11

Mark Mark



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!