Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whitelist IP is incorrectly matched #238

Closed
leoamigood opened this issue Apr 12, 2017 · 4 comments
Closed

Whitelist IP is incorrectly matched #238

leoamigood opened this issue Apr 12, 2017 · 4 comments

Comments

@leoamigood
Copy link

leoamigood commented Apr 12, 2017

version 2.3

config.web_console.whitelisted_ips = %w(127.0.0.1 172.0.0.0/8)
config.web_console.development_only = false

Cannot render console from 172.56.17.176! Allowed networks: 127.0.0.1, 172.0.0.0/172.255.255.255, 127.0.0.0/127.255.255.255, ::1

@gsamokovarov
Copy link
Collaborator

Are you using docker or vagrant/virtualbox? You may wanna whitelist 192.168.0.0/16, because to get to the console, you still need to go through that network. You may wanna upgrade to web-console 3.x series, a lot of issues have been fleshed out from 2.3.

@leoamigood
Copy link
Author

I am using Heroku. Locally i've tested it with Docker, had no issues.
Also, it seems like 3.x is not compatible with rails 4.2 that I am running.

@leoamigood
Copy link
Author

once i allowed 0.0.0.0/0 it actually worked.
So the question is: how come message about render console is showing wrong IP? (i guess there is more to it)

@gsamokovarov
Copy link
Collaborator

See #171. You can install Web Console up to 3.3.0 on Rails 4.2, so I would suggest you to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants