You are not logged in.
Trying to do:
[root@host ~]# tunctl -b -u 1001
Which doesn't work because i need uml_utilities, and that package can't be found anywhere (AUR, Core, Extra)?
Any ideas to what i should do or where to get it?
I've installed bridge-utils so that works fine, now i need tunctl, or is there a equivilant?
I know OpenVPN can handle this without uml_utilities so i assume there's a workaround if this package is not supported but in that case, how?
Last edited by Torxed (2013-06-04 11:02:54)
Offline
https://mailman.archlinux.org/pipermail … 23611.html
It is in the AUR, just under a different name https://aur.archlinux.org/packages/uml_ … _tunpatch/
Offline
Thank you karol, ip tuntapadd dev tap0 mode tap user torxed group kvm works perfectly
Offline
[root@host ~]# tunctl -b -u 1001
Use ip from iproute2:
$ sudo ip tuntap add dev tun0 mode tun user hiciu
$ ip tuntap :(
tun0: tun user 1000
$ ip link show tun0
4: tun0: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 500
link/none
edit: oh, I see I was too late :)
Last edited by hiciu (2013-06-04 11:03:26)
Offline
Is it possible to receive the name of newly tun device with the 'ip tuntap add...' command? i.e. tun0
Offline
Is it possible to receive the name of newly tun device with the 'ip tuntap add...' command? i.e. tun0
I couldn't find a way - it doesn't return it, and there doesn't seem to be way to know which is the one added if you list them.
I solved the issue by generating the device name and passing it to the command, that way I know what it is in my script.
Edit: thought it was my old thread, deleted irrelevant comment.
Last edited by skanky (2013-06-05 13:07:43)
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
Is it possible to receive the name of newly tun device with the 'ip tuntap add...' command? i.e. tun0
I wrote this script as a drop-in replacement for tunctl. If anybody has improvement ideas, please do post them!
#!/bin/bash
#
# Drop-in replacement for tunctl from the old uml_utilities
# replaced by ip from the iproute2 package.
#
# By Alexandre de Verteuil 2013-06-06.
if ! which ip &> /dev/null; then
echo "ip not found, is iproute2 package installed?" >&2
exit 1
fi
while getopts d:bu:t: argument
do
case $argument in
d)
ip tuntap del dev "$OPTARG" mode tap
exit $?
;;
u)
USERARG="user $OPTARG"
;;
b)
#Brief, there is no verbose.
;;
t)
DEVNAME="dev $OPTARG"
;;
esac
done
# Memorize existing tap devices.
before=$(ip tuntap list | cut -d: -f1 | sort)
# Create the new tap device.
ip tuntap add $DEVNAME mode tap $DEVNAME || exit 1
# Memorize the new list of tap devices.
after=$(ip tuntap list | cut -d: -f1 | sort)
# Spit out the name of the new device, just like tunctl would do.
echo $(comm -13 <(echo "$before") <(echo "$after"))
I saved it as /usr/local/bin/tunctl.
Offline