Warning: This is a development version. The latest stable version is Version 4.0.1.

TUN Example: ping

Warning

This feature is only available for Linux!

The following examples shows how to use the rely application’s TUN feature.

Using this feature will cause the rely application to create a new virtual network interface on your machine. For this reason root permissions are required. Using this feature basically creates a virtual network like a VPN, but instead of encryption you get reliability.

Host 1 (10.0.0.1)

sudo ./rely tun --local_endpoint 10.0.0.1:8989 --remote_endpoint 10.0.0.2:8989 --tunnel_ip 11.11.11.11

Host 2 (10.0.0.2)

sudo ./rely tun --local_endpoint 10.0.0.2:8989 --remote_endpoint 10.0.0.1:8989 --tunnel_ip 11.11.11.22

Now run the ping command from Host 1:

ping 11.11.11.22

And you should see the packets flowing.

PING 11.11.11.22 (11.11.11.22) 56(84) bytes of data.
64 bytes from 11.11.11.22: icmp_seq=1 ttl=115 time=16.0 ms
64 bytes from 11.11.11.22: icmp_seq=2 ttl=115 time=15.9 ms
64 bytes from 11.11.11.22: icmp_seq=3 ttl=115 time=15.9 ms
...
Versions
4.0.1
4.0.0
3.0.2
3.0.1
3.0.0
2.0.0
Development
latest