Forwarding between two tun interfacesNot able to connect to local networkUbuntu server can access internet...

How to keep bees out of canned beverages?

Why did Rep. Omar conclude her criticism of US troops with the phrase "NotTodaySatan"?

What is the term for a person whose job is to place products on shelves in stores?

What is the unit of time_lock_delta in LND?

Are there moral objections to a life motivated purely by money? How to sway a person from this lifestyle?

Prove that the countable union of countable sets is also countable

A strange hotel

Where was the County of Thurn und Taxis located?

Retract an already submitted recommendation letter (written for an undergrad student)

A ​Note ​on ​N!

Drawing a german abacus as in the books of Adam Ries

What is this word supposed to be?

Island of Knights, Knaves and Spies

What was Apollo 13's "Little Jolt" after MECO?

Extracting Dirichlet series coefficients

Why must Chinese maps be obfuscated?

How bug prioritization works in agile projects vs non agile

Negative Resistance

Creating a chemical industry from a medieval tech level without petroleum

Check if a string is entirely made of the same substring

How do I deal with a coworker that keeps asking to make small superficial changes to a report, and it is seriously triggering my anxiety?

Can I criticise the more senior developers around me for not writing clean code?

Why didn't the Space Shuttle bounce back into space as many times as possible so as to lose a lot of kinetic energy up there?

What is purpose of DB Browser(dbbrowser.aspx) under admin tool?



Forwarding between two tun interfaces


Not able to connect to local networkUbuntu server can access internet but cannot ping systems in the LANConflict between two network interfaces eth0 and eth114.04 no internet connection when I up the bridge interface (for LXC container)IPv6 SLAAC on Ubuntu Server 16.04.Dual NIC not workingRaspberry Pi 3B with Ubuntu Server(CLI) with No Ethernet Recognition and No Wlan0 ListSeveral websites unreachable on university network (w/o VPN)How to enable wireless on Ubuntu Server 18.04 via CLI?Cannot ping past gateway






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I'm using a border router on an embedded device connected on /dev/ttyUSB0 to route communication from a native server to a client on another embedded device on /dev/ttyUSB1, both using the Contiki-NG OS. When the server runs on my laptop it creates the tun0 interface, and the border router is connected to my laptop through another tun interface, tun1. Selective output from ip addr:



19: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 500
link/none
inet 127.0.1.1/32 scope host tun0
valid_lft forever preferred_lft forever
inet6 fd00::1/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::f88c:8ef4:bddd:5701/64 scope link stable-privacy
valid_lft forever preferred_lft forever
20: tun1: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 500
link/none
inet 127.0.1.1/32 scope host tun1
valid_lft forever preferred_lft forever
inet6 fd00::2/128 scope global
valid_lft forever preferred_lft forever
inet6 fe80::2/64 scope link
valid_lft forever preferred_lft forever
inet6 fe80::29ba:e73:b071:4d1f/64 scope link stable-privacy
valid_lft forever preferred_lft forever


The client can ping the router but not the native server. How can I forward traffic from the router on tun1 to the server on tun0 so that the server and client can communicate? I've tried adding a bridge through brctl addbr br0 and adding a tun by brctl addif br0 tun0, but it seems only tap interfaces can be added this way.










