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.

120 lines
5.4 KiB

  1. # travelmate, a wlan connection manager for travel router
  2. ## Description
  3. If you’re planning an upcoming vacation or a business trip, taking your laptop, tablet or smartphone give you the ability to connect with friends or complete work on the go. But many hotels don’t have a secure wireless network setup or you’re limited on using a single device at once. Investing in a portable, mini travel router is a great way to connect all of your devices at once while having total control over your own personalized wireless network.
  4. A logical combination of AP+STA mode on one physical radio allows most of OpenWrt/LEDE supported router devices to connect to a wireless hotspot/station (STA) and provide a wireless access point (AP) from that hotspot at the same time. Downside of this solution: whenever the STA interface looses the connection it will go into an active scan cycle which renders the radio unusable for AP mode operation, therefore the AP is taken down if the STA looses its association.
  5. To avoid these kind of deadlocks, travelmate set all station interfaces in an "always off" mode and connects automatically to available/configured hotspots.
  6. ## Main Features
  7. * STA interfaces operating in an "always off" mode, to make sure that the AP is always accessible
  8. * easy setup within normal OpenWrt/LEDE environment
  9. * fast uplink connections
  10. * support multiple radios
  11. * procd init system support
  12. * procd based hotplug support, the travelmate start will be triggered by interface triggers
  13. * status & debug logging to syslog
  14. ## Prerequisites
  15. * [OpenWrt](https://openwrt.org) or [LEDE](https://www.lede-project.org) trunk
  16. * iw (default) or iwinfo for wlan scanning
  17. ## OpenWrt / LEDE trunk Installation & Usage
  18. * download the package [here](https://downloads.lede-project.org/snapshots/packages/x86_64/packages)
  19. * install 'travelmate' (_opkg install travelmate_)
  20. * configure your network to support (multiple) wlan uplinks and set travelmate config options (see below)
  21. * set 'trm\_enabled' option in travelmate config to '1'
  22. * travelmate starts automatically during boot and will be triggered by procd interface triggers
  23. ## LuCI travelmate companion package
  24. * download the package [here](https://downloads.lede-project.org/snapshots/packages/x86_64/luci)
  25. * install 'luci-app-travelmate' (_opkg install luci-app-travelmate_)
  26. * the application is located in LuCI under 'Services' menu
  27. * _Thanks to Hannu Nyman for this great LuCI frontend!_
  28. ## Chaos Calmer installation notes
  29. * 'travelmate' and 'luci-app-travelmate' are _not_ available as ipk packages in the Chaos Calmer download repository
  30. * download the packages from a development snapshot directory (see download links above)
  31. * manually transfer the packages to your routers temp directory (with tools like _sshfs_ or _winscp_)
  32. * install the packages as described above
  33. ## Travelmate config options
  34. * travelmate config options:
  35. * trm\_enabled => main switch to enable/disable the travelmate service (default: '0', disabled)
  36. * trm\_debug => enable/disable debug logging (default: '0', disabled)
  37. * trm\_maxwait => how long (in seconds) should travelmate wait for wlan interface reload action (default: '20')
  38. * trm\_maxretry => how many times should travelmate try to find an uplink after a trigger event (default: '3')
  39. * trm\_iw => set this option to '0' to use iwinfo for wlan scanning (default: '1', use iw)
  40. * trm\_radio => limit travelmate to a dedicated radio, e.g. 'radio0' (default: not set, use all radios)
  41. * trm\_iface => restrict the procd interface trigger to a (list of) certain wan interface(s) or disable it at all (default: not set, disabled)
  42. ## Setup
  43. **1. configure a wwan interface in /etc/config/network:**
  44. <pre><code>
  45. [...]
  46. config interface 'wwan'
  47. option proto 'dhcp'
  48. [...]
  49. </code></pre>
  50. **2. add this interface to your firewall configuration in /etc/config/firewall:**
  51. <pre><code>
  52. [...]
  53. config zone
  54. option name 'wan'
  55. option network 'wan wan6 wwan'
  56. [...]
  57. </code></pre>
  58. **3. add required ap and wwan stations to your wireless configuration in etc/config/wireless:**
  59. <pre><code>
  60. [...]
  61. config wifi-iface
  62. option device 'radio0'
  63. option network 'lan'
  64. option mode 'ap'
  65. option ssid 'example_ap'
  66. option encryption 'psk2+ccmp'
  67. option key 'abc'
  68. option disabled '0'
  69. [...]
  70. config wifi-iface
  71. option device 'radio0'
  72. option network 'wwan'
  73. option mode 'sta'
  74. option ssid 'example_01'
  75. option encryption 'psk2+ccmp'
  76. option key 'abc'
  77. option disabled '1'
  78. config wifi-iface
  79. option device 'radio0'
  80. option network 'wwan'
  81. option mode 'sta'
  82. option ssid 'example_02'
  83. option encryption 'psk2+ccmp'
  84. option key 'xyz'
  85. option disabled '1'
  86. config wifi-iface
  87. option device 'radio0'
  88. option network 'wwan'
  89. option mode 'sta'
  90. option ssid 'example_03'
  91. option encryption 'none'
  92. option disabled '1'
  93. [...]
  94. </code></pre>
  95. **4. reload network configuration & start travelmate:**
  96. <pre><code>
  97. /etc/init.d/network reload
  98. /etc/init.d/travelmate start
  99. </code></pre>
  100. ## Support
  101. Please join the travelmate discussion in this [forum thread](https://forum.openwrt.org/viewtopic.php?id=67697) or contact me by [mail](mailto:dev@brenken.org)
  102. ## Removal
  103. * stop the travelmate daemon with _/etc/init.d/travelmate stop_
  104. * optional: remove the travelmate package (_opkg remove travelmate_)
  105. Have fun!
  106. Dirk