egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

NAT-IP Help

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
SSF2
Voice


Joined: 11 Jul 2003
Posts: 13

PostPosted: Tue Oct 21, 2003 3:32 pm    Post subject: NAT-IP Help Reply with quote

Hi,

I need to have NAT-IP enabled to get my userfile sharing to work correctly. I have specified the main internet IP and all the bots linked and shared the userfile like they are supposed to. My problem is I have a dynamic IP not a fixed one and was wondering if there is a workaround so I will not need to keep changing the config file everytime my IP changes. I have got a DNS name from NO-IP as well and the router is updating their servers to keep it uptodate with my current IP. I was thinking maybe a TCL script would be possible? Any help would be appreciated. This is my last little problem then my BotNet will link 100%. Thanks to all that have helped throughout my previos posts as I wouldn't be at this stage now.

Paul.
Back to top
View user's profile Send private message
Ofloo
Owner


Joined: 13 May 2003
Posts: 953
Location: Belguim

PostPosted: Tue Oct 21, 2003 9:49 pm    Post subject: Reply with quote

i think you can set my-hostname or something read the config file also if your on nat ip try and bind to the lan ip ..? if you don't got one use localhost .. its explained in config file i remember reading something about it in there.
_________________
XplaiN but think of me as stupid
Back to top
View user's profile Send private message Visit poster's website
SSF2
Voice


Joined: 11 Jul 2003
Posts: 13

PostPosted: Thu Oct 23, 2003 5:33 am    Post subject: Reply with quote

Hi Ofloo,

thanks for the info. We created a TCL script to get my internet IP and have that update my NAT-IP and everythings working like a charm Smile Been adding NetBots 4.09 to my bots and thats a great collection of scripts. Thanks for all the help.

Paul.
Back to top
View user's profile Send private message
ratman
Voice


Joined: 26 Jun 2003
Posts: 25
Location: CT

PostPosted: Fri Oct 31, 2003 3:05 pm    Post subject: Reply with quote

SSF2 wrote:
Hi Ofloo,

thanks for the info. We created a TCL script to get my internet IP and have that update my NAT-IP and everythings working like a charm Smile Been adding NetBots 4.09 to my bots and thats a great collection of scripts. Thanks for all the help.

Paul.


You should submit that script to the site! Others may find it useful Smile
_________________
Securityarsenal IRC Administrator

irc.homecomputersecurity.net:6667-7000
Website
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
SSF2
Voice


Joined: 11 Jul 2003
Posts: 13

PostPosted: Tue Sep 21, 2004 3:14 pm    Post subject: Reply with quote

Sorry for the lack of updates

I will submit the script for others if they still need it and would find it useful
Back to top
View user's profile Send private message
mort3n
Voice


Joined: 06 Dec 2004
Posts: 8

PostPosted: Mon Dec 06, 2004 9:17 pm    Post subject: help Reply with quote

I would find it VERY usefull, so please submit it, or give me some place i could download it from..

I have the same problem as you had, and i realy need that script! Smile
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Mon Dec 06, 2004 10:37 pm    Post subject: Reply with quote

you may find this helper proc useful:
Code:

proc get-nat-ip {} {
  set f [open "|/sbin/ifconfig -a"]
  while {![eof $f]} {lappend x [gets $f]}
  close $f
  foreach line $x {
    if [string match "*inet *" $line] {
      set ip [lindex [split [string trim $line]] 1]
      if [string match 127.0.0.* $ip] continue
      if [string match 192.168.* $ip] continue
      return $ip
    }
  }
}
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Mon Dec 06, 2004 10:39 pm    Post subject: Reply with quote

of course, this will work only if the bot runs on your router
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
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


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber