Packet tunneling over UDP, multiple channels
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
1.1 KiB

  1. # Virtual cable with uplink to example host at 10.0.0.1:2
  2. # + creates a local tap named "example" with tunneling MTU (1450)
  3. # + uses UDP port 3 for this cable end
  4. # + reniced service daemon
  5. # + single-v logging to /var/log/rrqnet-example.log
  6. # + cable PSK /etc/rrqnet/keys/example.key (not included)
  7. # + 10 packet buffers and a single dispatch thread
  8. # + using dhcpclient locally for IPv4 assignment
  9. # + static MAC address and IPv4 assignment
  10. #
  11. # This template includes an extension block for adding an ipv6 setup
  12. # (with fictive addresses). Usage:
  13. # ifup example=ipv6
  14. # ifdown example=ipv6
  15. auto example
  16. iface example inet static
  17. mtu 1450
  18. hwaddress 02:00:00:00:00:02
  19. address 192.168.0.2/24
  20. broadcast 192.168.0.255
  21. rrqnet_port 3
  22. rrqnet_nice -3
  23. rrqnet_log -v /var/log/rrqnet-example.log
  24. rrqnet_remote 10.0.0.1:2=/etc/rrqnet/keys/example.key
  25. rrqnet_options -B 10 -T 1
  26. iface ipv6 inet static inherits example
  27. up ip addr add fe00:0:0:0:0:1:c0a8:0002/96 dev example
  28. up ip route add ::/0 via fe00:0:0:0:0:1:0:1 dev example
  29. down ip route del ::/0 via fe00:0:0:0:0:1:0:1 dev example