发表文章

[C] 身份验证问题限制。1.0。0 Authentication problem vers. 1.0.0[nodogsplash]

claud43 2017-10-9 27

今天, 我安装了版本 1.0.0, 但仍然呈现问题用户和密码认证。我更正了这个论坛的帖子。

文件:/等/init/nodogsplash

config_get val "$cfg" 用户名
如果 [-n "$val"];然后
回声 "UsernameAuthentication 1" > > $CONFIGFILE
回声 "用户名 $val" > > $CONFIGFILE
上网

config_get val "$cfg" 密码
如果 [-n "$val"];然后
回声 "PasswordAuthentication 1" > > $CONFIGFILE
回音 "密码 $val" > > $CONFIGFILE
上网
}

原文:

Today, I installed version 1.0.0 but still presents the problem user and password authentication. I corrected that had been posted in this forum.

file: /etc/init.d/nodogsplash

config_get val "$cfg" username
if [ -n "$val" ] ; then
echo "UsernameAuthentication 1" >> $CONFIGFILE
echo "Username $val" >> $CONFIGFILE
fi

config_get val "$cfg" password
if [ -n "$val" ] ; then
echo "PasswordAuthentication 1" >> $CONFIGFILE
echo "Password $val" >> $CONFIGFILE
fi
}

相关推荐
最新评论 (2)
claud43 2017-10-9
1

配置实例

设置为1以启用 nodogsplash

选项已启用1

使用普通配置文件以及

#option 配置 "/等/nodogsplash/nodogsplash
选项网络 "热点"
选项 gatewayname "OpenWrt Nodogsplash"
选项 maxclients "250"
选项 idletimeout "1200"

您的路由器可能有几个接口, 而您

可能想让他们从网络/gatewayinterface。

如果是这样, 则应阻止这些接口上的整个子网, 例如:

名单 authenticated_users ' 块到 192.168.0. 0/16 '

名单 authenticated_users ' 块到 10.0 0.0/8 '

典型的端口, 你可能会想打开。

列出 authenticated_users "允许 tcp 端口 22"
列出 authenticated_users "允许 tcp 端口 53"
列出 authenticated_users "允许 udp 端口 53"
列出 authenticated_users "允许 tcp 端口 80"
列出 authenticated_users "允许 tcp 端口 443"

preauthenticated 用户在其

初始请求不使用路由器本身作为 DNS 服务器,

列出 preauthenticated_users "允许 tcp 端口 53"
列出 preauthenticated_users "允许 udp 端口 53"

允许 SSH/Telnet/DNS/DHCP/HTTP/HTTPS 端口

列出 users_to_router "允许 tcp 端口 22"
列出 users_to_router "允许 tcp 端口 23"
列出 users_to_router "允许 tcp 端口 53"
列出 users_to_router "允许 udp 端口 53"
列出 users_to_router "允许 udp 端口 67"
列出 users_to_router "允许 tcp 端口 80"
列出 users_to_router "允许 tcp 端口 443"

选项 usernameauthentication "是"
选项用户名 "某某"
选项 passwordauthentication "是"
选项密码 "某某"

有关可用选项的完整列表, 请参见https://github.com/nodogsplash

原文:

config instance

Set to 1 to enable nodogsplash

option enabled 1

Use plain configuration file as well

#option config '/etc/nodogsplash/nodogsplash.conf'
option network 'hotspot'
option gatewayname 'OpenWrt Nodogsplash'
option maxclients '250'
option idletimeout '1200'

Your router may have several interfaces, and you

probably want to keep them private from the network/gatewayinterface.

If so, you should block the entire subnets on those interfaces, e.g.:

list authenticated_users 'block to 192.168.0.0/16'

list authenticated_users 'block to 10.0.0.0/8'

Typical ports you will probably want to open up.

list authenticated_users 'allow tcp port 22'
list authenticated_users 'allow tcp port 53'
list authenticated_users 'allow udp port 53'
list authenticated_users 'allow tcp port 80'
list authenticated_users 'allow tcp port 443'

For preauthenticated users to resolve IP addresses in their

initial request not using the router itself as a DNS server,

list preauthenticated_users 'allow tcp port 53'
list preauthenticated_users 'allow udp port 53'

Allow ports for SSH/Telnet/DNS/DHCP/HTTP/HTTPS

list users_to_router 'allow tcp port 22'
list users_to_router 'allow tcp port 23'
list users_to_router 'allow tcp port 53'
list users_to_router 'allow udp port 53'
list users_to_router 'allow udp port 67'
list users_to_router 'allow tcp port 80'
list users_to_router 'allow tcp port 443'

option usernameauthentication 'yes'
option username 'xxxxx'
option passwordauthentication 'yes'
option password 'xxxxx'

See https://github.com/nodogsplash for a full list of available options.

mwarning 2017-10-9
2

此问题应已在此处修复https://github.com/openwrt-routing/packages/blob/master/nodogsplash/files/nodogsplash.init
使用 OpenWrt 主干时, 将使用该文件。

"nodogsplash-v" 应该报告版本1.0.1 到现在。

原文:

The issue should have been fixed here https://github.com/openwrt-routing/packages/blob/master/nodogsplash/files/nodogsplash.init
That file will be used when you use OpenWrt trunk.

The "nodogsplash -v" should report version 1.0.1 by now.

返回
发表文章
claud43
文章数
2
评论数
4
注册排名
60915