Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™
Author Message
Cyric
New Member
New Member


Joined: Oct 20, 2004
Posts: 6

PostPosted: Wed Dec 01, 2004 10:08 pm Reply with quote

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?
 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2496

PostPosted: Wed Dec 01, 2004 10:24 pm Reply with quote

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 
View user's profile Send private message
Cyric
PostPosted: Wed Dec 01, 2004 10:37 pm Reply with quote

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
PostPosted: Thu Dec 02, 2004 7:18 am Reply with quote

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
PostPosted: Thu Dec 02, 2004 5:37 pm Reply with quote

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
New Member


Joined: Dec 04, 2004
Posts: 3

PostPosted: Sat Dec 04, 2004 3:09 pm Reply with quote

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.
 
View user's profile Send private message
simrin
PostPosted: Sat Dec 04, 2004 3:16 pm Reply with quote

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
PostPosted: Sat Dec 04, 2004 3:51 pm Reply with quote

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

Code:


print $rangelong;


When you are finished just go ahead and comment it out. That will allow you to use it again later.
 
Cyric
PostPosted: Sun Dec 05, 2004 11:27 am Reply with quote

thanks man, i will chck that out
 
kangaroos1
New Member
New Member


Joined: Sep 16, 2006
Posts: 1

PostPosted: Sat Sep 16, 2006 2:42 pm Reply with quote

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.
 
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6792
Location: Ha Noi, Viet Nam

PostPosted: Sun Sep 17, 2006 4:48 am Reply with quote

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).
 
View user's profile Send private message Send e-mail
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©