Author |
Message |
Cyric
New Member


Joined: Oct 20, 2004
Posts: 6
|
Posted:
Wed Dec 01, 2004 10:08 pm |
|
I have just installed sentinel 2.1.1 on a php nuke 7.4 site. Now I cannot go to any page on the website, it gives me a blank page that says invalid ip used. I have had others test the site for me, and they can navigate around just fine, but I cannot. Why is it doing this, and what can I do to solve this problem? |
|
|
|
 |
sixonetonoffun
Spouse Contemplates Divorce

Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Wed Dec 01, 2004 10:24 pm |
|
Are you accessing it over a lan? The reserved range might be conflicting. |
_________________ [b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 |
|
|
 |
Cyric

|
Posted:
Wed Dec 01, 2004 10:37 pm |
|
yes, I am on a network, what do I need to do to solve the problem, add in my private ip for each computer I may access the site from somewhere? |
|
|
|
 |
sixonetonoffun

|
Posted:
Thu Dec 02, 2004 7:18 am |
|
I believe if you add them to the protected IP's it will be ok but otherwise removing the range from the reserved list will be the easiest. Reserved is intended to block access other then internet traffic. |
|
|
|
 |
Cyric

|
Posted:
Thu Dec 02, 2004 5:37 pm |
|
ok, I dont understand the tables for the ranges, just looks like a bunch of garbled numbers, and I cannot access it through the admin cause I cant access any pages, lol...help....
edit: ok, I emptied the reserved ranges table and I can now access the website, but is this going to hurt the security of my website? |
|
|
|
 |
simrin
New Member


Joined: Dec 04, 2004
Posts: 3
|
Posted:
Sat Dec 04, 2004 3:09 pm |
|
I am using Sentinel for the first time and noticed this problem as well. My server sits in my house and I am working on my laptop to get a new site up. I went through and checked the code and that particular part in sentinel.php doesn't even looked at the protected stuff. It is going soley off the reserved range. The gibberish information is using a php function called ip2long. It converts a standard IPv4 ip to a unsigned long value for the database. The solution however at this point eludes me. If you just want to allow your own ip get your incoming ip write a little php page to convert your ip and then remove just that range from the reserved. I think there should be a better fix though. |
|
|
|
 |
simrin

|
Posted:
Sat Dec 04, 2004 3:16 pm |
|
Actually I am getting none back from the get_client_ip call That is why mine isn't working. Don't know what is going on there. |
|
|
|
 |
simrin

|
Posted:
Sat Dec 04, 2004 3:51 pm |
|
This will help you find out what range to remove. If you are on a lan connection it is only going to get a remote address back. This little piece of code will allow you to display out the convereted long version of the ip and allow you to remove that from you range.
Find this in sentinel.php
Code:
$rangelong = sprintf("%u", ip2long($rangeip));
|
and add this right beneath it
When you are finished just go ahead and comment it out. That will allow you to use it again later. |
|
|
|
 |
Cyric

|
Posted:
Sun Dec 05, 2004 11:27 am |
|
thanks man, i will chck that out |
|
|
|
 |
kangaroos1
New Member


Joined: Sep 16, 2006
Posts: 1
|
Posted:
Sat Sep 16, 2006 2:42 pm |
|
Cyric wrote: | I emptied the reserved ranges table and I can now access the website, but is this going to hurt the security of my website? |
how do u empty the reserved ranges table///
i want to do the same. |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Sun Sep 17, 2006 4:48 am |
|
That fix may not apply as the post 2 years old and referenced a very old Sentinel version.
What problems are you having (please include an error messages). |
|
|
|
 |
|