Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




13449 posts

Uber Geek
+1 received by user: 2274

Trusted
Subscriber

Topic # 191128 25-Jan-2016 08:05
One person supports this post
Send private message

I run AWS servers, and as per best practice I lock down ssh access to specific IPs. Every week or three my 2degrees dynamic IP changes, and I have to change it in a few places in my setup.

 

Is there any way to reduce the frequency of this? I know it used to change a lot more often, Snap (back then) made some kind of change that made it less frequent, but can I do anything about it? Maybe some kind of keep alive ping or something? We have no devices using the internet overnight so it could be released due to inactivity I guess.

 

It wouldn't bother me if they had a consistent range, but they appear to have IP blocks all over the place. I normally add a /24 set of IPs so that if the last octet changes I can still connect but it usually changes outside that range.

 

 

 

25.01.16 03:26:21 Internet connection established successfully. IP address: 123.255.x.x, DNS server: 202.37.x.x and 202.37.x.x, Gateway: 111.69.x.x, Broadband PoP: SNAP-xx
25.01.16 03:26:10 PPPoE error: Timeout.
25.01.16 03:25:57 Internet connection cleared.
25.01.16 03:25:57 PPPoE error: Timeout.
25.01.16 03:25:43 PPPoE error: Timeout.
25.01.16 03:25:29 PPPoE error: Timeout.
25.01.16 03:25:15 PPPoE error: Timeout.
25.01.16 03:25:01 PPPoE error: Timeout.
25.01.16 03:24:47 PPPoE error: Timeout.
25.01.16 03:24:33 PPPoE error: Timeout.
25.01.16 03:24:19 PPPoE error: Timeout.
25.01.16 03:24:05 PPPoE error: Timeout.
25.01.16 03:23:51 PPPoE error: Timeout.
25.01.16 03:23:37 PPPoE error: Timeout.
25.01.16 03:23:23 PPPoE error: Timeout.
25.01.16 03:23:09 PPPoE error: Timeout.
25.01.16 03:22:55 PPPoE error: Timeout.
25.01.16 03:22:41 PPPoE error: Timeout.
25.01.16 03:22:27 PPPoE error: Timeout.
25.01.16 03:22:13 PPPoE error: Timeout.
25.01.16 03:21:59 PPPoE error: Timeout.
25.01.16 03:21:45 PPPoE error: Timeout.
25.01.16 03:21:31 PPPoE error: Timeout.
25.01.16 03:21:17 PPPoE error: Timeout.
25.01.16 03:21:03 PPPoE error: Timeout.
25.01.16 03:20:49 PPPoE error: Timeout.
25.01.16 03:20:35 PPPoE error: Timeout.
25.01.16 03:20:21 PPPoE error: Timeout.
25.01.16 03:20:07 PPPoE error: Timeout.
25.01.16 03:19:53 PPPoE error: Timeout.
25.01.16 03:19:39 PPPoE error: Timeout.
25.01.16 03:19:25 PPPoE error: Timeout.
25.01.16 03:19:11 PPPoE error: Timeout.
25.01.16 03:18:57 PPPoE error: Timeout.
25.01.16 03:18:43 Timeout during PPP negotiation.
25.01.16 03:18:43 Internet connection cleared.
25.01.16 03:10:29 Internet connection established successfully. IP address: 111.69.x.x, DNS server: 202.37.x.x and 202.37.x.x, Gateway: 111.69.7.69, Broadband PoP: SNAP-xx
25.01.16 03:10:18 PPPoE error: Timeout.
25.01.16 03:04:20 Timeout during PPP negotiation.
25.01.16 03:04:20 Internet connection cleared.
11.01.16 17:09:43 Internet connection established successfully. IP address: 123.255.x.x, DNS server: 202.37.x.x and 202.37.101.2, Gateway: 111.69x.x, Broadband PoP: SNAP-xx
11.01.16 17:09:29 PPPoE error: Timeout.





AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


Create new topic
6433 posts

Uber Geek
+1 received by user: 1570


  Reply # 1478028 25-Jan-2016 08:13
4 people support this post
Send private message

Get a static ip?



13449 posts

Uber Geek
+1 received by user: 2274

Trusted
Subscriber

  Reply # 1478032 25-Jan-2016 08:32
Send private message

