[GH-ISSUE #891] not able to setup sms gateway #137

Closed
opened 2026-02-26 05:33:30 +03:00 by kerem · 2 comments
Owner

Originally created by @TychoGold on GitHub (Feb 11, 2026).
Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/891

Hi team,
I want to set up 2FA via SMS with a Huawei E3531 stick. It has API enabled (tested with curl, from inside of the container running nextcloud).

After I thought that I am too stupid I created an account at WebSMS.de and wanted to test with it, same result: I am entering credentials and then am getting just kicked out of the setup. Even a -vvv does not give me any hint what went wrong.

I already set the variable 'allow_local_remote_servers' => true, as I thought 192.168.8.1 (IP from Huawei stick) might be a local remote. Did not change anything.

Is that a bug or am I overseeing something? Thank you for your help.

Kind regards, Tycho

Nextcloud: 32.0.5
Twofactor-Gateway: 2.2.1

Console-Log (credentials blanked out):

root@nextcloud:/var/www/html# php occ twofactorauth:gateway:configure -vvv
Please choose a provider:
[0] gowhatsapp
[1] sms
[2] signal
[3] telegram
[4] whatsapp
[5] xmpp
1
Please choose a SMS provider:
[0 ] ClickSend
[1 ] Clickatell Central
[2 ] Clickatell Portal
[3 ] ClockworkSMS
[4 ] EcallSMS
[5 ] Huawei E3531
[6 ] OVH
[7 ] PlaySMS
[8 ] Puzzel SMS
[9 ] SMSAPI
[10] SMSGlobal
[11] SerwerSMS
[12] SipGate
[13] sms77.io
[14] Spryng
[15] VoIP.ms
[16] Voipbuster
[17] WebSMS.de
17
Please enter your websms.de username:
Please enter your websms.de password:
root@nextcloud:/var/www/html# php occ twofactorauth:gateway:status
GoWhatsApp: not configured
SMS: not configured
Signal: not configured
Telegram: not configured
WhatsApp: not configured
XMPP: not configured

Originally created by @TychoGold on GitHub (Feb 11, 2026). Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/891 Hi team, I want to set up 2FA via SMS with a Huawei E3531 stick. It has API enabled (tested with curl, from inside of the container running nextcloud). After I thought that I am too stupid I created an account at WebSMS.de and wanted to test with it, same result: I am entering credentials and then am getting just kicked out of the setup. Even a -vvv does not give me any hint what went wrong. I already set the variable 'allow_local_remote_servers' => true, as I thought 192.168.8.1 (IP from Huawei stick) might be a local remote. Did not change anything. Is that a bug or am I overseeing something? Thank you for your help. Kind regards, Tycho Nextcloud: 32.0.5 Twofactor-Gateway: 2.2.1 Console-Log (credentials blanked out): root@nextcloud:/var/www/html# php occ twofactorauth:gateway:configure -vvv Please choose a provider: [0] gowhatsapp [1] sms [2] signal [3] telegram [4] whatsapp [5] xmpp 1 Please choose a SMS provider: [0 ] ClickSend [1 ] Clickatell Central [2 ] Clickatell Portal [3 ] ClockworkSMS [4 ] EcallSMS [5 ] Huawei E3531 [6 ] OVH [7 ] PlaySMS [8 ] Puzzel SMS [9 ] SMSAPI [10] SMSGlobal [11] SerwerSMS [12] SipGate [13] sms77.io [14] Spryng [15] VoIP.ms [16] Voipbuster [17] WebSMS.de 17 Please enter your websms.de username: Please enter your websms.de password: root@nextcloud:/var/www/html# php occ twofactorauth:gateway:status GoWhatsApp: not configured SMS: not configured Signal: not configured Telegram: not configured WhatsApp: not configured XMPP: not configured
kerem closed this issue 2026-02-26 05:33:30 +03:00
Author
Owner

@TychoGold commented on GitHub (Feb 11, 2026):

Digged a little deeper:

SMS: not configured
{
"provider": "none",
"available_providers": {
"ClickSend": {
"user": "",
"apikey": ""
},
"Clickatell Central": {
"api": "3453245",
"user": "42542",
"password": "544523456"
},
"Clickatell Portal": {
"apikey": "",
"from": ""
},
"ClockworkSMS": {
"apitoken": ""
},
"EcallSMS": {
"username": "",
"password": "",
"sender": ""
},
"Huawei E3531": {
"api": "http://192.168.8.1/api"
},

Things are getting set but then sms gateways stays unconfigured (the password and login was just wild typing ;-) ).

<!-- gh-comment-id:3885354711 --> @TychoGold commented on GitHub (Feb 11, 2026): Digged a little deeper: SMS: not configured { "provider": "none", "available_providers": { "ClickSend": { "user": "", "apikey": "" }, "Clickatell Central": { "api": "3453245", "user": "42542", "password": "544523456" }, "Clickatell Portal": { "apikey": "", "from": "" }, "ClockworkSMS": { "apitoken": "" }, "EcallSMS": { "username": "", "password": "", "sender": "" }, "Huawei E3531": { "api": "http:\/\/192.168.8.1\/api" }, Things are getting set but then sms gateways stays unconfigured (the password and login was just wild typing ;-) ).
Author
Owner

@TychoGold commented on GitHub (Feb 11, 2026):

This helps:
./occ config:app:set twofactor_gateway sms_provider_name --type=string --value=huawei_e3531

duplicate of #818

<!-- gh-comment-id:3885582097 --> @TychoGold commented on GitHub (Feb 11, 2026): This helps: ./occ config:app:set twofactor_gateway sms_provider_name --type=string --value=huawei_e3531 duplicate of #818
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/twofactor_gateway-nextcloud#137
No description provided.