For some reason “sudo ssh -w any -o Tunnel=ethernet root@remote” creates tun devices instead of tap devices

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












To connect multiple tunnel endpoints to a common bridge interface, I have to create a Layer 2 tunnel over ssh. The server is Ubuntu 10.04, the client is Ubuntu 14.04. I have enabled



PermitTunnel yes
PermitRootLogin yes


in the servers /etc/sshd_config. When I'm connecting with sudo ssh -w any:any -o "Tunnel=ethernet" root@remote I get a tun device instead of the expected tap device. If I change "PermitTunnel yes" to "PermitTunnel ethernet" on the server, I get a "channel 0: open failed: administratively prohibited: open failed" error message and no tunnel device at all.



I'm at a loss, because I'm positive that this used to work at some point in the past (with different machines and probably Linux versions).










share|improve this question























  • what openssh version do you have on the ubuntu 10? I would guess it will be pretty old (EOL?) and it might miss some features.
    – Jakuje
    Mar 9 '16 at 16:19










  • The sshd version on Ubuntu 10 should not be the problem. The man page documents the PermitTunnel option with both point-to-point and ethernet as valid values. Anyway, the version is 1:5.3p1.
    – jpo234
    Mar 9 '16 at 16:35











  • That's a bit old Ubuntu you are running. Did you try connecting with a more recent version? With a live-cd maybe?
    – We are Borg
    Mar 9 '16 at 16:36











  • I'm not sure I understand your question correctly, but as I wrote in my question: the server is Ubuntu 10.04 (pretty old, I admit) and the client is Ubuntu 14.04LTS.
    – jpo234
    Mar 9 '16 at 16:39














up vote
1
down vote

favorite












To connect multiple tunnel endpoints to a common bridge interface, I have to create a Layer 2 tunnel over ssh. The server is Ubuntu 10.04, the client is Ubuntu 14.04. I have enabled



PermitTunnel yes
PermitRootLogin yes


in the servers /etc/sshd_config. When I'm connecting with sudo ssh -w any:any -o "Tunnel=ethernet" root@remote I get a tun device instead of the expected tap device. If I change "PermitTunnel yes" to "PermitTunnel ethernet" on the server, I get a "channel 0: open failed: administratively prohibited: open failed" error message and no tunnel device at all.



I'm at a loss, because I'm positive that this used to work at some point in the past (with different machines and probably Linux versions).










share|improve this question























  • what openssh version do you have on the ubuntu 10? I would guess it will be pretty old (EOL?) and it might miss some features.
    – Jakuje
    Mar 9 '16 at 16:19










  • The sshd version on Ubuntu 10 should not be the problem. The man page documents the PermitTunnel option with both point-to-point and ethernet as valid values. Anyway, the version is 1:5.3p1.
    – jpo234
    Mar 9 '16 at 16:35











  • That's a bit old Ubuntu you are running. Did you try connecting with a more recent version? With a live-cd maybe?
    – We are Borg
    Mar 9 '16 at 16:36











  • I'm not sure I understand your question correctly, but as I wrote in my question: the server is Ubuntu 10.04 (pretty old, I admit) and the client is Ubuntu 14.04LTS.
    – jpo234
    Mar 9 '16 at 16:39












up vote
1
down vote

favorite









up vote
1
down vote

favorite











To connect multiple tunnel endpoints to a common bridge interface, I have to create a Layer 2 tunnel over ssh. The server is Ubuntu 10.04, the client is Ubuntu 14.04. I have enabled



PermitTunnel yes
PermitRootLogin yes


in the servers /etc/sshd_config. When I'm connecting with sudo ssh -w any:any -o "Tunnel=ethernet" root@remote I get a tun device instead of the expected tap device. If I change "PermitTunnel yes" to "PermitTunnel ethernet" on the server, I get a "channel 0: open failed: administratively prohibited: open failed" error message and no tunnel device at all.



I'm at a loss, because I'm positive that this used to work at some point in the past (with different machines and probably Linux versions).










share|improve this question















To connect multiple tunnel endpoints to a common bridge interface, I have to create a Layer 2 tunnel over ssh. The server is Ubuntu 10.04, the client is Ubuntu 14.04. I have enabled



PermitTunnel yes
PermitRootLogin yes


in the servers /etc/sshd_config. When I'm connecting with sudo ssh -w any:any -o "Tunnel=ethernet" root@remote I get a tun device instead of the expected tap device. If I change "PermitTunnel yes" to "PermitTunnel ethernet" on the server, I get a "channel 0: open failed: administratively prohibited: open failed" error message and no tunnel device at all.



I'm at a loss, because I'm positive that this used to work at some point in the past (with different machines and probably Linux versions).







linux ssh ssh-tunneling tap






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 9 '16 at 16:16

























asked Mar 9 '16 at 16:10









jpo234

736




