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 77d9425e33 travelmate: new package, release 0.2.2 8 years ago
..
README.md travelmate: new package, release 0.2.2 8 years ago
travelmate.conf travelmate: new package, release 0.2.2 8 years ago
travelmate.init travelmate: new package, release 0.2.2 8 years ago
travelmate.sh travelmate: new package, release 0.2.2 8 years ago

README.md

travelmate, a 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, connects automatically to available hotspots and monitor & change these uplink connections automatically if required.

Main Features

  • STA interfaces operating in an "always off" mode, to make sure that the AP is always accessible
  • fast uplink connections
  • reliable connection tracking
  • easy setup within normal OpenWrt/LEDE environment
  • status & debug logging to syslog
  • procd init system support

Prerequisites

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

OpenWrt / LEDE trunk Installation & Usage

  • install 'travelmate' (opkg install travelmate)
  • configure your network to support (multiple) wlan uplinks and set travelmate config options (details see below)
  • travelmate starts automatically during boot, triggered by procd as soon as the wireless subsystem is up & running

Chaos Calmer installation notes

  • 'travelmate' is not available as an ipk package in the Chaos Calmer download repository
  • download the package from a development snapshot package directory:
    • for 'travelmate' look here
  • manually transfer the package to your routers temp directory (with tools like sshfs or winscp)
  • install the package as described above

Travelmate config options

  • mandatory config options:
    • trm_enabled => main switch to enable/disable the travelmate service (default: '0', disabled)
    • trm_loop => loop timeout in seconds for wlan monitoring (default: '30')
    • trm_maxretry => how many times should travelmate try to connect to uplink xyz (default: '3')
  • optional config options:
    • trm_debug => enable/disable debug logging (default: '0', disabled)
    • trm_device => limit travelmate to a dedicated radio, i.e 'radio0' (default: '', use all radios)
    • trm_iw => force travelmate to use iwinfo (even if iw is installed) set this option to 'none' (default: '', use iw if found)

Setup

1. configure (multiple) wwan interfaces in /etc/config/network:


[...]
config interface 'wwan01'
        option proto 'dhcp'
config interface 'wwan02'
        option proto 'dhcp'
config interface 'wwan03'
        option proto 'dhcp'
[...]

2. add these interfaces to your firewall configuration in /etc/config/firewall:


[...]
config zone
        option name 'wan'
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option masq '1'
        option mtu_fix '1'
        option network 'wan wan6 wwan01 wwan02 wwan03 [...]'
[...]

3. add required station interfaces to your wireless configuration in etc/config/wireless:


[...]
config wifi-iface
        option device 'radio0'
        option network 'wwan01'
        option mode 'sta'
        option ssid 'example_01'
        option ifname 'wlan1'
        option encryption 'psk2+ccmp'
        option key 'abc'
        option disabled '1'
config wifi-iface
        option device 'radio0'
        option network 'wwan02'
        option mode 'sta'
        option ssid 'example_02'
        option ifname 'wlan2'
        option encryption 'psk2+ccmp'
        option key 'xyz'
        option disabled '1'
config wifi-iface
        option device 'radio0'
        option network 'wwan03'
        option mode 'sta'
        option ssid 'Telekom_ICE'
        option ifname 'wlan3'
        option encryption 'none'
        option disabled '1'
[...]

4. configure & start travelmate:


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

Common runtime outputs

Success: Sun Oct 9 17:02:21 2016 user.notice root: travelmate-0.2.1[712] info : wlan interface "wwan06" connected to uplink "blackhole.nl"

Disabled service: Sun Oct 9 18:06:32 2016 user.notice root: travelmate-0.2.1[2379] info : travelmate is currently disabled, please set 'trm_enabled' to use this service

Misconfigured/broken uplink: Sun Oct 9 18:56:42 2016 user.notice root: travelmate-0.2.1[2435] info : uplink "blackhole.nl" disabled due to permanent connection failures

Uplink disappeared: Sun Oct 9 19:00:28 2016 user.notice root: travelmate-0.2.1[3876] info : uplink "Neffos C5L" get lost

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