| View previous topic :: View next topic |
| Author |
Message |
SSF2 Voice
Joined: 11 Jul 2003 Posts: 13
|
Posted: Tue Oct 21, 2003 3:32 pm Post subject: NAT-IP Help |
|
|
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 |
|
 |
Ofloo Owner
Joined: 13 May 2003 Posts: 953 Location: Belguim
|
Posted: Tue Oct 21, 2003 9:49 pm Post subject: |
|
|
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 |
|
 |
SSF2 Voice
Joined: 11 Jul 2003 Posts: 13
|
Posted: Thu Oct 23, 2003 5:33 am Post subject: |
|
|
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 Been adding NetBots 4.09 to my bots and thats a great collection of scripts. Thanks for all the help.
Paul. |
|
| Back to top |
|
 |
ratman Voice
Joined: 26 Jun 2003 Posts: 25 Location: CT
|
Posted: Fri Oct 31, 2003 3:05 pm Post subject: |
|
|
| 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 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  _________________ Securityarsenal IRC Administrator
irc.homecomputersecurity.net:6667-7000
Website |
|
| Back to top |
|
 |
SSF2 Voice
Joined: 11 Jul 2003 Posts: 13
|
Posted: Tue Sep 21, 2004 3:14 pm Post subject: |
|
|
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 |
|
 |
mort3n Voice
Joined: 06 Dec 2004 Posts: 8
|
Posted: Mon Dec 06, 2004 9:17 pm Post subject: help |
|
|
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!  |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Mon Dec 06, 2004 10:37 pm Post subject: |
|
|
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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Mon Dec 06, 2004 10:39 pm Post subject: |
|
|
| of course, this will work only if the bot runs on your router |
|
| Back to top |
|
 |
|