View Full Version : No-IP
tomilius
25-05-2005, 07:37
This allows you to update your IP using the No-IP service (http://www.no-ip.com).
Well, this was actually very, very simple to compile. I only changed one thing: multiple instances are assumed by default. The way it handles them causes it to constantly think it's running, so to speak... I've uploaded the source anyway so as not to breach the GPL.
http://nochances.net/files/wl-500g/noip2.c
The object itself (just place it in, say, /opt/sbin) is available here:
http://nochances.net/files/wl-500g/noip2
Works for me! Add the line "noip2" to post-boot and enjoy.
But first, you have to configure it. Run "noip2 -C" from the prompt and answer the questions. Be sure to save flash after you've finished ("flashfs save" and "flashfs commit"... yadda yadda, you should know that).
It would be nice if somebody could turn this into an ipkg release. My knowledge and time are too limited to do so.
I have done nothing here, just so you know, except cross-compile the source available at http://www.no-ip.com. I've already stated my only real change.
Even better, maybe it and its configuration for it can be improvised and implemented into the firmware and web interface, but if it's made into an ipkg package, Webtools (if it's still going) would be more likely.
I'm such a newbie I'm not even sure if this has bearing, but it was compiled with the tools required starting in 1.9.2.7-4.
SocoNaTromba
17-08-2005, 01:07
those url's aren't available... can you fix it, tomilius?
thkz! :)
those url's aren't available... can you fix it, tomilius?
thkz! :)
check the attachment.
SocoNaTromba
21-08-2005, 16:06
thankz, xection! :)
Yes, to integrate it to web interface would be great, who would like to do this, anyone? :D
Hi,
Please, somebody tell me how can I put it to the post-boot.
(I have a WL-500g Deluxe with firmware 1.9.2.7-7e)
The no-ip program is in the /usr/local/no-ip directory and it's config file is in /usr/local/etc/no-ip2.conf.
I have been created the /usr/local/sbin directory and put a file there called post-boot and made it executable.
The post-boot file contains:
/usr/local/no-ip/noip2
and I tried this before:
#!/bin/sh
/usr/local/no-ip/noip2
and with simply #sh in the first line.
But no-ip don't running when I restarting the router.
When I type post-boot it begins to run.
What can I do to make it automatically starts when the router is booting?
jimmy_cr
26-06-2006, 05:44
has "post-boot" file execute rights? so change to +X and test again...
The post-boot file is executable.
Now it contains only:
/usr/local/no-ip/noip2
If I launch it, the no-ip is starting to run.
If I modify the post-boot to:
#!/bin/sh
/usr/local/no-ip/noip2
Then it says:
-sh ./post-boot: not found
What would be the problem?
I would be happy if someone could write me a step by step tutorial to let me understand what I have to do.
SurJector
27-06-2006, 07:42
The post-boot file is executable.
Now it contains only:
/usr/local/no-ip/noip2
If I launch it, the no-ip is starting to run.
If I modify the post-boot to:
#!/bin/sh
/usr/local/no-ip/noip2
Then it says:
-sh ./post-boot: not found
What would be the problem?
It looks as if /bin/sh is not executable. As far as I can tell, and as strange as it sounds, it's the only explanation. Could you try
/bin/sh
ls -l /bin/sh
ls -lL /bin/sh
mount
and post the results ?
It says:
: not found /bin/sh
: No such file or directory
: No such file or directory
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
If I write to the consol: ls -l /bin/sh
it says: lrwxrwxrwx 1 vazso root 7 Jun 11 19:23 /bin/sh --> busybox
For ls -lL /bin /sh
it says: -rwxr-xr-x 1 vazso root 888560 Jun 11 19:22 /bin/sh
SurJector
03-07-2006, 09:40
Still very strange. It might be a library problem...
Try once again
cat /proc/self/maps
(at least to understand what shell you use when logging if it is not /bin/sh, then it must be something).
When I type sh in the consol I must type exit twice to get the telnet window close. So, it seems to be there...
For cat /proc/self/maps
The response is:
00400000-004cc000 r-xp 00000000 1f:02 1204 /bin/busybox
10000000-10004000 rw-p 000cc000 1f:02 1204 /bin/busybox
10004000-10010000 rwxp 00000000 00:00 0
2aaa8000-2aaa9000 rw-p 00000000 00:00 0
2aac0000-2aac7000 r-xp 00000000 1f:02 548075 /lib/ld-uClibc.so.0
2ab06000-2ab07000 rw-p 00006000 1f:02 548075 /lib/ld-uClibc.so.0
2ab07000-2ab1b000 r-xp 00000000 1f:02 548061 /lib/libm.so.0
2ab1b000-2ab5a000 ---p 00014000 00:00 0
2ab5a000-2ab5b000 rw-p 00013000 1f:02 548061 /lib/libm.so.0
2ab5b000-2ab5f000 r-xp 00000000 1f:02 548081 /lib/libcrypt.so.0
2ab5f000-2ab9e000 ---p 00004000 00:00 0
2ab9e000-2ab9f000 rw-p 00003000 1f:02 548081 /lib/libcrypt.so.0
2ab9f000-2abb0000 rw-p 00000000 00:00 0
2abb0000-2ac1f000 r-xp 00000000 1f:02 548047 /lib/libc.so.0
2ac1f000-2ac5e000 ---p 0006f000 00:00 0
2ac5e000-2ac61000 rw-p 0006e000 1f:02 548047 /lib/libc.so.0
2ac61000-2ac64000 rw-p 00000000 00:00 0
7fff5000-7fff8000 rwxp ffffe000 00:00 0
I've created an other thread four days ago in the WL-500g Q&A part of the forum here: http://wl500g.info/showthread.php?t=5667
(before you wrote) because I thought there are more people reading there (nobody wrote to this no-ip forum for days).
so
there is a script called wshaper in /sbin
It's begins with #!/bin/sh and is works even if I copy it to another directory.
But I don't know why doesn't other script work. (For example, post-boot or myshaper script.)
Now it works for me.
The problem was that I created the file using win.
After opened it with vi, I saw "^M"s in the end of every row...
Sorry about this and thank you very much to tryed to help me.
SurJector
08-07-2006, 16:02
Now it works for me.
The problem was that I created the file using win.
Hehe ! Windows manage to cripple even Linux ! Good to see it works now.
Can get those files. Anyone still got it? The attached one is corrupt.
Does anyone use NO-IP?
Many thanks
It is in the ipkg repository:
ipkg update
ipkg install noip