share|improve this question





























    0















    I'm using a border router on an embedded device connected on /dev/ttyUSB0 to route communication from a native server to a client on another embedded device on /dev/ttyUSB1, both using the Contiki-NG OS. When the server runs on my laptop it creates the tun0 interface, and the border router is connected to my laptop through another tun interface, tun1. Selective output from ip addr:



    19: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 500
    link/none
    inet 127.0.1.1/32 scope host tun0
    valid_lft forever preferred_lft forever
    inet6 fd00::1/64 scope global
    valid_lft forever preferred_lft forever
    inet6 fe80::f88c:8ef4:bddd:5701/64 scope link stable-privacy
    valid_lft forever preferred_lft forever
    20: tun1: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 500
    link/none
    inet 127.0.1.1/32 scope host tun1
    valid_lft forever preferred_lft forever
    inet6 fd00::2/128 scope global
    valid_lft forever preferred_lft forever
    inet6 fe80::2/64 scope link
    valid_lft forever preferred_lft forever
    inet6 fe80::29ba:e73:b071:4d1f/64 scope link stable-privacy
    valid_lft forever preferred_lft forever


    The client can ping the router but not the native server. How can I forward traffic from the router on tun1 to the server on tun0 so that the server and client can communicate? I've tried adding a bridge through brctl addbr br0 and adding a tun by brctl addif br0 tun0, but it seems only tap interfaces can be added this way.










    share|improve this question

























      0












      0








      0








      I'm using a border router on an embedded device connected on /dev/ttyUSB0 to route communication from a native server to a client on another embedded device on /dev/ttyUSB1, both using the Contiki-NG OS. When the server runs on my laptop it creates the tun0 interface, and the border router is connected to my laptop through another tun interface, tun1. Selective output from ip addr:



      19: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 500
      link/none
      inet 127.0.1.1/32 scope host tun0
      valid_lft forever preferred_lft forever
      inet6 fd00::1/64 scope global
      valid_lft forever preferred_lft forever
      inet6 fe80::f88c:8ef4:bddd:5701/64 scope link stable-privacy
      valid_lft forever preferred_lft forever
      20: tun1: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 500
      link/none
      inet 127.0.1.1/32 scope host tun1
      valid_lft forever preferred_lft forever
      inet6 fd00::2/128 scope global
      valid_lft forever preferred_lft forever
      inet6 fe80::2/64 scope link
      valid_lft forever preferred_lft forever
      inet6 fe80::29ba:e73:b071:4d1f/64 scope link stable-privacy
      valid_lft forever preferred_lft forever


      The client can ping the router but not the native server. How can I forward traffic from the router on tun1 to the server on tun0 so that the server and client can communicate? I've tried adding a bridge through brctl addbr br0 and adding a tun by brctl addif br0 tun0, but it seems only tap interfaces can be added this way.










      share|improve this question














      I'm using a border router on an embedded device connected on /dev/ttyUSB0 to route communication from a native server to a client on another embedded device on /dev/ttyUSB1, both using the Contiki-NG OS. When the server runs on my laptop it creates the tun0 interface, and the border router is connected to my laptop through another tun interface, tun1. Selective output from ip addr:



      19: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 500
      link/none
      inet 127.0.1.1/32 scope host tun0
      valid_lft forever preferred_lft forever
      inet6 fd00::1/64 scope global
      valid_lft forever preferred_lft forever
      inet6 fe80::f88c:8ef4:bddd:5701/64 scope link stable-privacy
      valid_lft forever preferred_lft forever
      20: tun1: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 500
      link/none
      inet 127.0.1.1/32 scope host tun1
      valid_lft forever preferred_lft forever
      inet6 fd00::2/128 scope global
      valid_lft forever preferred_lft forever
      inet6 fe80::2/64 scope link
      valid_lft forever preferred_lft forever
      inet6 fe80::29ba:e73:b071:4d1f/64 scope link stable-privacy
      valid_lft forever preferred_lft forever


      The client can ping the router but not the native server. How can I forward traffic from the router on tun1 to the server on tun0 so that the server and client can communicate? I've tried adding a bridge through brctl addbr br0 and adding a tun by brctl addif br0 tun0, but it seems only tap interfaces can be added this way.







      networking iptables interface






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 14 hours ago









      Simon CarlsonSimon Carlson

      1012




      1012






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1137998%2fforwarding-between-two-tun-interfaces%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1137998%2fforwarding-between-two-tun-interfaces%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          List of shipwrecks in 1808...

          Is there a lightweight tool to crop images quickly?Cropping Images using Command Line Tools OnlyHow to crop...

          Unit packagekit.service is masked Announcing the arrival of Valued Associate #679: Cesar...