User manual
22: Configuring HTTP server
_______________________________________________________________________________________________________
If the $p$… format is used, uhttpd will compare the client provided password
against the one stored in the shadow or passwd database.
22.4 Securing uHTTPd
By default, uHTTPd binds to 0.0.0.0 which also includes the WAN port of your
router. To bind uHTTPd to the LAN port only you have to change the listen_http
and listen_https options to your LAN IP address.
To get your current LAN IP address, enter:
uci get network.lan.ipaddr
then, modify the configuration appropriately:
uci set uhttpd.main.listen_http='192.168.1.1:80'
uci set uhttpd.main.listen_https='192.168.1.1:443'
config 'uhttpd' 'main'
# HTTP listen addresses, multiple allowed
list listen_http 192.168.1.1:80
# list listen_http [::]:80
# HTTPS listen addresses, multiple allowed
list listen_https 192.168.1.1:443
# list listen_https [::]:443
22.5 SSH server configuration
A sample SSH Server configuration is shown below.
root@VA_router:~# uci show dropbear
dropbear.@dropbear[0]=dropbear
dropbear.@dropbear[0].PasswordAuth=on
dropbear.@dropbear[0].RootPasswordAuth=on
dropbear.@dropbear[0].Port=22
root@VA_router:~# uci export dropbear
package 'dropbear'
config 'dropbear'
option 'PasswordAuth' 'on'
option 'RootPasswordAuth' 'on'
option 'Port' '22'
_______________________________________________________________________________________________________
© Virtual Access 2015
GW1000 Series User Manual
Issue: 2.4 Page 152 of 255