Re: noip service on a b-focus 312
On Thu, 30 Jun 2005, Lior Kesos wrote: The thing about linux/FOSS is that (as the perl moto says) There like a gazillion ways to do anything. In this case it was to update my ip at noip2 and I went to alot of redundent work and have like 4 different ways of doing that including a python agent I started writing. So I didn't even find out if dproxy works and just googled the surface of what it is and how it can help me - which isn't much because I solved my problem 3 solutions ago :). regards Lior So if you use a large enough microscope(s) to bash in the nail then it's ok once the nail is in ? ;-) Peter = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: noip service on a b-focus 312
On Thu, Jun 30, 2005 at 12:07:41AM +0200, Lior Kesos wrote: I put the noip binary on a web server on my host and then ran wget from the router while I was on /var that seems to be writeable. Just note that /var is tmpfs, recreated at reboot. -- Didi = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: noip service on a b-focus 312
Well the cross compile went suprisely smooth. I downloaded the uclibc cross compiler and had no problems whatsoever. I then placed the noip binary on the /var (which is writable) and was very proud to be able to runit off my router with the dilema if to actually integrate it into the router's initscript a thing that may break it if I make a mistake creating the rooydisk and so forth... So after my first cross compile I felt very proud and had all of the air beat out of my lungs when I ran noip with out any paramaters and recieved this entry among others ... -F force NAT off hmm if there's a NAT off does that mean NAT is on by default? Having not even tried it on my natted machine I fell in to another classic case of overobfuscating a simple and trivial problem :) . noip also has the -S ip that farther displyas this point with the next output... #./noip2 -S -c noip.conf noip2 process active. Process 19345, started as /home/lior/devel/noip-2.1.1/noip2 -c noip.conf Using configuration from noip.conf Last IP Address set 85.64.20.237 Account [EMAIL PROTECTED] configured for: host liorsbox.no-ip.com Updating every 30 minutes via /dev/eth0 with NAT enabled. There goes another 2 wasted hours... Lior On 6/29/05, Peter [EMAIL PROTECTED] wrote: On Wed, 29 Jun 2005, Lior Kesos wrote: Ello, I'm trying to set up my router (eci b-focus 312) to update the noip service of it's ip. I've used cable pptp till now so I always had my external ip an ifconfig away. But my question is do I have to install the noip software on the router or is there a more standard and elegent way. I guess I can cross compile the small tgz to mips and run it on the router (which I'll do anyway because it sounds fun :) ). Anyway what is you're solution for dynamic dns from behind an adsl router that does masuarading.(in my case to a 10.0.0.x subnet). regards The router has dproxy installed. It does not always work. You can run it on another machine on the internal net and point the others at it for dns. Cross-compiling for MIPS is not very easy. Peter -- Peace Love and Penguins - Lior Kesos To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: noip service on a b-focus 312
Hi Lior, Installing noip service on the router is not wise. You don't have much persistent storage there, and not many tools (perl as i recall is not avail. there). I have this router, and I tried (unsuccessfully) to enable SNMP on it to achieve this data. Instead, I wrote a small script in perl which telnet/ssh to the router and retrieves the data that way. NoamOn 6/29/05, Lior Kesos [EMAIL PROTECTED] wrote: Ello,I'm trying to set up my router (eci b-focus 312) to update the noipservice of it's ip.I've used cable pptp till now so I always had my external ip an ifconfig away.But my question is do I have to install the noip software on the router or is there a more standard and elegent way.I guess I can cross compile the small tgz to mips and run it on therouter (which I'll do anyway because it sounds fun :) ).Anyway what is you're solution for dynamic dns from behind an adsl router that does masuarading.(in my case to a 10.0.0.x subnet).regardsLior.--Peace Love and Penguins -Lior KesosTo unsubscribe, send mail to [EMAIL PROTECTED] withthe word unsubscribe in the message body, e.g., run the commandecho unsubscribe | mail [EMAIL PROTECTED]
Re: noip service on a b-focus 312
A simpler solution to that (after writing a similiar script) is running - html2text http://checkip.dyndns.org | grep Current | cut -d : -f2 When you access one of the checkmyip sites it get's the router's external ip and that way no sshing is needed. Lior. On 6/29/05, Noam Meltzer [EMAIL PROTECTED] wrote: Hi Lior, Installing noip service on the router is not wise. You don't have much persistent storage there, and not many tools (perl as i recall is not avail. there). I have this router, and I tried (unsuccessfully) to enable SNMP on it to achieve this data. Instead, I wrote a small script in perl which telnet/ssh to the router and retrieves the data that way. Noam On 6/29/05, Lior Kesos [EMAIL PROTECTED] wrote: Ello, I'm trying to set up my router (eci b-focus 312) to update the noip service of it's ip. I've used cable pptp till now so I always had my external ip an ifconfig away. But my question is do I have to install the noip software on the router or is there a more standard and elegent way. I guess I can cross compile the small tgz to mips and run it on the router (which I'll do anyway because it sounds fun :) ). Anyway what is you're solution for dynamic dns from behind an adsl router that does masuarading.(in my case to a 10.0.0.x subnet). regards Lior. -- Peace Love and Penguins - Lior Kesos To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Peace Love and Penguins - Lior Kesos To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: noip service on a b-focus 312
On Wed, 2005-06-29 at 12:31 +0300, Lior Kesos wrote: A simpler solution to that (after writing a similiar script) is running - html2text http://checkip.dyndns.org | grep Current | cut -d : -f2 When you access one of the checkmyip sites it get's the router's external ip and that way no sshing is needed. Lior. An even simpler solution is to use ddclient with dyndns (who provided you with this service). It's a daemon that runs every X time that you tell it, compares your current IP (with checkip.*) to what it has on file, and updates DynDNS's servers accordingly. I have been using it for years now, and it works flawlessly (plus they have a homelinux.net domain :)) -- shimi [EMAIL PROTECTED] = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: noip service on a b-focus 312
The problem with both methods is they are being a little slow. I used the latter and i got many false-negatives (can't obtain IP errors). So i prefered to keep the IP checking inside my network. NoamOn 6/29/05, shimi [EMAIL PROTECTED] wrote: On Wed, 2005-06-29 at 12:31 +0300, Lior Kesos wrote: A simpler solution to that (after writing a similiar script) is running - html2text http://checkip.dyndns.org | grep Current | cut -d : -f2 When you access one of the checkmyip sites it get's the router's external ip and that way no sshing is needed. Lior.An even simpler solution is to use ddclient with dyndns (who provided you with this service). It's a daemon that runs every X time that youtell it, compares your current IP (with checkip.*) to what it has onfile, and updates DynDNS's servers accordingly. I have been using it for years now, and it works flawlessly (plus they have a homelinux.netdomain :))--shimi [EMAIL PROTECTED]= To unsubscribe, send mail to [EMAIL PROTECTED] withthe word unsubscribe in the message body, e.g., run the commandecho unsubscribe | mail [EMAIL PROTECTED]
Re: noip service on a b-focus 312
On Wed, 29 Jun 2005 00:26:37 +0300, Lior Kesos wrote: [snip] But my question is do I have to install the noip software on the router or is there a more standard and elegent way. You can use one of the several sites that return your IP as they see it (after NAT or proxy). Among them are: http://www.ipaddressworld.com www.whatismyip.com www.whatismyipaddress.com www.ipchicken.com . An example of commands to get your IP is: IP=`wget -O - http://www.ipaddressworld.com/; 2/dev/null \ | grep -C1 Your computer's IP address is \ | tail -n 1 | sed -e s/[^]*//g` IP=`wget -O - http://www.whatismyip.com/; 2/dev/null \ | grep -i your ip is [.0-9]* | sed -e s/[ \\ta-zA-Z]//g \ | sed -e s/[^]*//g` If you have access to a computer that runs sshd (preferably with public key identification) you can run from your machine command like: ssh [EMAIL PROTECTED] setip.sh where setip.sh is a script that use the SSH_CLIENT environment variable. e.g. #! /bin/sh -e # Saves IP of ssh caller (use env var: SSH_CLIENT) to file my_ip IP=`echo $SSH_CLIENT | cut -d -f1` if [ $IP != ] ; then echo $IP my_ip fi Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: noip service on a b-focus 312
On Wed, 29 Jun 2005, Lior Kesos wrote: Well the cross compile went suprisely smooth. I downloaded the uclibc cross compiler and had no problems whatsoever. I then placed the noip binary on the /var (which is writable) and was very proud to be able to runit off my router with the dilema if to actually integrate it into the router's initscript a thing that may break it if I make a mistake creating the rooydisk and so forth... What tool did you use to place the compiled binary in the router. Mine is locked, I cannot upload into it through ssh or anything else. I can write a shell script to tunnel base64 data if needed ;-). It is also modified somehow. The first router I had worked differently than this one. For example its dproxy is running but it does not work anymore. I will take it back to nezeq eventually as it looks like it was hacked by someone (not me). Peter = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: noip service on a b-focus 312
On Wed, 29 Jun 2005, Lior Kesos wrote: A simpler solution to that (after writing a similiar script) is running - html2text http://checkip.dyndns.org | grep Current | cut -d : -f2 When you access one of the checkmyip sites it get's the router's external ip and that way no sshing is needed. Lior. Did you people try my SNMP solution which works on a B-focus 312 router ? I posted it to this list some time ago. I can re-post it if necessary. Peter = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: noip service on a b-focus 312
On Wed, Jun 29, 2005 at 10:37:11PM +0300, Peter wrote: What tool did you use to place the compiled binary in the router. Mine is locked, I cannot upload into it through ssh or anything else. I can write a shell script to tunnel base64 data if needed ;-). It is also modified somehow. The first router I had worked differently than this one. For example its dproxy is running but it does not work anymore. I will take it back to nezeq eventually as it looks like it was hacked by someone (not me). cat file | ssh [EMAIL PROTECTED] 'cat /var/whatever' -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il | | a Mutt's [EMAIL PROTECTED] | | best ICQ# 16849755 | | friend = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: noip service on a b-focus 312
On Thu, 30 Jun 2005, Lior Kesos wrote: I put the noip binary on a web server on my host and then ran wget from the router while I was on /var that seems to be writeable. Hmm, I missed wget ;-) Does your router have dproxy running, and if so, does it work (you should be able to point your internal machines to the ip of the router and get name resolution). Also SNMP should work. thanks, Peter = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: noip service on a b-focus 312
The thing about linux/FOSS is that (as the perl moto says) There like a gazillion ways to do anything. In this case it was to update my ip at noip2 and I went to alot of redundent work and have like 4 different ways of doing that including a python agent I started writing. So I didn't even find out if dproxy works and just googled the surface of what it is and how it can help me - which isn't much because I solved my problem 3 solutions ago :). regards Lior On 6/30/05, Peter [EMAIL PROTECTED] wrote: On Thu, 30 Jun 2005, Lior Kesos wrote: I put the noip binary on a web server on my host and then ran wget from the router while I was on /var that seems to be writeable. Hmm, I missed wget ;-) Does your router have dproxy running, and if so, does it work (you should be able to point your internal machines to the ip of the router and get name resolution). Also SNMP should work. thanks, Peter -- Peace Love and Penguins - Lior Kesos To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: noip service on a b-focus 312
On Wed, 29 Jun 2005, Lior Kesos wrote: Ello, I'm trying to set up my router (eci b-focus 312) to update the noip service of it's ip. I've used cable pptp till now so I always had my external ip an ifconfig away. But my question is do I have to install the noip software on the router or is there a more standard and elegent way. I guess I can cross compile the small tgz to mips and run it on the router (which I'll do anyway because it sounds fun :) ). Anyway what is you're solution for dynamic dns from behind an adsl router that does masuarading.(in my case to a 10.0.0.x subnet). regards The router has dproxy installed. It does not always work. You can run it on another machine on the internal net and point the others at it for dns. Cross-compiling for MIPS is not very easy. Peter = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]