Travelmate support thread

NP! PM'd it to you, just let me know. And of course, do comment on the PS :laughing:. No biggie, just a thought.

Thanks!!

Yikes, 700 posts in one thread... Maybe someone can make this into a topic or something...

I've installed TM on a DWR-921 C1 single radio unit and it works quite well as STA only.

The problem is when I enable my AP config, TM disables all the STA configs stating it cannot connect. Fun thing is that when I disable TM and enable the STA config it made it works really well in AP+STA mode.

Did get it somewhat working by upping all the timeouts etc. but I would really like an option where it doesn't leave me with all the networks disabled in TM... Disabling TM, enabling all networks in TM, enabling the STA and AP networks, reenabling TM and then resetting its interface are not quite what I had in mind for this setup.

I'd like to be able to configure a VPN to start for all/any wireless stations -- like a global config rather than per wireless station. IOW, it really doesn't matter where (i.e. which network/hotspot) I am connecting from, once I have an Internet connection I want to start the VPN. Having to configure the VPN connection start preferences every time I go to a new location is sub-optimal for my use-case.

Hi, I use travelmate in my holiday home where I use smartphones as hotspots and a chromecast to watch videos.
Main reason why I use travelmate is because Google Chromcast unfortunately does not support multiple SSID configurations, so I use travelmate just to have Chromecast referring to a unique SSID (router's one) while connecting to internet through one of the family smartphones available in that moment, as hotspot.
No big problems with the only one android smartphone.
The others are iphones and, for unknown reasons, after a while, sometimes hotspot is not reachable anymore, even if still ON on the iphone. Travelmate tries to reconnect, for the preconfigured times, and then set that STA to disabled.
Question 1: is there a specific config that prevents iphone hotspot to disconnect?
Question 2: is there a way to prevent travelmate to set that STA as disabled?
Question 3: is there a way to have AP always on when moving from a STA to another one with 1 radio?
Thanks a lot for your suggestions and help!

1 Like

Hi Dirk!

I am just discovering the wonders of travelmate, on a flashed Netgear EX7300 Extender with OpenWRT.

I need a script for the captive portal from "BayernWLAN". I know this is ultra-simple, there is no username/pass required but just a click on "connect", but I don't want to mess anything up.

Here some pointers:

####


"GET", "https://hotspot.vodafone.de/api/v4/login?loginProfile=6&accessType=termsOnly&sessionID=" + session + "&action=redirect&portal=bayern"



####

#!/usr/bin/python3

# Logs into BayernWLAN automatically
# Source: https://github.com/asdil12/wifi_autologin/blob/master/wifi_autologin/networks/bayernwlan.py

import requests

session = requests.session()
sid = session.get('https://hotspot.vodafone.de/api/v4/session').json()['session']
r = session.post('https://hotspot.vodafone.de/api/v4/login?sessionID=%s&action=redirect&portal=bayern' % sid, data={
	'loginProfile': '6',
	'accessType': 'termsOnly',
	'session': sid,
})

#####

      	 <input type="hidden" name="loginProfile" value='6'>
                 <input type="hidden" name="accessType" value="termsOnly">
                 <input type="hidden" name="sessionID" value="{{session.session}}">
                 <input type="hidden" name="action" value="redirect">
                 <input type="hidden" name="portal" value="bayern">

Also...does the script need a special filename, and how do I know it is getting triggered aka that it works?

Thanks!!!

Hi everyone! I am returning to OpenWRT and Travelmate after a long hiatus. I have a Netgear R6120 router that I am trying to configure. I am quite remote, and I do not have a linux laptop to work with….

Anyway, the architecture of this router is ramips-mt76x8 . I do not see a suitable package for this router, and right now I have no way to build it.

Does anyone have the correct packages for this architecture with all the dependencies that I can install? The repository is quite thin and is missing a lot of the necessary files for this architecture.

Thanks!

Could you please post a HOWTO? I am struggling to do the same.

Hi!

Found this package while struggling finding a reliable sta+ap coex solution... Really helps! Just a small issue here:

Accourding to the comment here: Travelmate support thread - #8 by dibdot , it should be possible to disable the retry limit if trm_maxretry is set to zero, but it seems not, on my OpenWRT 22.03.3 with travelmate v2.1.0 (https://github.com/openwrt/packages/commit/963137dcc5bbfca4810860a8d85688b612d1c955). Code shows that there's no such special treatments to that condition https://github.com/openwrt/packages/blob/da1dbf49469506b7c849ef709154b0a423697f86/net/travelmate/files/travelmate.sh#L961

Is it deprecated?

And another feature request...?

My devices requires Wireguard VPN to be established right after the upstream wwan is up, to provide Internet connectivity, due to some firewall restrictions. I already disabled the Captive Portal Detection so I'm expecting there is no such check performed against detectportal, but actually there is: https://github.com/openwrt/packages/blob/da1dbf49469506b7c849ef709154b0a423697f86/net/travelmate/files/travelmate.sh#L240 It just stops my WG interface so my devices lost Internet connection.

I wonder if it is OK to bake the parameter check into f_net() and always return net ok if captive is disabled?

Edited:

Or, is this project hosted anywhere other than the openwrt package repo, so that it would be a place for issues (even PRs?)

Hi, many thanks beforehand for helping me out as I seem to be stuck with Travelmate.

I have a TP-link wdr4300 with Openwrt 22.03.3 and travelmate installed. However I do not understand how I'm supposed to connect to a wifi network, and subsequently share this uplink on my wdr4300 wifi/lan port.
I was hoping to use Openwrt and Travelmate in a similar way as I use my Gl-iNet MT1300 Beryl. At least I was thinking openwrt+travelmate can do this, but I cannot get connected it seems.

Can someone point me in the right direction?

Hey @cptdondo, just came across the Travelmate thread and thought I may try answering where to find the package. Ignore if you solved it.

Basically you go into the menu 'System' > 'Software'. There 'Actions' > 'Update lists...' and it will fetch a list of available packages. 'travelmate' and 'luci-app-travelmate' should be available.

If for some reason you want to download it manually, and you are on 22.03.3:
folder for travelmate package for mips_24kc
folder for luci-app-travelmate package for mips_24kc

One question (suggestion :laughing:). In the wireless stations display, I know that blue = connected, green = VPN is on (and it works great now, thanks!!), but ... it would be nice to have some sort of indicator, to show if VPN Hook is on for a connection (or not). Thinking about it, perhaps an On/Off (color coded?), similar to connection enabled (but in this case, for VPN Hook).

Make sense?

Thanks again.

Hello all. first-time poster here, but I've been using Travelmate (on a GL-AR750) for a couple of years.

I recently setup WireGuard on this device, and it's working fine if I mark it to be started on boot... but I don't want that, I only want it started after Travelmate has connected to an uplink.

I've configured all three VPN-related settings for the uplink in Travelmate ('enabled', 'wireguard' service, and 'wg0' interface), but when Travelmate connects to the uplink the VPN is not started. I've even added logging into /etc/travelmate/travelmate.vpn to see if it is being executed, but it does not appear to be executed.

I'm using OpenWrt 22.03.5. Is there any additional troubleshooting I can try to find out what is happening?

Provide your travelmate config, enable debug logging in travelmate, restart the service and provide the full log of that run. Thanks.

1 Like

Travelmate config:

root@km6g-travel:~# uci show travelmate
travelmate.global=travelmate
travelmate.global.trm_autoadd='0'
travelmate.global.trm_mail='0'
travelmate.global.trm_captive='0'
travelmate.global.trm_enabled='1'
travelmate.global.trm_iface='trm_wwan'
travelmate.global.trm_radio='radio1'
travelmate.global.trm_proactive='0'
travelmate.global.trm_randomize='0'
travelmate.global.trm_debug='1'
travelmate.global.trm_vpn='1'
travelmate.@uplink[0]=uplink
travelmate.@uplink[0].device='radio1'
travelmate.@uplink[0].ssid='km6g-2'
travelmate.@uplink[0].con_start_expiry='0'
travelmate.@uplink[0].con_end_expiry='0'
travelmate.@uplink[0].vpn='1'
travelmate.@uplink[0].vpnservice='wireguard'
travelmate.@uplink[0].vpniface='wg0'
travelmate.@uplink[0].enabled='1'
travelmate.@uplink[1]=uplink
travelmate.@uplink[1].enabled='1'
travelmate.@uplink[1].device='radio1'
travelmate.@uplink[1].ssid='balrog-mobile'
travelmate.@uplink[1].con_start_expiry='0'
travelmate.@uplink[1].con_end_expiry='0'
travelmate.@uplink[1].vpn='1'
travelmate.@uplink[1].vpnservice='wireguard'
travelmate.@uplink[1].vpniface='wg0'

Log:

Tue May  9 14:58:38 2023 user.info trm-2.1.0[22081]: travelmate instance started ::: action: start, pid: 22081
Tue May  9 14:58:39 2023 user.debug trm-2.1.0[22081]: f_setdev  ::: radio: radio0, radio_list(cnf/cur): radio1/radio1, disabled: 0
Tue May  9 14:58:39 2023 user.debug trm-2.1.0[22081]: f_setdev  ::: radio: radio1, radio_list(cnf/cur): radio1/radio1, disabled: 0
Tue May  9 14:58:39 2023 user.debug trm-2.1.0[22081]: f_getvpn  ::: iface: loopback, proto: static, device: lo, ifacelist: -, infolist: -
Tue May  9 14:58:39 2023 user.debug trm-2.1.0[22081]: f_getvpn  ::: iface: wan, proto: dhcp, device: eth1, ifacelist: -, infolist: -
Tue May  9 14:58:39 2023 user.debug trm-2.1.0[22081]: f_getvpn  ::: iface: wan6, proto: dhcpv6, device: eth1, ifacelist: -, infolist: -
Tue May  9 14:58:39 2023 user.debug trm-2.1.0[22081]: f_getvpn  ::: iface: lan, proto: static, device: br-lan, ifacelist: -, infolist: -
Tue May  9 14:58:39 2023 user.debug trm-2.1.0[22081]: f_getvpn  ::: iface: trm_wwan, proto: dhcp, device: -, ifacelist: -, infolist: -
Tue May  9 14:58:39 2023 user.debug trm-2.1.0[22081]: f_getvpn  ::: iface: trm_wwan6, proto: dhcpv6, device: @trm_wwan, ifacelist: -, infolist: -
Tue May  9 14:58:39 2023 user.debug trm-2.1.0[22081]: f_getvpn  ::: iface: wg0, proto: wireguard, device: -, ifacelist: -, infolist: wg0
Tue May  9 14:58:39 2023 user.debug trm-2.1.0[22081]: f_env     ::: auto_sta: -, wpa_flags: sae: βœ”, owe: βœ”, eap: ✘, suiteb192: ✘, sys_ver: GL.iNet GL-AR750, OpenWrt 22.03.5 r20134-5f15225c1e
Tue May  9 14:58:39 2023 user.debug trm-2.1.0[22081]: f_getcfg  ::: status: false, section: , uplink_config: -
Tue May  9 14:58:40 2023 user.debug trm-2.1.0[22081]: f_net     ::: fetch: /usr/bin/curl, timeout: 5, cp (json/html/js): -/-/-, result: net ok, error (rc/msg): 0/-, url: http://detectportal.firefox.com, user_agent: Mozilla/5.0 (Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0
Tue May  9 14:58:40 2023 user.debug trm-2.1.0[22081]: f_mac     ::: action: get, section: trm_uplink2, macaddr: -, result: E4:95:6E:4E:FB:66
Tue May  9 14:58:40 2023 user.debug trm-2.1.0[22081]: f_getcfg  ::: status: connected (net ok/78), section: trm_uplink2, uplink_config: @uplink[0]
Tue May  9 14:58:40 2023 user.debug trm-2.1.0[22081]: f_getval  ::: option: vpn, result: 1, uplink_config: @uplink[0]
Tue May  9 14:58:40 2023 user.debug trm-2.1.0[22081]: f_jsnup   ::: section: trm_uplink2, status: connected (net ok/78), sta_iface: trm_wwan, sta_radio: radio1, sta_essid: km6g-2, sta_bssid: -, ntp: 0, vpn: 1/0, mail: 0/0
Tue May  9 14:58:40 2023 user.debug trm-2.1.0[22081]: f_check   ::: mode: initial, name: wlan1, status: true, enabled: 1, connection: net ok/78, wait: 1, max_wait: 30, min_quality: 35, captive: 0, netcheck: 0
Tue May  9 14:58:40 2023 user.debug trm-2.1.0[22081]: f_main-1  ::: status: true, proactive: 0
Tue May  9 14:59:40 2023 user.debug trm-2.1.0[22081]: f_setdev  ::: radio: radio0, radio_list(cnf/cur): radio1/radio1, disabled: 0
Tue May  9 14:59:40 2023 user.debug trm-2.1.0[22081]: f_setdev  ::: radio: radio1, radio_list(cnf/cur): radio1/radio1, disabled: 0
Tue May  9 14:59:40 2023 user.debug trm-2.1.0[22081]: f_env     ::: auto_sta: -, wpa_flags: sae: βœ”, owe: βœ”, eap: ✘, suiteb192: ✘, sys_ver: GL.iNet GL-AR750, OpenWrt 22.03.5 r20134-5f15225c1e
Tue May  9 14:59:40 2023 user.debug trm-2.1.0[22081]: f_getcfg  ::: status: false, section: , uplink_config: @uplink[0]
Tue May  9 14:59:40 2023 user.debug trm-2.1.0[22081]: f_getval  ::: option: enabled, result: 1, uplink_config: @uplink[0]
Tue May  9 14:59:41 2023 user.debug trm-2.1.0[22081]: f_net     ::: fetch: /usr/bin/curl, timeout: 5, cp (json/html/js): -/-/-, result: net ok, error (rc/msg): 0/-, url: http://detectportal.firefox.com, user_agent: Mozilla/5.0 (Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0
Tue May  9 14:59:41 2023 user.debug trm-2.1.0[22081]: f_mac     ::: action: get, section: trm_uplink2, macaddr: -, result: E4:95:6E:4E:FB:66
Tue May  9 14:59:41 2023 user.debug trm-2.1.0[22081]: f_getcfg  ::: status: connected (net ok/80), section: trm_uplink2, uplink_config: @uplink[0]
Tue May  9 14:59:41 2023 user.debug trm-2.1.0[22081]: f_getval  ::: option: vpn, result: 1, uplink_config: @uplink[0]
Tue May  9 14:59:41 2023 user.debug trm-2.1.0[22081]: f_jsnup   ::: section: trm_uplink2, status: connected (net ok/80), sta_iface: trm_wwan, sta_radio: radio1, sta_essid: km6g-2, sta_bssid: -, ntp: 0, vpn: 1/0, mail: 0/0
Tue May  9 14:59:41 2023 user.debug trm-2.1.0[22081]: f_check   ::: mode: initial, name: wlan1, status: true, enabled: 1, connection: net ok/80, wait: 1, max_wait: 30, min_quality: 35, captive: 0, netcheck: 0
Tue May  9 14:59:41 2023 user.debug trm-2.1.0[22081]: f_main-1  ::: status: true, proactive: 0

Oddly, there is an 'x' in the 'vpn' column in the 'Ext. Hooks' section of the Travelmate 'Overview' tab.

Problem is the missing NTP sync (ntp: 0) ... no vpn without synchronized clocks. Setup ntp time sync on your router.

Thanks for the quick analysis! I've been using Chrony instead of the built-in NTP on this router, and there's no obvious way to get Chrony to trigger a Travelmate restart after sync is achieved, so I'll switch to the 'regularl' NTP client and that should solve it.

If someone does want to try doing this with Chrony, I suspect a script could be put into /etc/hotplug.d/iface which notices the WAN interface being brought by up Travelmate, and then forks off a child process to run chronyc waitsync 60 0.1 (or something similar) followed by a Travelmate restart (as is done by the existing travelmate_ntp.hotplug script).

Unfortunately that was not successful; Travelmate now shows that NTP sync has been achieved, but it's still not activating the VPN interface:

Thu May 11 12:40:53 2023 user.info trm-2.1.0[8234]: travelmate instance started ::: action: start, pid: 8234
Thu May 11 12:40:53 2023 user.debug trm-2.1.0[8234]: f_setdev  ::: radio: radio0, radio_list(cnf/cur): radio1/radio1, disabled: 0
Thu May 11 12:40:53 2023 user.debug trm-2.1.0[8234]: f_setdev  ::: radio: radio1, radio_list(cnf/cur): radio1/radio1, disabled: 0
Thu May 11 12:40:53 2023 user.debug trm-2.1.0[8234]: f_getvpn  ::: iface: loopback, proto: static, device: lo, ifacelist:  trm_wwan wg0, infolist: -
Thu May 11 12:40:53 2023 user.debug trm-2.1.0[8234]: f_getvpn  ::: iface: wan, proto: dhcp, device: eth1, ifacelist:  trm_wwan wg0, infolist: -
Thu May 11 12:40:53 2023 user.debug trm-2.1.0[8234]: f_getvpn  ::: iface: wan6, proto: dhcpv6, device: eth1, ifacelist:  trm_wwan wg0, infolist: -
Thu May 11 12:40:54 2023 user.debug trm-2.1.0[8234]: f_getvpn  ::: iface: lan, proto: static, device: br-lan, ifacelist:  trm_wwan wg0, infolist: -
Thu May 11 12:40:54 2023 user.debug trm-2.1.0[8234]: f_getvpn  ::: iface: trm_wwan, proto: dhcp, device: -, ifacelist:  trm_wwan wg0, infolist: -
Thu May 11 12:40:54 2023 user.debug trm-2.1.0[8234]: f_getvpn  ::: iface: trm_wwan6, proto: dhcpv6, device: @trm_wwan, ifacelist:  trm_wwan wg0, infolist: -
Thu May 11 12:40:54 2023 user.debug trm-2.1.0[8234]: f_getvpn  ::: iface: wg0, proto: wireguard, device: -, ifacelist:  trm_wwan wg0, infolist: wg0
Thu May 11 12:40:54 2023 user.debug trm-2.1.0[8234]: f_env     ::: auto_sta: -, wpa_flags: sae: βœ”, owe: βœ”, eap: ✘, suiteb192: ✘, sys_ver: GL.iNet GL-AR750, OpenWrt 22.03.5 r20134-5f15225c1e
Thu May 11 12:40:54 2023 user.debug trm-2.1.0[8234]: f_getcfg  ::: status: false, section: , uplink_config: -
Thu May 11 12:40:54 2023 user.debug trm-2.1.0[8234]: f_net     ::: fetch: /usr/bin/curl, timeout: 5, cp (json/html/js): -/-/-, result: net ok, error (rc/msg): 0/-, url: http://detectportal.firefox.com, user_agent: Mozilla/5.0 (Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0
Thu May 11 12:40:55 2023 user.debug trm-2.1.0[8234]: f_mac     ::: action: get, section: trm_uplink2, macaddr: -, result: E4:95:6E:4E:FB:66
Thu May 11 12:40:55 2023 user.debug trm-2.1.0[8234]: f_getcfg  ::: status: connected (net ok/78), section: trm_uplink2, uplink_config: @uplink[0]
Thu May 11 12:40:55 2023 user.debug trm-2.1.0[8234]: f_getval  ::: option: vpn, result: 1, uplink_config: @uplink[0]
Thu May 11 12:40:55 2023 user.debug trm-2.1.0[8234]: f_jsnup   ::: section: trm_uplink2, status: connected (net ok/78), sta_iface: trm_wwan, sta_radio: radio1, sta_essid: km6g-2, sta_bssid: -, ntp: 1, vpn: 1/0, mail: 0/0
Thu May 11 12:40:55 2023 user.debug trm-2.1.0[8234]: f_check   ::: mode: initial, name: wlan1, status: true, enabled: 1, connection: net ok/78, wait: 1, max_wait: 30, min_quality: 35, captive: 0, netcheck: 0
Thu May 11 12:40:55 2023 user.debug trm-2.1.0[8234]: f_main-1  ::: status: true, proactive: 0

Sorry for the late reply, enable "ProActive" as well.