Andrew Gideon wrote:
> 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. Which does make sense as "ip tunnel show" doesn't show
> this tun device either.
>
> But ifconfig does show it, as does "ip link show".
>
> Any suggestions on how to delete the tun device?
>
> Thanks...Andrew
use 'tunctl'