Re: How to destroy tun device (created by ssh -w)?
- From: Pascal Hambourg <boite-a-spam@xxxxxxxxxxxxxxx>
- Date: Fri, 04 Apr 2008 12:16:57 +0200
Hello,
Andrew Gideon a écrit :
I've tun devices created via "ssh -w". Sometimes, the connection is broken in a way that leaves the tun device around. I can remove the device via "rmmod tun", but this kills *all* tun devices. I'd like to be a little less bloodthirsty than that.
I thought perhaps "/sbin/ip tunnel del tun9", but that yields: "ioctl: Operation not supported". So apparently it's not the right type of device for this.
No it's not. "ip tunnel" manages only kernel-mode tunnels such as IP-in-IP, GRE or IPv6-in-IPv4 over IP. Not user-mode TUN/TAP devices.
Any suggestions on how to delete the tun device?
Try tunctl from UML (User-mode Linux).
However I am a bit surprised that the tun device created by ssh is persistent after ssh exits, because this is useless.
.
- Follow-Ups:
- Re: How to destroy tun device (created by ssh -w)?
- From: Andrew Gideon
- Re: How to destroy tun device (created by ssh -w)?
- References:
- How to destroy tun device (created by ssh -w)?
- From: Andrew Gideon
- How to destroy tun device (created by ssh -w)?
- Prev by Date: Re: Wireless internet access through LAN
- Next by Date: Re: Strange routing / NAT issue
- Previous by thread: How to destroy tun device (created by ssh -w)?
- Next by thread: Re: How to destroy tun device (created by ssh -w)?
- Index(es):