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.

136 lines
6.8 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 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 will set all station interfaces to 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 environment
  9. * strong LuCI-Support with builtin interface wizard and a wireless station manager
  10. * fast uplink connections
  11. * support all kinds of uplinks, incl. hidden and enterprise uplinks
  12. * continuously checks the existing uplink connection (quality), e.g. for conditional uplink (dis-) connections
  13. * captive portal detection with internet online check and a 'heartbeat' function to keep the uplink connection up & running
  14. * proactively scan and switch to a higher prioritized uplink, despite of an already existing connection
  15. * support devices with multiple radios in any order
  16. * procd init and hotplug support
  17. * runtime information available via LuCI & via 'status' init command
  18. * status & debug logging to syslog
  19. * optional: the LuCI frontend shows the WiFi QR codes from all configured Access Points. It allows you to connect your Android or iOS devices to your router’s WiFi using the QR code
  20. ## Prerequisites
  21. * [OpenWrt](https://openwrt.org), tested with the stable release series (18.06.x) and with the latest OpenWrt snapshot
  22. * iwinfo for wlan scanning, uclient-fetch for captive portal detection
  23. * optional: qrencode 4.x for QR code support
  24. * optional: wpad (the full version, not wpad-mini) to use Enterprise WiFi
  25. ## Installation & Usage
  26. * download the package [here](https://downloads.openwrt.org/snapshots/packages/x86_64/packages)
  27. * install 'travelmate' (_opkg install travelmate_)
  28. * configure your network:
  29. * recommended: use the LuCI frontend with builtin interface wizard and a wireless station manager
  30. * manual: see detailed configuration steps below
  31. * at least you need one configured AP and one STA interface
  32. ## LuCI travelmate companion package
  33. * download the package [here](https://downloads.openwrt.org/snapshots/packages/x86_64/luci)
  34. * install 'luci-app-travelmate' (_opkg install luci-app-travelmate_)
  35. * the application is located in LuCI under 'Services' menu
  36. ## Travelmate config options
  37. * usually the pre-configured travelmate setup works quite well and no manual config overrides are needed, all listed options apply to the 'global' section:
  38. * trm\_enabled => main switch to enable/disable the travelmate service (bool/default: '0', disabled)
  39. * trm\_debug => enable/disable debug logging (bool/default: '0', disabled)
  40. * trm\_captive => enable/disable the captive portal detection (bool/default: '1', enabled)
  41. * trm\_proactive => enable/disable the proactive uplink switch (bool/default: '1', enabled)
  42. * trm\_minquality => minimum signal quality threshold as percent for conditional uplink (dis-) connections (int/default: '35', valid range: 20-80)
  43. * trm\_maxwait => how long (in seconds) should travelmate wait for a successful wlan interface reload action (int/default: '30', valid range: 20-40)
  44. * trm\_maxretry => how many times should travelmate try to connect to an uplink (int/default: '3', valid range: 1-10)
  45. * trm\_timeout => overall retry timeout in seconds (int/default: '60', valid range: 30-300)
  46. * trm\_radio => limit travelmate to a single radio (e.g. 'radio1') or change the overall scanning priority (e.g. 'radio1 radio2 radio0') (default: not set, use all radios 0-n)
  47. * trm\_iface => main uplink / procd trigger network interface (default: trm_wwan)
  48. * trm\_triggerdelay => additional trigger delay in seconds before travelmate processing begins (int/default: '2')
  49. ## Runtime information
  50. **receive travelmate runtime information:**
  51. <pre><code>
  52. ~# /etc/init.d/travelmate status
  53. ::: travelmate runtime information
  54. + travelmate_status : connected (net ok/78)
  55. + travelmate_version : 1.2.3
  56. + station_id : radio1/blackhole/01:02:03:04:05:06
  57. + station_interface : trm_wwan
  58. + faulty_stations :
  59. + last_rundate : 07.09.2018 17:22:37
  60. + system : TP-LINK RE450, OpenWrt SNAPSHOT r8018-42f158314e
  61. </code></pre>
  62. ## Manual Setup
  63. **1. configure the travelmate wwan interface in /etc/config/network:**
  64. <pre><code>
  65. [...]
  66. config interface 'trm_wwan'
  67. option proto 'dhcp'
  68. [...]
  69. </code></pre>
  70. **2. add this interface to your firewall configuration in /etc/config/firewall:**
  71. <pre><code>
  72. [...]
  73. config zone
  74. option name 'wan'
  75. option network 'wan wan6 trm_wwan'
  76. [...]
  77. </code></pre>
  78. **3. at least add one ap and (multiple) wwan stations to your wireless configuration in etc/config/wireless:**
  79. <pre><code>
  80. [...]
  81. config wifi-iface
  82. option device 'radio0'
  83. option network 'lan'
  84. option mode 'ap'
  85. option ssid 'example_ap'
  86. option encryption 'psk2+ccmp'
  87. option key 'abc'
  88. option disabled '0'
  89. [...]
  90. config wifi-iface
  91. option device 'radio0'
  92. option network 'trm_wwan'
  93. option mode 'sta'
  94. option ssid 'example_usual'
  95. option encryption 'psk2+ccmp'
  96. option key 'abc'
  97. option disabled '1'
  98. [...]
  99. config wifi-iface
  100. option device 'radio0'
  101. option network 'trm_wwan'
  102. option mode 'sta'
  103. option ssid 'example_hidden'
  104. option bssid '00:11:22:33:44:55'
  105. option encryption 'psk2+ccmp'
  106. option key 'xyz'
  107. option disabled '1'
  108. [...]
  109. </code></pre>
  110. **4. start travelmate:**
  111. <pre><code>
  112. edit /etc/config/travelmate and set 'trm_enabled' to '1'
  113. /etc/init.d/travelmate restart
  114. </code></pre>
  115. ## Support
  116. Please join the travelmate discussion in this [forum thread](https://forum.lede-project.org/t/travelmate-support-thread/5155) or contact me by [mail](mailto:dev@brenken.org)
  117. ## Removal
  118. * stop the travelmate daemon with _/etc/init.d/travelmate stop_
  119. * optional: remove the travelmate package (_opkg remove travelmate_)
  120. Have fun!
  121. Dirk