Enable/Disable WAN access from UCI

I need to enable and disable WAN access from ssh on GL-MT300A.

So I need to know what is the right parameter to set in the section “general” of “glconfig” file in

I’ve tried to set this (see last option):

config service ‘general’
option model ‘mt750’
option port ‘83’
option language ‘en’
option password ‘xxxxxxxxxxxxxxxxxxxxxxx’
option code_needed ‘0’
option enabled ‘1’

Then uci commit, but some was wrong and no WAN access is available.

What is the right option/section to modify ? There’s a list of all parameters for config files ?

Thanks !!


There’s not option in config file for these service.

It’s possible to work on firewall config file and then enable and disable related policy.

config rule ‘glservice_rule’
option name ‘glservice’
option dest_port ‘83’
option proto ‘tcp udp’
option src ‘wan’
option target ‘ACCEPT’
option enabled ‘0’ <<<---- remove or leave this line to enable/disable remote WAN access

uci commit firewall
/etc/init.d/firewall restart

Please try v3.010 firmware and check the new ddns and wan access.

Hi Alzhao,

I schedule for trying it asap.

For now I’ve only VPN remote access to my MT300A and I don’t want to loose remote connection due upgrading firmware.

Thanks !