Thank you for this great software! I've been able to get a stable connection without getting a new subscription
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.
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:
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
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.
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.
To be honest, before the above PR, EAP in Travelmate was not available at all ... at least in a useful way ...
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.
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
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:
"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.
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???
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
to a travelmate script? He also have some other nice captive portal scripts but they need to be handled in a different way to work with travelmate on a openwrt router i think. I stayed on a camping site "Landal" with m3connect wifi, not accor, but it was handled in a nearly same way. Just the domain was different as in the provided script https://685.rdr.conn4.com/
My programming knowledge is not enough to understand this So i had to accept the terms manually all the time during my stay. But Landal has a lot of locations all over europe and they are equipped with m3connect wifi.
If somebody could teach me to understand what is necessary to convert and write travelmate usable scripts i could provide some more in the future. I'm traveling a lot to different places and would like to support the available login.scripts.
Could you guys help me to create an auto login script? I can manually login at the first time, after this I just need to click on the red button (connect), at that step would help me a lot. This is the translated captive page.
I finally find out why the curl command was not working--something wrong with the curl package from OpenWRT 21.02 and the curl command is not working for https.
I compiled and installed the curl package (with dependencies) from OpenWRT 19.07 and I can get internet after loading the script when the university wifi is added in WLAN. However, when I added the university wifi to the wireless station in Travelmate, the script never works. In fact, if I do not select any script, connect to the university wifi, and run curl "https://portail-wifi-auth.univ-paris-diderot.fr/login.html" (the university captive login website) and it always returns curl: (6) Couldn't resolve host 'portail-wifi-auth.univ-paris-diderot.fr'. It seems curl in my router does not work after connecting with Travelmate.
Does anyone know what the problem is? Many thanks.
Edit:
After compiling and installing curl from OpenWRT 21.02 (built with Mbed TLS instead of wolfSSL), I finally got it working.