NonprayingMantis: Get a static ip?

 

It doesn't bother me quite that much.





AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


 
 
 
 


16 posts

Geek
+1 received by user: 6


  Reply # 1478041 25-Jan-2016 09:02
Send private message

Configure AWS to access connections from the whole 2 subnets 123.255.xx./16 & 111.69.x.x/16 (use whois to lookup the correct subnet sizes).

 

The chances that another 2Degrees customer in those subnets is going to try to break into your AWS is very low.

 

 


6928 posts

Uber Geek
+1 received by user: 3213

Moderator
Trusted
Lifetime subscriber

  Reply # 1478045 25-Jan-2016 09:17
Send private message

Just use Amazons API to change your security groups when your IP changes w/ Cron + Linux:

 

http://www.edwiget.name/2013/11/automatically-changing-dynamic-ips-in-aws-security-group/

 

 





Michael Murphy | https://murfy.nz
Want to be with an epic ISP? Want $20 to join them too? Well, use this link to sign up to BigPipe!
The Router GuideCommunity UniFi Cloud Controller | Ubiquiti Edgerouter Tutorial




13449 posts

Uber Geek
+1 received by user: 2274

Trusted
Subscriber

  Reply # 1478048 25-Jan-2016 09:28
Send private message

BlueOwl:

 

Configure AWS to access connections from the whole 2 subnets 123.255.xx./16 & 111.69.x.x/16 (use whois to lookup the correct subnet sizes).

 

The chances that another 2Degrees customer in those subnets is going to try to break into your AWS is very low. 

 

Yes, that's true I guess, though I don't think I'll do that - I might piss off the wrong person ;)

 

 

 

michaelmurfy:

 

Just use Amazons API to change your security groups when your IP changes w/ Cron + Linux:

 

http://www.edwiget.name/2013/11/automatically-changing-dynamic-ips-in-aws-security-group/

 

Interesting solution thanks! I can't be bothered right now, plus I'm not sure I want my private key on an instance, but I might do that some time if changing IPs manually gets too annoying.





AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


6928 posts

Uber Geek
+1 received by user: 3213

Moderator
Trusted
Lifetime subscriber

  Reply # 1478167 25-Jan-2016 12:34
One person supports this post
Send private message

timmmay:

BlueOwl:


Configure AWS to access connections from the whole 2 subnets 123.255.xx./16 & 111.69.x.x/16 (use whois to lookup the correct subnet sizes).


The chances that another 2Degrees customer in those subnets is going to try to break into your AWS is very low. 


Yes, that's true I guess, though I don't think I'll do that - I might piss off the wrong person ;)


 


michaelmurfy:


Just use Amazons API to change your security groups when your IP changes w/ Cron + Linux:


http://www.edwiget.name/2013/11/automatically-changing-dynamic-ips-in-aws-security-group/


Interesting solution thanks! I can't be bothered right now, plus I'm not sure I want my private key on an instance, but I might do that some time if changing IPs manually gets too annoying.



I personally just do it via my router (an edgerouter) however if you've got a Raspberry Pi hanging around then just script it up on that.




Michael Murphy | https://murfy.nz
Want to be with an epic ISP? Want $20 to join them too? Well, use this link to sign up to BigPipe!
The Router GuideCommunity UniFi Cloud Controller | Ubiquiti Edgerouter Tutorial


IcI

552 posts

Ultimate Geek
+1 received by user: 125

Trusted

  Reply # 1479402 26-Jan-2016 22:00
One person supports this post
Send private message

I switched over to 2D at the beginning of the month.

 

 

 

This is my list of notifications that the IP address has changed. Once a day is truly ridiculous.

 

Web address 163.47.220.157 - FRITZ!Box web address          03:26
Web address 163.47.220.157 - FRITZ!Box web address          25 Jan
Web address 163.47.220.157 - FRITZ!Box web address         24 Jan
Web address 123.255.21.215 - FRITZ!Box web address          23 Jan
Web address 123.255.21.215 - FRITZ!Box web address          22 Jan
Web address 123.255.23.51 - FRITZ!Box web address          21 Jan
Web address 163.47.220.101 - FRITZ!Box web address          20 Jan
Web address 163.47.220.101 - FRITZ!Box web address          19 Jan
Web address 111.69.225.113 - FRITZ!Box web address          18 Jan
Web address 123.255.27.119 - FRITZ!Box web address          17 Jan
Web address 123.255.23.174 - FRITZ!Box web address          16 Jan
Web address 123.255.23.174 - FRITZ!Box web address          15 Jan
Web address 123.255.23.174 - FRITZ!Box web address          14 Jan
Web address 123.255.25.228 - FRITZ!Box web address          13 Jan
Web address 111.69.217.2 - FRITZ!Box web address          13 Jan
Web address 123.255.22.176 - FRITZ!Box web address          12 Jan

 

 

 

