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.
 
 
 
 
 
 
Dirk Brenken 4dd7e2edc8 travelmate: release 0.4.0 7 years ago
..
README.md travelmate: release 0.4.0 7 years ago
travelmate.conf travelmate: release 0.4.0 7 years ago
travelmate.init travelmate: release 0.4.0 7 years ago
travelmate.sh travelmate: release 0.4.0 7 years ago

README.md

travelmate, a wlan connection manager for travel router

Description

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.
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.
To avoid these kind of deadlocks, travelmate set all station interfaces in an "always off" mode and connects automatically to available/configured hotspots.

Main Features

  • STA interfaces operating in an "always off" mode, to make sure that the AP is always accessible
  • easy setup within normal OpenWrt/LEDE environment
  • fast uplink connections
  • "active mode" support, where travelmate will be restarted every n seconds (default 60) and checks the existing uplink connection regardless of ifdown event trigger
  • support of devices with multiple radios
  • procd init system support
  • procd based hotplug support, the travelmate start will be triggered by interface triggers
  • status & debug logging to syslog

Prerequisites

  • OpenWrt or LEDE trunk
  • iw (default) or iwinfo for wlan scanning

OpenWrt / LEDE trunk Installation & Usage

  • download the package here
  • install 'travelmate' (opkg install travelmate)
  • configure your network to support (multiple) wlan uplinks and set travelmate config options (see below)
  • set 'trm_enabled' option in travelmate config to '1'
  • travelmate starts automatically during boot and will be triggered by procd interface triggers

LuCI travelmate companion package

  • download the package here
  • install 'luci-app-travelmate' (opkg install luci-app-travelmate)
  • the application is located in LuCI under 'Services' menu
  • Thanks to Hannu Nyman for this great LuCI frontend!

Chaos Calmer installation notes

  • 'travelmate' and 'luci-app-travelmate' are not available as ipk packages in the Chaos Calmer download repository
  • download the packages from a development snapshot directory (see download links above)
  • manually transfer the packages to your routers temp directory (with tools like sshfs or winscp)
  • install the packages as described above

Travelmate config options

  • travelmate config options:
    • trm_enabled => main switch to enable/disable the travelmate service (default: '0', disabled)
    • trm_debug => enable/disable debug logging (default: '0', disabled)
    • trm_active => keep travelmate in an active state (default: '0', disabled)
    • trm_maxwait => how long (in seconds) should travelmate wait for wlan interface reload action (default: '20')
    • trm_maxretry => how many times should travelmate try to find an uplink after a trigger event (default: '3')
    • trm_timeout => timeout in seconds for "active mode" (default: '60')
    • trm_iw => set this option to '0' to use iwinfo for wlan scanning (default: '1', use iw)
    • trm_radio => limit travelmate to a dedicated radio, e.g. 'radio0' (default: not set, use all radios)
    • trm_iface => restrict the procd interface trigger to a (list of) certain wan interface(s) or disable it at all (default: not set, disabled)

Setup

1. configure a wwan interface in /etc/config/network:


[...]
config interface 'wwan'
        option proto 'dhcp'
[...]

2. add this interface to your firewall configuration in /etc/config/firewall:


[...]
config zone
        option name 'wan'
        option network 'wan wan6 wwan'
[...]

3. add required ap and wwan stations to your wireless configuration in etc/config/wireless:


[...]
config wifi-iface
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'example_ap'
        option encryption 'psk2+ccmp'
        option key 'abc'
        option disabled '0'
[...]
config wifi-iface
        option device 'radio0'
        option network 'wwan'
        option mode 'sta'
        option ssid 'example_01'
        option encryption 'psk2+ccmp'
        option key 'abc'
        option disabled '1'
config wifi-iface
        option device 'radio0'
        option network 'wwan'
        option mode 'sta'
        option ssid 'example_02'
        option encryption 'psk2+ccmp'
        option key 'xyz'
        option disabled '1'
config wifi-iface
        option device 'radio0'
        option network 'wwan'
        option mode 'sta'
        option ssid 'example_03'
        option encryption 'none'
        option disabled '1'
[...]

4. reload network configuration & start travelmate:


/etc/init.d/network reload
/etc/init.d/travelmate start

Support

Please join the travelmate discussion in this forum thread or contact me by mail

Removal

  • stop the travelmate daemon with /etc/init.d/travelmate stop
  • optional: remove the travelmate package (opkg remove travelmate)

Have fun!
Dirk