Hurricane Electric's IPv6 Tunnel Broker Forums

Advanced search  

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Author Topic: Acceptable to poll https://ipv4.tunnelbroker.net/ipv4_end.php ?  (Read 4289 times)

kfu

  • Newbie
  • *
  • Posts: 3
Acceptable to poll https://ipv4.tunnelbroker.net/ipv4_end.php ?
« on: December 26, 2010, 11:26:26 PM »

I have an ostensibly dynamic IPv4 address from Comcast, but it doesn't change all that often. Still, if/when it does change, I'd like the tunnel to react with the quickness.

I have a script that will fetch https://ipv4.tunnelbroker.net/ipv4_end.php?ipv4address=AUTO& plus all of the various identification/authentication values. A single machine does this from behind the AirPort Extreme that's configured to perform the tunneling duties.

Currently, it replies "That IPv4 endpoint is already in use."

Can I set up a cron job to run this hourly? Can I assume that it will do the right thing if/when our address changes?
Logged

cholzhauer

  • Hero Member
  • *****
  • Posts: 2715
Re: Acceptable to poll https://ipv4.tunnelbroker.net/ipv4_end.php ?
« Reply #1 on: December 27, 2010, 05:00:55 AM »

You can have cron do anything you want...if you want it to run every hour, have at it.

Quote
Currently, it replies "That IPv4 endpoint is already in use."

You'll have to devise a way to handle that "condition" in your script.
Logged

kfu

  • Newbie
  • *
  • Posts: 3
Re: Acceptable to poll https://ipv4.tunnelbroker.net/ipv4_end.php ?
« Reply #2 on: December 27, 2010, 07:37:23 AM »

You can have cron do anything you want...if you want it to run every hour, have at it.

Thanks. I just didn't want to be perceived as abusive.

Quote
Quote
Currently, it replies "That IPv4 endpoint is already in use."

You'll have to devise a way to handle that "condition" in your script.

Oh, I don't expect that it really needs handling... :)
Logged

cholzhauer

  • Hero Member
  • *****
  • Posts: 2715
Re: Acceptable to poll https://ipv4.tunnelbroker.net/ipv4_end.php ?
« Reply #3 on: December 27, 2010, 07:42:14 AM »

I don't think they would consider it "Abusive" but I guess you could email ipv6@he.net to double check.
Logged

keithfernie

  • Newbie
  • *
  • Posts: 3
    • ipv6.keithfernie.co.uk
Re: Acceptable to poll https://ipv4.tunnelbroker.net/ipv4_end.php ?
« Reply #4 on: December 27, 2010, 12:07:52 PM »

If this was considered abusive you should change your script to detect a change in the dynamic IP first then connect to Hurricane Electric only when there was a new dynamic ip. If you was using a similar script with a dynamic dns provider instead you usually would be required to do this.
When testing your script for a change in dynamic IP address, try switching your Airport Extreme off then back on. This may force a change in the dynamic ip, mine changes when I switch my router off then back on.
Logged

snarked

  • Hero Member
  • *****
  • Posts: 766
Re: Acceptable to poll https://ipv4.tunnelbroker.net/ipv4_end.php ?
« Reply #5 on: December 27, 2010, 12:12:13 PM »

I agree.  It woud be better for you to run the HE web page script only when detecting a change in the assigned IPv4 endpoint address.  Your hourly-run script "remembers" the IP address detected from the last run (by storing it in a file) and compares the value to the current value.  Only when different should it call the HE web page script and write the new value locally to its file.
Logged

kfu

  • Newbie
  • *
  • Posts: 3
Re: Acceptable to poll https://ipv4.tunnelbroker.net/ipv4_end.php ?
« Reply #6 on: December 30, 2010, 06:35:29 PM »

Well, the nice thing about ipv4addr=AUTO is that I don't have to know what the address is. I'm doing this from behind the NAT, so if I have to discover what the outside address is and track changes, well, that's a lot more work.

I'm willing to do that work if required, but I'd rather not. Not because I'm lazy, but because it's just more reliable to not have to. But, as is the case with dynamic DNS, it's considered abusive to poll for updates redundantly, then I'll do it.

I was just hoping to get an official response.
Logged