SouperC
(NotSoSuper)
2020 年 7 月 29 日午前 2:14
21
One thing to be aware of is, if you’re using a CDN (or at least with cloudflare) it’s possible that their edge server IPs are seen by your discourse install… vs the visitor’s IP.
So if you perform a “ban user and IP address” you can run into issues as you have effectively banned that edge server from your discourse install, along with any users that happen to be routed to it.
That said, I believe there is a way to fix this, but I can’t recall the process.
But nonetheless, something to look out for if you or your users report that they are being blocked from your site.
「いいね!」 1
physixfan
(physixfan)
2021 年 2 月 2 日午前 4:46
22
Thanks for the insight. I think our forum have this CloudFlare CDN issue. Many users complain about being blocked but their IP address are not in the blocked list.
「いいね!」 1
ジェフ様、奇妙なことに、私も1日前から同じ問題に直面しています。管理者アカウントは1つしかなく、ユーザーアカウントを含むどのアカウントにもログインできません。アカウントを再度作成できないようにユーザーを1人無効にした以外は、ブロックするIP範囲は有効にしていません。
複数のデバイスを異なるIPアドレスで試しましたが、「そのIPアドレスからはログインできません」というエラーが引き続き表示されます。
どなたか助けていただけますか?
上記のいずれのアドバイスも、あなたのケースに役立ちますか?
返信ありがとうございます。
異なるモバイルデバイス、異なるIPアドレス、異なる場所からログインを試しましたが、どれも効果がありませんでした。
ログインできなければ、管理ダッシュボードに入ることができません。どちらにしてもログインできない状態です。
完全にロックアウトされてしまい、ログインできないようです。ログインする方法があれば提案してください。
これは難しい問題ですね。どのようにしてそうなったのか、完全には把握できていません。
しかし、これは管理者だけでなく、すべてのユーザーに影響しますか?(use admin ip allowlist 設定を無効にするため)
フォーラムの前にCDNがありますか?ユーザーを削除して無効にし、「IPをブロック」ボタンをクリックした場合、意図しない広範囲なロックアウトが発生した可能性があります。もしそうであれば、それを無効にしてみてください。
サーバーへのアクセス権があり(そして、それに慣れている場合)、railsコンソールを使用してIPブロックリストを確認し、問題を引き起こしているものを削除できます。
Use ScreenedIpAddress.all to see what’s there and which ones you need to delete.
You’ll need to go into the rails console or postgresql command line and delete the ScreenedIpAddress record for your IP address.
s = ScreenedIpAddress.match_for_ip_address("...")
s.destroy
「いいね!」 3
@JammyDodger 返信ありがとうございます。
ブロックはすべてのユーザーで発生しており、はい、CDNは前面で有効になっています。
すべての提案に感謝します。
さて、私がやったことは、ローカルホストファイルメソッドを使用してIPを指し、フォーラムにアクセスすることでした。ダッシュボードにログインし、ブロックされていた単一ユーザーアカウントのスクリーニング済みIPを削除したところ、問題が解決しました。Discourseがその単一のIPをどのように考慮し、CDNからのさまざまなIPからのすべてのユーザーをブロックし続けたのか疑問に思っています。
とにかく、これで問題は解決しました。あなたとコミュニティに大いに感謝します。
「いいね!」 2
解決できてよかったです。
CDNは私の専門ではありませんが、これらのトピックに参考になる議論があると思います。
In our Discourse website(Public Site) some of the moderators are unable to login.
When we analyzed this issue, we were able to identify the error message which said: the ip address is blocked from being accessed.
On further analysis, Discourse has out of box functionality, which runs background jobs that identifies banned ip addresses from the same subnet and if it reaches the threshold, it bans the entire subnet.
The threshold is identified by admin setting : min_ban_entries_for_roll_up whi…
There’s a variety of Discourse/Cloudflare topics about but I can’t find any specific to my issue.
We get spam account or users that need to be IP banned occasionally, but then this blocks other users given the IPs are being shared on account of the site running through Cloudflare.
Is there a recommended way to either:
Pass through the correct IP address for each user?
Or to find the IP’s being banned and whitelist them?
「いいね!」 2
meglio
(Anton)
2022 年 12 月 9 日午前 3:05
29
ワンタイムログインリンクは送信されますが、2FAが有効になっていると、まだログインできません。
「いいね!」 1
system
(system)
クローズされました:
2023 年 1 月 15 日午後 5:08
34
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.