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.

127 lines
5.6 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. * zero-conf like automatic installation & setup, usually no manual changes needed
  9. * fast uplink connections
  10. * procd init system support
  11. * procd based hotplug support, the travelmate start will be triggered by interface triggers
  12. * status & debug logging to syslog
  13. ## Prerequisites
  14. * [OpenWrt](https://openwrt.org) or [LEDE](https://www.lede-project.org) trunk
  15. * iw (default) or iwinfo for wlan scanning
  16. ## OpenWrt / LEDE trunk Installation & Usage
  17. * download the package [here](https://downloads.lede-project.org/snapshots/packages/x86_64/packages)
  18. * install 'travelmate' (_opkg install travelmate_)
  19. * configure your network to support (multiple) wlan uplinks and set travelmate config options (details see below)
  20. * set 'trm\_enabled' option in travelmate config to '1'
  21. * travelmate starts automatically during boot and will be triggered by procd interface triggers
  22. ## LuCI travelmate companion package
  23. * download the package [here](https://downloads.lede-project.org/snapshots/packages/x86_64/luci)
  24. * install 'luci-app-travelmate' (_opkg install luci-app-travelmate_)
  25. * the application is located in LuCI under 'Services' menu
  26. * _Thanks to Hannu Nyman for this great LuCI frontend!_
  27. ## Chaos Calmer installation notes
  28. * 'travelmate' and 'luci-app-travelmate' are _not_ available as ipk packages in the Chaos Calmer download repository
  29. * download the packages from a development snapshot directory (see download links above)
  30. * manually transfer the packages to your routers temp directory (with tools like _sshfs_ or _winscp_)
  31. * install the packages as described above
  32. ## Travelmate config options
  33. * travelmate config options:
  34. * trm\_enabled => main switch to enable/disable the travelmate service (default: '0', disabled)
  35. * trm\_debug => enable/disable debug logging (default: '0', disabled)
  36. * trm\_maxwait => how long (in seconds) should travelmate wait for wlan interface reload action (default: '20')
  37. * trm\_maxretry => how many times should travelmate try to find an uplink after a trigger event (default: '3')
  38. * trm\_iw => set this option to '0' to use iwinfo for wlan scanning (default: '1', use iw)
  39. * trm\_iface => restrict the procd interface trigger to a (list of) certain wan interface(s) or disable it at all (default: not set, disabled)
  40. ## Setup
  41. **1. configure a wwan interface in /etc/config/network:**
  42. <pre><code>
  43. [...]
  44. config interface 'wwan'
  45. option proto 'dhcp'
  46. [...]
  47. </code></pre>
  48. **2. add this interface to your firewall configuration in /etc/config/firewall:**
  49. <pre><code>
  50. [...]
  51. config zone
  52. option name 'wan'
  53. option input 'REJECT'
  54. option output 'ACCEPT'
  55. option forward 'REJECT'
  56. option masq '1'
  57. option mtu_fix '1'
  58. option network 'wan wan6 wwan'
  59. [...]
  60. </code></pre>
  61. **3. add required ap and wwan stations to your wireless configuration in etc/config/wireless:**
  62. <pre><code>
  63. [...]
  64. config wifi-iface
  65. option device 'radio0'
  66. option network 'lan'
  67. option ifname 'wlan0'
  68. option mode 'ap'
  69. option ssid 'example_ap'
  70. option encryption 'psk2+ccmp'
  71. option key 'abc'
  72. option disabled '0'
  73. [...]
  74. config wifi-iface
  75. option device 'radio0'
  76. option network 'wwan'
  77. option mode 'sta'
  78. option ssid 'example_01'
  79. option ifname 'wwan01'
  80. option encryption 'psk2+ccmp'
  81. option key 'abc'
  82. option disabled '1'
  83. config wifi-iface
  84. option device 'radio0'
  85. option network 'wwan'
  86. option mode 'sta'
  87. option ssid 'example_02'
  88. option ifname 'wwan02'
  89. option encryption 'psk2+ccmp'
  90. option key 'xyz'
  91. option disabled '1'
  92. config wifi-iface
  93. option device 'radio0'
  94. option network 'wwan'
  95. option mode 'sta'
  96. option ssid 'example_03'
  97. option ifname 'wwan03'
  98. option encryption 'none'
  99. option disabled '1'
  100. [...]
  101. </code></pre>
  102. **4. reload network configuration & start travelmate:**
  103. <pre><code>
  104. /etc/init.d/network reload
  105. /etc/init.d/travelmate start
  106. </code></pre>
  107. ## Support
  108. 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)
  109. ## Removal
  110. * stop the travelmate daemon with _/etc/init.d/travelmate stop_
  111. * optional: remove the travelmate package (_opkg remove travelmate_)
  112. Have fun!
  113. Dirk