Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Some time ago when I used openSSH 7.x and older kernels, creation of reverse tunnels or tunnels as such was an easy exercise. Now, with 8.6, I can't create any, all I get is the message:
Tunnel device open failed.
Could not request tunnel forwarding.
tunneling is allowed in both ssh and sshd configs at both ends.
there is additional message:
debug1: sys_tun_open: failed to open tunnel control device "/dev/net/tun": Permission denied
I understand that I have to allow regular user to open tun device, but how?
(Slackware64-current, openSSH 8.6)
Please show the full line of what you are writing to invoke the SSH client so we can see what you are attempting. tun is not needed in a standard reverse tunnel.
You can use either one, two, or three -v options there. If you post the output here, feel free to obfuscate addresses and accounts but regardless of that be sure to enclose it between [code] [/code] tags.
... skipped a lot of msg related to auth
debug1: Authentication succeeded (publickey).
Authenticated to RHOST ([RHOST]:22).
debug1: Remote connections from *:10122 forwarded to local address localhost:443
debug1: Requesting tun unit 2147483647 in mode 1
debug1: sys_tun_open: failed to configure tunnel (mode 1): Operation not permitted
Tunnel device open failed.
Could not request tunnel forwarding.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.