736











  • what openssh version do you have on the ubuntu 10? I would guess it will be pretty old (EOL?) and it might miss some features.
    – Jakuje
    Mar 9 '16 at 16:19










  • The sshd version on Ubuntu 10 should not be the problem. The man page documents the PermitTunnel option with both point-to-point and ethernet as valid values. Anyway, the version is 1:5.3p1.
    – jpo234
    Mar 9 '16 at 16:35











  • That's a bit old Ubuntu you are running. Did you try connecting with a more recent version? With a live-cd maybe?
    – We are Borg
    Mar 9 '16 at 16:36











  • I'm not sure I understand your question correctly, but as I wrote in my question: the server is Ubuntu 10.04 (pretty old, I admit) and the client is Ubuntu 14.04LTS.
    – jpo234
    Mar 9 '16 at 16:39
















  • what openssh version do you have on the ubuntu 10? I would guess it will be pretty old (EOL?) and it might miss some features.
    – Jakuje
    Mar 9 '16 at 16:19










  • The sshd version on Ubuntu 10 should not be the problem. The man page documents the PermitTunnel option with both point-to-point and ethernet as valid values. Anyway, the version is 1:5.3p1.
    – jpo234
    Mar 9 '16 at 16:35











  • That's a bit old Ubuntu you are running. Did you try connecting with a more recent version? With a live-cd maybe?
    – We are Borg
    Mar 9 '16 at 16:36











  • I'm not sure I understand your question correctly, but as I wrote in my question: the server is Ubuntu 10.04 (pretty old, I admit) and the client is Ubuntu 14.04LTS.
    – jpo234
    Mar 9 '16 at 16:39















what openssh version do you have on the ubuntu 10? I would guess it will be pretty old (EOL?) and it might miss some features.
– Jakuje
Mar 9 '16 at 16:19




what openssh version do you have on the ubuntu 10? I would guess it will be pretty old (EOL?) and it might miss some features.
– Jakuje
Mar 9 '16 at 16:19












The sshd version on Ubuntu 10 should not be the problem. The man page documents the PermitTunnel option with both point-to-point and ethernet as valid values. Anyway, the version is 1:5.3p1.
– jpo234
Mar 9 '16 at 16:35





The sshd version on Ubuntu 10 should not be the problem. The man page documents the PermitTunnel option with both point-to-point and ethernet as valid values. Anyway, the version is 1:5.3p1.
– jpo234
Mar 9 '16 at 16:35













That's a bit old Ubuntu you are running. Did you try connecting with a more recent version? With a live-cd maybe?
– We are Borg
Mar 9 '16 at 16:36





That's a bit old Ubuntu you are running. Did you try connecting with a more recent version? With a live-cd maybe?
– We are Borg
Mar 9 '16 at 16:36













I'm not sure I understand your question correctly, but as I wrote in my question: the server is Ubuntu 10.04 (pretty old, I admit) and the client is Ubuntu 14.04LTS.
– jpo234
Mar 9 '16 at 16:39




I'm not sure I understand your question correctly, but as I wrote in my question: the server is Ubuntu 10.04 (pretty old, I admit) and the client is Ubuntu 14.04LTS.
– jpo234
Mar 9 '16 at 16:39










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










I have the same problem. According to my tests, it is not related to the server, instead it has something to do with the client. Either ssh build and configuration, either due to the local network configuration.



I've been able to create a tap interface between my laptop and all of my devices but when I tried to tunnel between the devices, only tun interfaces were created.



[edit]
The workaround consists in putting the "-o" before the "-w" like this :



ssh -o Tunnel=ethernet -w any:any root@remote


instead of :



ssh -w any:any -o Tunnel=ethernet root@remote


I tried it myself, it works, here is the source : https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1316017






share|improve this answer






















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f268690%2ffor-some-reason-sudo-ssh-w-any-o-tunnel-ethernet-rootremote-creates-tun-dev%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    I have the same problem. According to my tests, it is not related to the server, instead it has something to do with the client. Either ssh build and configuration, either due to the local network configuration.



    I've been able to create a tap interface between my laptop and all of my devices but when I tried to tunnel between the devices, only tun interfaces were created.



    [edit]
    The workaround consists in putting the "-o" before the "-w" like this :



    ssh -o Tunnel=ethernet -w any:any root@remote


    instead of :



    ssh -w any:any -o Tunnel=ethernet root@remote


    I tried it myself, it works, here is the source : https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1316017






    share|improve this answer


























      up vote
      1
      down vote



      accepted










      I have the same problem. According to my tests, it is not related to the server, instead it has something to do with the client. Either ssh build and configuration, either due to the local network configuration.



      I've been able to create a tap interface between my laptop and all of my devices but when I tried to tunnel between the devices, only tun interfaces were created.



      [edit]
      The workaround consists in putting the "-o" before the "-w" like this :



      ssh -o Tunnel=ethernet -w any:any root@remote


      instead of :



      ssh -w any:any -o Tunnel=ethernet root@remote


      I tried it myself, it works, here is the source : https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1316017






      share|improve this answer
























        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        I have the same problem. According to my tests, it is not related to the server, instead it has something to do with the client. Either ssh build and configuration, either due to the local network configuration.



        I've been able to create a tap interface between my laptop and all of my devices but when I tried to tunnel between the devices, only tun interfaces were created.



        [edit]
        The workaround consists in putting the "-o" before the "-w" like this :



        ssh -o Tunnel=ethernet -w any:any root@remote


        instead of :



        ssh -w any:any -o Tunnel=ethernet root@remote


        I tried it myself, it works, here is the source : https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1316017






        share|improve this answer














        I have the same problem. According to my tests, it is not related to the server, instead it has something to do with the client. Either ssh build and configuration, either due to the local network configuration.



        I've been able to create a tap interface between my laptop and all of my devices but when I tried to tunnel between the devices, only tun interfaces were created.



        [edit]
        The workaround consists in putting the "-o" before the "-w" like this :



        ssh -o Tunnel=ethernet -w any:any root@remote


        instead of :



        ssh -w any:any -o Tunnel=ethernet root@remote


        I tried it myself, it works, here is the source : https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1316017







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jun 21 '16 at 3:23

























        answered Jun 21 '16 at 3:18









        dader

        1263




        1263



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f268690%2ffor-some-reason-sudo-ssh-w-any-o-tunnel-ethernet-rootremote-creates-tun-dev%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)