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


Joined: Jan 15, 2005
Posts: 6

PostPosted: Mon Jan 17, 2005 8:20 am Reply with quote

I'm rolling PHPNuke 7.6 with the latest NukeSentinnel. I'm doing so within a local development environment. The IP of the system is 127.0.0.1 and I am surfing the changes from the same IP address. Once I pasted the 7 lines of code into mainfile.php, I get:

"Invalid IP used"

This, of course, is excellent for production environments; nice thinking. I would, however, like to turn it off temporarily. I commented out the reference to 127.0.0.1 in admin/modules/ipban.php. That didn't work. I could use a clue. What files do I need to tweak to disable this most excellent security measure? No need to warn me about shipping it to production like this. I'll take care of it before I move it live. Wink
 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2496

PostPosted: Mon Jan 17, 2005 8:44 am Reply with quote

Make a backup of the nsnst_blocked_ranges data. Then empty the table when you move from localhost run the dump file back in.

_________________
[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
feuerfuchs
PostPosted: Mon Jan 17, 2005 11:45 am Reply with quote

sixonetonoffun wrote:
Make a backup of the nsnst_blocked_ranges data. Then empty the table when you move from localhost run the dump file back in.


Thanks fella.
 
feuerfuchs
PostPosted: Tue Jan 18, 2005 7:25 pm Reply with quote

nsnst_blocked_ranges

That table has no data. What's next?
 
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Tue Jan 18, 2005 9:15 pm Reply with quote

feuerfuchs wrote:
I'm rolling PHPNuke 7.6 with the latest NukeSentinnel. I'm doing so within a local development environment. The IP of the system is 127.0.0.1 and I am surfing the changes from the same IP address. Once I pasted the 7 lines of code into mainfile.php, I get:

"Invalid IP used"

This, of course, is excellent for production environments; nice thinking. I would, however, like to turn it off temporarily. I commented out the reference to 127.0.0.1 in admin/modules/ipban.php. That didn't work. I could use a clue. What files do I need to tweak to disable this most excellent security measure? No need to warn me about shipping it to production like this. I'll take care of it before I move it live. Wink
On or about line 125 in includes/sentinel.php is the following
Code:
if($remote=="none") { die("Invalid IP used"); }
Comment it out
Code:
//if($remote=="none") { die("Invalid IP used"); }
 
View user's profile Send private message
PHrEEkie
Subject Matter Expert


Joined: Feb 23, 2004
Posts: 358

PostPosted: Tue Jan 18, 2005 9:16 pm Reply with quote

open /includes/sentinel.php

search for the following
Code:
$remote = get_ip();

if($remote=="none") { die("Invalid IP used"); }


comment out the IF
Code:
$remote = get_ip();

// if($remote=="none") { die("Invalid IP used"); }


That should let you test locally... un-comment that line when you go production

PHrEEk
 
View user's profile Send private message
PHrEEkie
PostPosted: Tue Jan 18, 2005 9:16 pm Reply with quote

lol.. we did it again Gaylen....

ROTFL
 
Raven
PostPosted: Tue Jan 18, 2005 9:17 pm Reply with quote

Hmmm. Wish I had said that ROTFL
 
PHrEEkie
PostPosted: Tue Jan 18, 2005 9:17 pm Reply with quote

you're stalking my posts!!

Smack
 
Raven
PostPosted: Tue Jan 18, 2005 9:18 pm Reply with quote

This is hilarious boxing
 
feuerfuchs
PostPosted: Wed Jan 19, 2005 4:45 pm Reply with quote

You guys rox0r. May the best dot win.
 
djrino
Regular
Regular


Joined: Mar 11, 2005
Posts: 52

PostPosted: Fri Mar 11, 2005 8:20 pm Reply with quote

HI, i test nuke on my localnetwork.
How i make this on Sentinel 220?
Many TNX
 
View user's profile Send private message
mastermindz
New Member
New Member


Joined: Mar 05, 2009
Posts: 2

PostPosted: Thu Mar 05, 2009 9:20 pm Reply with quote

I'm Using php nuke 7.6 with NukeSentinel and my site displays Invalid IP used when i comment out the
$remote = get_ip();
// if($remote=="none") { die("Invalid IP used"); }
The website comes up from my current ip yet in tracked ip it has me as none?
It is not a local server and im on
Wave Broadband WAVE-WOODBURN-1 (NET-76-14-192-0-1) 76.14.192.0 - 76.14.255.255
Any ideas how to make my site read my ip?
 
View user's profile Send private message
Raven
PostPosted: Fri Mar 06, 2009 12:13 am Reply with quote

Add this range 76.14.192.0 - 76.14.255.255 to your ip2country table.

From your ACP, select NukeSentinel(tm)=>IP to Country Menu=>IP2C Add Range
 
mastermindz
PostPosted: Fri Mar 06, 2009 9:14 am Reply with quote

The NukeSentinel loaded on my website was before IP2C if i remeber right it was the version right before. It has the words in the menu yet they are not a link. and there is no table in my sql.
 
Raven
PostPosted: Fri Mar 06, 2009 12:47 pm Reply with quote

You need to update to the latest version of NukeSentinel(tm) for many reasons.
 
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 ©