Interestingly, my IPv6 address does stay static.


778 posts

Ultimate Geek
+1 received by user: 256

Trusted

  Reply # 1479765 27-Jan-2016 12:18
One person supports this post
Send private message

My v4 address and v6 prefix only change if the PPP session renegotiates. I can reboot the modem, but the router still keeps its PPP session and just continues on from where it left off. Unless you have your equipment set to disconnect every so often, there may be something wrong with your line causing the PPP to drop, and hence IP change.

 

All of the above is assuming 2DG haven't changed the way their systems work recently.


IcI

552 posts

Ultimate Geek
+1 received by user: 125

Trusted

  Reply # 1480291 27-Jan-2016 22:58
Send private message

Lorenceo: All of the above is assuming 2DG haven't changed the way their systems work recently.

 

With my previous ISP (no FritzBox) I had less than one disconnect a week. 2D seem to be doing it daily.


UHD

538 posts

Ultimate Geek
+1 received by user: 226


  Reply # 1480297 27-Jan-2016 23:38
2 people support this post
Send private message

timmmay:

 

NonprayingMantis: Get a static ip?

 

It doesn't bother me quite that much.

 

 

 

 

/thread




13449 posts

Uber Geek
+1 received by user: 2274

Trusted
Subscriber

  Reply # 1480360 28-Jan-2016 07:06
Send private message

UHD:

 

timmmay:

 

NonprayingMantis: Get a static ip?

 

It doesn't bother me quite that much.

 

 

 /thread

 

 

 

 

That's petty and uncalled for. I was wondering if there was some setting or technique that would reduce the frequency of changing IP address. It's not significant enough to me to spend money on a static IP, but why would that mean I wasn't still interested in learning if there was some kind of configuration that reduced the frequency of this?

 

Perhaps you should think a little harder before you post.





AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


25819 posts

Uber Geek
+1 received by user: 5550

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  Reply # 1480369 28-Jan-2016 07:32
Send private message

IcI:

 

Lorenceo: All of the above is assuming 2DG haven't changed the way their systems work recently.

 

With my previous ISP (no FritzBox) I had less than one disconnect a week. 2D seem to be doing it daily.

 

 

There are a couple of options in the Fritz!box that will cause a nightly disconnect if enabled and a number of threads on here that discuss this. I'm assuming these are enabled on your router?

 

 


Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

New Zealand hits peak broadband data
Posted 18-Jan-2018 12:21


Amazon Echo devices coming to New Zealand early February 2018
Posted 18-Jan-2018 10:53


$3.74 million for new electric vehicles in New Zealand
Posted 17-Jan-2018 11:27


Nova 2i: Value, not excitement from Huawei
Posted 17-Jan-2018 09:02


Less news in Facebook News Feed revamp
Posted 15-Jan-2018 13:15


Australian Government contract awarded to Datacom Connect
Posted 11-Jan-2018 08:37


Why New Zealand needs a chief technology officer
Posted 6-Jan-2018 13:59


Amazon release Silk Browser and Firefox for Fire TV
Posted 21-Dec-2017 13:42


New Chief Technology Officer role created
Posted 19-Dec-2017 22:18


All I want for Christmas is a new EV
Posted 19-Dec-2017 19:54


How clever is this: AI will create 2.3 million jobs by 2020
Posted 19-Dec-2017 19:52


NOW to deploy SD-WAN to regional councils
Posted 19-Dec-2017 19:46


Mobile market competition issues ComCom should watch
Posted 18-Dec-2017 10:52


New Zealand government to create digital advisory group
Posted 16-Dec-2017 08:47


Australia datum changes means whole country moving 1.8 metres north-east
Posted 16-Dec-2017 08:39



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.