覆盆子coovachilli专属门户网站上的dns [英] dns on raspberry coovachilli captive portal

查看:139
本文介绍了覆盆子coovachilli专属门户网站上的dns的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在覆盆子上有一个俘虏的门户.我的coovachilli正在使用IP,当我连接时,我将重定向到登录页面( http://10.10.10.1 :4990 .. .)正如我所说的,它工作正常.但是现在,我需要在此页面上放置Facebook登录.要进行Facebook登录,我首先需要在facebook上配置我的应用程序,并且在那里我无法将IP设置为站点URL(facebook不允许),我必须放置一个DNS.然后,我尝试配置内部DNS,但没有成功.

I have a captive portal working on a raspberry. My coovachilli is working with an IP and when i connect, i am redirected to login page (http://10.10.10.1:4990...) As i told, it is working fine. But now, i need to put facebook login on this page. To do a facebook login i first need to configure my application on facebook and there i can't set an IP as site URL(facebook don't allow), i must to put a DNS. Then i tried, without success, to configure a internal DNS.

我在这里尝试过这些教程: https://www.howtoforge.com/two_in_one_dns_bind9_views

I tried those tutorials here: https://www.howtoforge.com/two_in_one_dns_bind9_views https://www.digitalocean.com/community/tutorials/how-to-configure-bind-as-a-private-network-dns-server-on-ubuntu-16-04

如果我在树莓派上连接并尝试 http://example.com:4990 ,它仍然无法正常工作我找不到页面,但是使用ip可以像往常一样工作.

It still not working, if i connect on raspberry and try http://example.com:4990 i get page not found, but with ip it works as always.

我什至尝试更改/etc/hosts并添加10.10.10.1 example.com,但是它仅在树莓派内部起作用.我知道,但是无奈之下:(

I even tried to change /etc/hosts and add 10.10.10.1 example.com, but it works only from inside of raspberry. I knew it, but was desesperated :(

我也将.example.com放在了coovachilli的允许域上: HS_UAMDOMAINS="connect.facebook.net,.facebook.com,.example.com"

I also put .example.com on coovachilli's allowed domains: HS_UAMDOMAINS="connect.facebook.net,.facebook.com,.example.com"

[UPDATE] 我通过使用Firebase身份验证api而不是facebook api突破了这个问题. Firebase允许IP,然后我就可以将10.10.10.1用作域.多亏了Firebase,Facebook登录现在可以正常工作了,但是如果URL是 http://myUrl:4990 而不是 http://10.10.10.1:4990

[UPDATE] I trespassed this issue by using firebase auth api instead of facebook api. Firebase allows IP, then i was able to put 10.10.10.1 as domain. Facebook login is working now, thanks to firebase, but it would be nice if the url were http://myUrl:4990 instead of http://10.10.10.1:4990

推荐答案

尝试在coovachilli配置中使用 uamaliasname 选项.

Try to use uamaliasname option in coovachilli configuration.

示例:

# UAM Alias
HS_UAMALIASNAME="hotspot.domain.com"

这篇关于覆盆子coovachilli专属门户网站上的dns的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