Travelmate support thread

minor feedback... on the new version with it disabled...

luci shows constant spinner next to status/version... instead of maybe [disabled] - 2.0.5-2

(pretty sure it's not doing anything in the background... but spinner keeps going)

tmate-spinner

1 Like

Yep, confirmed ... never disable such packages ...:wink:
Will be fixed with the next update - thanks for reporting this issue.

1 Like

Have been checking out the changes - they really are awesome, work very well. Thanks!

One VERY MINOR thought ... in the Wireless Stations list, where is shows the active connection (in bold, blue) - perhaps have that be bold, orange (or dark yellow, or red) if VPN Hook is enabled, but VPN is not connected? So another way of seeing the :heavy_check_mark: or :x: from the status page (i.e. when looking at the wireless stations list, it's apparent if VPN is desired, but not connected).

Again, very minor. This really does look great. Thanks so much.

Thank you for this great software! I've been able to get a stable connection without getting a new subscription :smiley:

A bit of feedback for anyone who'll be in my exact situation in the future. The open "Vodafone-WiFi" networks in Italy work very well when the captive portal hooks are enabled and this script is used as an auto-login: https://github.com/schiavonedimitri/Vodafone-WiFi
I'm running this on a Xiaomi Mi 4A (100M) and OpenWRT Snapshot 21.02, using the latest travelmate version.
I've installed the script requirements on my router (wget, grep, coreutils-cut - I've also installed bash and curl just in case), set up URL-encoded username & password in the script and set the script's own "openwrt" option to yes.
I then renamed the script to vodafoneit.login, uploaded it to /etc/travelmate using the scp command and made it executable using SSH (chmod +x vodafoneit.login).
Set up the Vodafone-Wifi station in travelmate, selected the vodafoneit.login script and ta-da!

Hi, did anybody used Flixbus networks with this? I was driving with a scanning travelmate router but it connected to the flixbus network during traffic jam but could not handle the captive portal. Since i was the driver i had not time to troubleshoot this but i was wondering if there is something special?

More details please! Sounds that the connection works and the captive portal domain will be detected!?
If possible provide debug logs of a login attempt - thanks. If you're only unable to reach the login page itself, please disable the rebind protection in dnsmasq and try again.

Trying to connect to ISP w/ WPA2-Enterprise

It works from windows.

If I do this command: netsh wlan show profile Xredact key=clear
It looks like this:


Profile Xredact on interface Wi-Fi: 
======================================================================= 

Applied: All User Profile    

Profile information 
------------------- 
    Version                : 1
    Type                   : Wireless LAN
    Name                   : Xredact
    Control options        : 
        Connection mode    : Connect manually
        Network broadcast  : Connect only if this network is broadcasting
        AutoSwitch         : Do not switch to other networks
        MAC Randomization  : Disabled

Connectivity settings 
--------------------- 
    Number of SSIDs        : 1
    SSID name              : "Xredact"
    Network type           : Infrastructure
    Radio type             : [ Any Radio Type ]
    Vendor extension          : Not present

Security settings 
----------------- 
    Authentication         : WPA2-Enterprise
    Cipher                 : CCMP
    Authentication         : WPA2-Enterprise
    Cipher                 : GCMP
    Security key           : Absent
    802.1X                 : Enabled
    EAP type               : Microsoft: EAP-TTLS
    802.1X auth credential : User credential
    Credentials configured : No
    Cache user information : Yes

Cost settings 
------------- 
    Cost                   : Unrestricted
    Congested              : No
    Approaching Data Limit : No
    Over Data Limit        : No
    Roaming                : No
    Cost Source            : Default


I tried to configure something similar in Travelmate.
Looks like this:
image

I set Encryption to WPA2 Ent (CCMP).
I set EAP-Method to TTLS.
I tried every option for Authentication.

No luck. TM logs look like

Sun Sep  5 02:06:48 2021 user.info trm-2.0.6[1680]: travelmate instance stopped ::: action: stop, pid: 30569
Sun Sep  5 02:06:49 2021 user.info trm-2.0.6[1746]: travelmate instance started ::: action: start, pid: 1746
Sun Sep  5 02:07:01 2021 user.info trm-2.0.6[1746]: no enabled station on radio 'radio0'
Sun Sep  5 02:07:54 2021 user.info trm-2.0.6[1746]: can't connect to uplink 'radio1/Xredact/-' (1/3)
Sun Sep  5 02:08:45 2021 user.info trm-2.0.6[1746]: can't connect to uplink 'radio1/Xredact/-' (2/3)
Sun Sep  5 02:09:37 2021 user.info trm-2.0.6[1746]: uplink has been disabled 'radio1/Xredact/-' (3/3)
Sun Sep  5 02:10:50 2021 user.info trm-2.0.6[1746]: no enabled station on radio 'radio0'

And system logs look something like:

Sun Sep  5 01:52:17 2021 user.info trm-2.0.6[19461]: travelmate instance stopped ::: action: stop, pid: 15900
Sun Sep  5 01:52:17 2021 user.info trm-2.0.6[19527]: travelmate instance started ::: action: start, pid: 19527
Sun Sep  5 01:52:29 2021 user.info trm-2.0.6[19527]: no enabled station on radio 'radio0'
Sun Sep  5 01:52:35 2021 daemon.notice netifd: radio1 (20114): sh: out of range
Sun Sep  5 01:52:35 2021 daemon.notice netifd: Interface 'trm_wwan' is enabled
Sun Sep  5 01:52:41 2021 daemon.notice wpa_supplicant[1563]: wlan1: SME: Trying to authenticate with 00:00:ee:f9:00:98 (SSID='Xredact' freq=5785 MHz)
Sun Sep  5 01:52:41 2021 kern.info kernel: [27704.571988] wlan1: authenticate with 00:00:ee:f9:00:98
Sun Sep  5 01:52:43 2021 kern.info kernel: [27705.687482] wlan1: send auth to 00:00:ee:f9:00:98 (try 1/3)
Sun Sep  5 01:52:43 2021 daemon.notice wpa_supplicant[1563]: wlan1: Trying to associate with 00:00:ee:f9:00:98 (SSID='Xredact' freq=5785 MHz)
Sun Sep  5 01:52:43 2021 kern.info kernel: [27705.697097] wlan1: authenticated
Sun Sep  5 01:52:43 2021 kern.info kernel: [27705.704048] wlan1: associate with 00:00:ee:f9:00:98 (try 1/3)
Sun Sep  5 01:52:43 2021 kern.info kernel: [27705.713151] wlan1: RX AssocResp from 00:00:ee:f9:00:98 (capab=0x1511 status=0 aid=3)
Sun Sep  5 01:52:43 2021 kern.info kernel: [27705.722601] wlan1: associated
Sun Sep  5 01:52:43 2021 daemon.notice netifd: Network device 'wlan1' link is up
Sun Sep  5 01:52:43 2021 daemon.notice netifd: Interface 'trm_wwan' has link connectivity
Sun Sep  5 01:52:43 2021 daemon.notice netifd: Interface 'trm_wwan' is setting up now
Sun Sep  5 01:52:43 2021 daemon.notice wpa_supplicant[1563]: wlan1: Associated with 00:00:ee:f9:00:98
Sun Sep  5 01:52:43 2021 daemon.notice wpa_supplicant[1563]: wlan1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Sun Sep  5 01:52:43 2021 daemon.notice wpa_supplicant[1563]: wlan1: CTRL-EVENT-EAP-STARTED EAP authentication started
Sun Sep  5 01:52:43 2021 daemon.warn wpa_supplicant[1563]: EAP: buildIdentity: identity configuration was not available
Sun Sep  5 01:52:43 2021 daemon.notice wpa_supplicant[1563]: wlan1: CTRL-REQ-IDENTITY-0:Identity needed for SSID Xredact
Sun Sep  5 01:52:43 2021 kern.debug kernel: [27705.797517] wlan1: Limiting TX power to 30 (30 - 0) dBm as advertised by 00:00:ee:f9:00:98
Sun Sep  5 01:52:43 2021 daemon.notice netifd: trm_wwan (20348): udhcpc: started, v1.33.1
Sun Sep  5 01:52:43 2021 daemon.notice netifd: trm_wwan (20348): udhcpc: sending discover
Sun Sep  5 01:52:46 2021 daemon.notice netifd: trm_wwan (20348): udhcpc: sending discover
Sun Sep  5 01:52:49 2021 daemon.notice netifd: trm_wwan (20348): udhcpc: sending discover
Sun Sep  5 01:53:15 2021 daemon.notice netifd: Interface 'trm_wwan' is disabled
Sun Sep  5 01:53:15 2021 daemon.notice netifd: Interface 'trm_wwan' has link connectivity loss
Sun Sep  5 01:53:15 2021 daemon.notice netifd: trm_wwan (20348): udhcpc: received SIGTERM
Sun Sep  5 01:53:15 2021 daemon.notice netifd: trm_wwan (20348): udhcpc: entering released state
Sun Sep  5 01:53:15 2021 daemon.notice netifd: trm_wwan (20348): Command failed: Permission denied
Sun Sep  5 01:53:15 2021 daemon.notice netifd: Interface 'trm_wwan' is now down
Sun Sep  5 01:53:15 2021 kern.info kernel: [27738.065371] wlan1: deauthenticating from 00:00:ee:f9:00:98 by local choice (Reason: 3=DEAUTH_LEAVING)
Sun Sep  5 01:53:16 2021 daemon.notice wpa_supplicant[1563]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:00:ee:f9:00:98 reason=3 locally_generated=1
Sun Sep  5 01:53:16 2021 daemon.notice wpa_supplicant[1563]: nl80211: deinit ifname=wlan1 disabled_11b_rates=0
Sun Sep  5 01:53:22 2021 user.info trm-2.0.6[19527]: can't connect to uplink 'radio1/Xredact/-' (1/3)
Sun Sep  5 01:53:28 2021 daemon.notice netifd: radio1 (21070): sh: out of range
Sun Sep  5 01:53:28 2021 daemon.notice netifd: Interface 'trm_wwan' is enabled
Sun Sep  5 01:53:33 2021 daemon.notice wpa_supplicant[1563]: wlan1: SME: Trying to authenticate with 00:00:ee:f9:00:98 (SSID='Xredact' freq=5785 MHz)
Sun Sep  5 01:53:33 2021 kern.info kernel: [27755.687125] wlan1: authenticate with 00:00:ee:f9:00:98
Sun Sep  5 01:53:34 2021 kern.info kernel: [27756.802656] wlan1: send auth to 00:00:ee:f9:00:98 (try 1/3)
Sun Sep  5 01:53:34 2021 kern.info kernel: [27756.809704] wlan1: authenticated
Sun Sep  5 01:53:34 2021 daemon.notice wpa_supplicant[1563]: wlan1: Trying to associate with 00:00:ee:f9:00:98 (SSID='Xredact' freq=5785 MHz)
Sun Sep  5 01:53:34 2021 kern.info kernel: [27756.815357] wlan1: associate with 00:00:ee:f9:00:98 (try 1/3)
Sun Sep  5 01:53:34 2021 kern.info kernel: [27756.824473] wlan1: RX AssocResp from 00:00:ee:f9:00:98 (capab=0x1511 status=0 aid=3)
Sun Sep  5 01:53:34 2021 kern.info kernel: [27756.833534] wlan1: associated
Sun Sep  5 01:53:34 2021 daemon.notice netifd: Network device 'wlan1' link is up
Sun Sep  5 01:53:34 2021 daemon.notice netifd: Interface 'trm_wwan' has link connectivity
Sun Sep  5 01:53:34 2021 daemon.notice netifd: Interface 'trm_wwan' is setting up now
Sun Sep  5 01:53:34 2021 daemon.notice wpa_supplicant[1563]: wlan1: Associated with 00:00:ee:f9:00:98
Sun Sep  5 01:53:34 2021 daemon.notice wpa_supplicant[1563]: wlan1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Sun Sep  5 01:53:34 2021 daemon.notice wpa_supplicant[1563]: wlan1: CTRL-EVENT-EAP-STARTED EAP authentication started
Sun Sep  5 01:53:34 2021 daemon.warn wpa_supplicant[1563]: EAP: buildIdentity: identity configuration was not available
Sun Sep  5 01:53:34 2021 daemon.notice wpa_supplicant[1563]: wlan1: CTRL-REQ-IDENTITY-0:Identity needed for SSID Xredact
Sun Sep  5 01:53:34 2021 kern.debug kernel: [27756.895323] wlan1: Limiting TX power to 30 (30 - 0) dBm as advertised by 00:00:ee:f9:00:98
Sun Sep  5 01:53:34 2021 daemon.notice netifd: trm_wwan (21291): udhcpc: started, v1.33.1
Sun Sep  5 01:53:34 2021 daemon.notice netifd: trm_wwan (21291): udhcpc: sending discover
Sun Sep  5 01:53:37 2021 daemon.notice netifd: trm_wwan (21291): udhcpc: sending discover
Sun Sep  5 01:53:40 2021 daemon.notice netifd: trm_wwan (21291): udhcpc: sending discover
Sun Sep  5 01:54:06 2021 daemon.notice netifd: Interface 'trm_wwan' is disabled
Sun Sep  5 01:54:06 2021 daemon.notice netifd: Interface 'trm_wwan' has link connectivity loss
Sun Sep  5 01:54:06 2021 daemon.notice netifd: trm_wwan (21291): udhcpc: received SIGTERM
Sun Sep  5 01:54:06 2021 daemon.notice netifd: trm_wwan (21291): udhcpc: entering released state
Sun Sep  5 01:54:06 2021 daemon.notice netifd: trm_wwan (21291): Command failed: Permission denied
Sun Sep  5 01:54:06 2021 daemon.notice netifd: Interface 'trm_wwan' is now down

Any help appreciated...

Most probably a bug in the Travelmate LuCI app regarding EAP-Enterprise APs ... first I have to setup a radius server in my private environment to test/confirm that. I'll come back to you ... sorry for the mess.

1 Like

Various EAP-related bugs will be fixed with this PR https://github.com/openwrt/luci/pull/5336

Edit: PR applied to master and 21.02-branch. Just wait until an updated luci travelmate package has been generated.

1 Like

When you said it was a Luci bug I did some experimenting w/ wireless config.
Looks like it was putting password into the 'key; field and should be the 'password' field. It also seemed to have issues updating, like leaving multiple values for a given field.

This seemed to work for me on Cudy WR2100.
Note that I uninstalled wpad-basic-wolfssl and installed wpad.

config wifi-iface 'wwan_test'
        option device 'radio1'
        option mode 'sta'
        option ssid 'Xredact'
        option encryption 'wpa2+ccmp'
        option password 'passwordredact'
        option disabled '0'
        option eap_type 'ttls'
        option auth 'PAP'
        option identity 'userredact'
        option network 'trm_wwan'

Trying similar config on GL AR750 with less success.

To be honest, before the above PR, EAP in Travelmate was not available at all ... at least in a useful way ... :wink:
For further testing you can always generate your client config via "classic" LuCI (Network=>Wireless) and see if that works for you. If so, make a backup, remove the station and repeat the setup step with travelmate ... check again and compare the configs.

1 Like

I will test it again until i get the chance to do so. As i said i just noticed during a traffic jam and i was not sitting in the flixbus but drove the car next to it :wink:

Hi,

I am trying to link my university wifi (requires captive portal login with username and password) with Travelmate. I have curl code that enables me to login in Windows 10 CMD:

curl --data-raw "buttonClicked=4&err_flag=0&redirect_url=www.msftconnecttest.com%2Fredirect&username=XY.Z&password=XYZ123456" "https://portail-wifi-auth.univ-paris-diderot.fr"

I am new in the programming of OpenWRT, so I just transferred the curl code to the generic-user-pass template and got this:

#!/bin/sh
# captive portal auto-login script template with credentials as parameters
# Copyright (c) 2020-2021 Dirk Brenken (dev@brenken.org)
# This is free software, licensed under the GNU General Public License v3.

# set (s)hellcheck exceptions
# shellcheck disable=1091,2039,3040

. "/lib/functions.sh"

export LC_ALL=C
export PATH="/usr/sbin:/usr/bin:/sbin:/bin"
set -o pipefail

user="${1}"
password="${2}"
success="Thank you!"
trm_domain="portail-wifi-auth.univ-paris-diderot.fr"
trm_useragent="$(uci_get travelmate global trm_useragent "Mozilla/5.0 (Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0")"
trm_maxwait="$(uci_get travelmate global trm_maxwait "30")"
trm_fetch="$(command -v curl)"

# login with credentials
#
raw_html="$("${trm_fetch}" --data-raw "buttonClicked=4&err_flag=0&redirect_url=www.msftconnecttest.com%2Fredirect&username=XY.Z&password=XYZ123456" "https://portail-wifi-auth.univ-paris-diderot.fr")"
[ -n "${raw_html}" ] && exit 0 || exit 255

But I cannot log in with this script. Does someone know what the problem is?

Many thanks!

A post was split to a new topic: Upgrading HT-TM05 to 21.02.0

I can't help with your login problem, but to see more change the last two lines like this:

# login with credentials
#
"${trm_fetch}" --data-raw "buttonClicked=4&err_flag=0&redirect_url=www.msftconnecttest.com%2Fredirect&username=XY.Z&password=XYZ123456" "https://portail-wifi-auth.univ-paris-diderot.fr"
#[ -n "${raw_html}" ] && exit 0 || exit 255
1 Like

Many thanks for the suggestions! I am not good at shell script, but raw_html is quoted before its definition. Is this gonna be a problem?

"raw_html" is commented out and not relevant (you can also delete the last line). For debugging remove the script reference in travelmate and call the script directly in a ssh session as soon as you are connected to the captive portal.

1 Like

You are right! I missed the #. I will try this code when I go back to the university this Friday. Thank you very much!

hi i am trying to find lucy-app-travelmate and travelmate and any dependencies for 2 different routers made by the same company.

the first one is a newifi-mini which is the exact same specs as a lenovo-mini

(mipsel_24kec_dsp/ralink-mt7620)
(Firmware Version PandoraBox 19.01 2018-12-31-git-4b6a3d5ca / LuCI Master)
(git-18.364.80006-87f648f) 
(Kernel Version 3.14.79)

the second one is a newifi-3 which is;

(mipsel_1004kc_dsp/ralink-mt7621)
(Firmware Version PandoraBox 18.12 2018-12-14-git-ba60306f2 / LuCI Master)
(git-18.346.39597-d1ebd590)
(Kernel Version 3.14.79)

any idea where i can download,
luci-app-travelmate, travelmate and all dependencies???

thank you in advance for any advice.

Hi there,

I installed travelmate on Gl-Inet 750 and now I am trying to get a login script running.
I am located on a camping site in the Netherlands and I have to relogin approx. every hour.

I used the available template and „sniffed“ the login request via Chrome DEV tools.
Unfortunately it does not work and there is no automatic re-login after I was kicked out. Is there a special trick?

Here‘s my script:


#!/bin/sh

cmd="$(command -v curl)"
url="http://192.168.0.1:8000/"
success_string="Camping Hindeloopen"

if [ ! -x "${cmd}" ]
then
        exit 1
fi

response="$("${cmd}" $url --data-raw "auth_user=USER&auth_pass=PW&redirurl=&accept=Login+" \
        --header "Content-Type:application/x-www-form-urlencoded" -s \
        --insecure)"

if [ -n "$(printf "%s" "${response}" | grep "${success_string}")" ]
then
        exit 0
else
        exit 2
fi

Here is the config:


config travelmate 'global'
	option trm_captive '1'
	option trm_iface 'trm_wwan'
	option trm_triggerdelay '2'
	option trm_debug '1'
	option trm_maxretry '3'
	option trm_minquality '35'
	option trm_maxwait '30'
	option trm_timeout '60'
	option trm_rtfile '/tmp/trm_runtime.json'
	option trm_enabled '1'
	option trm_netcheck '1'
	option trm_proactive '1'
	option trm_autoadd '0'
	option trm_listexpiry '0'

config login 'radio0_Camping_Hindeloopen_'
	option command '/etc/travelmate/hindeloopen.login'

config login 'radio1_Camping_Hindeloopen_'
	option command '/etc/travelmate/hindeloopen.login'

Thanks for your help!