Forum Discussion
Thossessess
Hace 2 añosNewbie Caller
I wish the T-Mobile Home Internet Gateway was JUST a modem!!!
I just left Breezeline due to horrible service for over a month, and when it went out from home, my T-Mobile iPhone became my hotspot. After realizing it was more reliable than my landline Internet, ...
hafizullah
Hace 2 mesesNewbie Caller
It's been two years, and the brand-new Fast_5688W gateways are still locked down.
I'm still in the try-before-you-buy period — but unless I can find a workaround to disable NAT and DHCP, I may bail and tell them that provisioning with such a dumbed-down device is a deal-breaker.
Here is a PowerShell script for disabling WiFi on the 5688W, in case it's helpful.
$ErrorActionPreference = 'SilentlyContinue' #disables error reporting function token { $Pass = Read-Host "Enter Password For The Gateway" #admin passphrase for the gateway, not WiFi $body = @" { "username": "admin", "password": "$Pass" } "@ $login = Invoke-RestMethod -Method POST -Uri "http://192.168.12.1/TMI/v1/auth/login" -Body $body $token = $login.auth.token $global:header = @{Authorization="Bearer $token"} } function Show-Menu { param ( [string]$Title = 'My Menu' ) Clear-Host Write-Host "Options for Gateway" Write-Host "1: Press '1' to Turn Off 2.4G Wifi." Write-Host "2: Press '2' to Turn On 2.4G Wifi." Write-Host "3: Press '3' to Turn Off 5G Wifi." Write-Host "4: Press '4' to Turn On 5G Wifi." Write-Host "5: Press '5' to Reboot Gateway." Write-Host "6: Press '6' to Download Config to Verify Changes." Write-Host "Q: Press 'Q' to Quit." } function wifi-off-24 { $response = Invoke-RestMethod -Uri "http://192.168.12.1/TMI/v1/network/configuration?get=ap" -headers $global:header -o .\config.txt ((Get-Content -path .\config.txt -Raw) -Replace '"2.4ghz":{"isRadioEnabled":true','"2.4ghz":{"isRadioEnabled":false') | Set-Content -Path .\config.txt
$response = Invoke-RestMethod -TimeoutSec 1 -Method POST -Uri "http://192.168.12.1/TMI/v1/network/configuration?set=ap" -headers $global:header -body (Get-Content .\config.txt) -ContentType "application/json"
}
function wifi-on-24
{
$response = Invoke-RestMethod -Uri "http://192.168.12.1/TMI/v1/network/configuration?get=ap" -headers $global:header -o .\config.txt
((Get-Content -path .\config.txt -Raw) -Replace '"2.4ghz":{"isRadioEnabled":false','"2.4ghz":{"isRadioEnabled":true') | Set-Content -Path .\config.txt
$response = Invoke-RestMethod -TimeoutSec 1 -Method POST -Uri "http://192.168.12.1/TMI/v1/network/configuration?set=ap" -headers $global:header -body (Get-Content .\config.txt) -ContentType "application/json"
}
function wifi-off-5
{
$response = Invoke-RestMethod -Uri "http://192.168.12.1/TMI/v1/network/configuration?get=ap" -headers $global:header -o .\config.txt
((Get-Content -path .\config.txt -Raw) -Replace '"5.0ghz":{"isRadioEnabled":true','"5.0ghz":{"isRadioEnabled":false') | Set-Content -Path .\config.txt
$response = Invoke-RestMethod -TimeoutSec 1 -Method POST -Uri "http://192.168.12.1/TMI/v1/network/configuration?set=ap" -headers $global:header -body (Get-Content .\config.txt) -ContentType "application/json"
}
function wifi-on-5
{
$response = Invoke-RestMethod -Uri "http://192.168.12.1/TMI/v1/network/configuration?get=ap" -headers $global:header -o .\config.txt
((Get-Content -path .\config.txt -Raw) -Replace '"5.0ghz":{"isRadioEnabled":false','"5.0ghz":{"isRadioEnabled":true') | Set-Content -Path .\config.txt
$response = Invoke-RestMethod -TimeoutSec 1 -Method POST -Uri "http://192.168.12.1/TMI/v1/network/configuration?set=ap" -headers $global:header -body (Get-Content .\config.txt) -ContentType "application/json"
}
function config
{
$response = Invoke-RestMethod -Uri "http://192.168.12.1/TMI/v1/network/configuration?get=ap" -headers $global:header -o .\config.txt
}
function reboot
{
$response = Invoke-RestMethod -TimeoutSec 1 -Method POST -Uri "http://192.168.12.1/TMI/v1/gateway/reset?set=reboot" -headers $global:header
}
function menu
{
Show-Menu -Title 'My Menu'
$selection = Read-Host "Please make a selection"
switch ($selection)
{
'1' {
'Turning off 2.4G Wifi'
wifi-off-24
'Returning to Menu'
Start-Sleep -s 1
menu
} '2' {
'Turning on 2.4G Wifi'
wifi-on-24
'Returning to Menu'
Start-Sleep -s 1
menu
}'3' {
'Turning off 5G Wifi'
wifi-off-5
'Returning to Menu'
Start-Sleep -s 1
menu
} '4' {
'Turning on 5G Wifi'
wifi-on-5
'Returning to Menu'
Start-Sleep -s 1
menu
} '5' {
'Rebooting Gateway'
Start-Sleep -s 1
reboot
return
} '6' {
'Downloading config'
config
'Returning to Menu'
Start-Sleep -s 1
menu
} 'q' {
return
}
}
}
token
menu
$response
Contenido relacionado
- Hace 5 meses
- Hace 6 meses
- Hace 2 años