Advertisement
Guest User

Meshbox tunnel server config

a guest
May 28th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. # This file describes the network interfaces available on your system
  2. # and how to activate them. For more information, see interfaces(5).
  3.  
  4. source /etc/network/interfaces.d/*
  5.  
  6. # loopback network interface
  7. auto lo
  8. iface lo inet loopback
  9.  
  10. # built-in ethernet port
  11. auto eno1
  12. iface eno1 inet manual
  13. up ip link set eno1 up
  14. up ip link set eno1 promisc on
  15. down ip link set eno1 promisc off
  16. down ip link set eno1 up
  17.  
  18. auto eno1.137
  19. iface eno1.137 inet manual
  20. vlan-raw-device eno1
  21.  
  22. # USB ethernet port
  23. auto enx0050b65bc27a
  24. iface enx0050b65bc27a inet manual
  25.  
  26. # batman-adv mesh portal interface
  27. auto bat0
  28. iface bat0 inet manual
  29. pre-up /usr/local/sbin/batctl routing_algo BATMAN_IV
  30. pre-up /usr/local/sbin/batctl if add enx0050b65bc27a
  31. hwaddress ether c0:3f:d5:63:96:77
  32. up ip link set enx0050b65bc27a up
  33. up ip link set enx0050b65bc27a promisc on
  34. post-up /usr/local/sbin/batctl orig_interval 500
  35. post-up /usr/local/sbin/batctl ap_isolation 0
  36. post-up /usr/local/sbin/batctl bridge_loop_avoidance 1
  37. post-up /usr/local/sbin/batctl distributed_arp_table 0
  38. post-up /usr/local/sbin/batctl aggregation 0
  39. post-up /usr/local/sbin/batctl bonding 0
  40. post-up /usr/local/sbin/batctl fragmentation 1
  41. post-up /usr/local/sbin/batctl network_coding 0
  42. post-up /usr/local/sbin/batctl multicast_mode 0
  43. down ip link set enx0050b65bc27a promisc off
  44. down ip link set enx0050b65bc27a down
  45. post-up echo 127 > /sys/devices/virtual/net/bat0/mesh/hop_penalty
  46.  
  47. # a VLAN to trunk through the mesh
  48. auto bat0.137
  49. iface bat0.137 inet manual
  50. vlan-raw-device bat0
  51.  
  52. # LAN bridge (customer traffic)
  53. auto br-lan
  54. iface br-lan inet static
  55. bridge_ports eno1 bat0
  56. hwaddress ether c0:3f:d5:63:96:76
  57. mtu 1500
  58. address 10.10.0.222
  59. netmask 255.255.0.0
  60. gateway 10.10.0.2
  61. dns-nameservers 8.8.8.8
  62.  
  63. # a VLAN to trunk through the mesh
  64. auto br-lan.137
  65. iface br-lan.137 inet static
  66. vlan-raw-device br-lan
  67. bridge_ports eno1.137 bat0.137
  68. address 172.16.137.2
  69. netmask 255.255.255.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement