Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Network Helper (beta)
PostPosted: Mon Dec 08, 2014 3:31 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Network Helper

This new feature will automatically create a static networking configuration, for all of the IPv4 addresses assigned to the Linode (both public and private), and place the config onto your filesystem at boot time.

How does it work?
When enabled, each time you boot, if we can reliably determine your filesystem's distribution and version, we'll deposit a static networking configuration for all of your public and private IPs onto your filesystem. It also places a correct /etc/resolv.conf onto the filesystem.

IPv6 is not handled by this, since all Linodes get their native IPv6 address via SLAAC.

How is this helpful?
This new feature is very helpful for a number of reasons:

  • Previously, adding a public IP or a local IP required you to manually switch from a DHCP-based networking config to a static config, something that can be error-prone and frustrating to do. Network Helper does it all for you.
  • Creating a new deploy and adding a local IP required manual intervention. Now you can deploy and have static networking config right out of the box - for all of your IPs.
  • This will 'heal' a Linode's networking config if you're deploying it from a copy of another Linode that has different IPs configured on it.
  • Cloning, restoring a backup, deploying from a Linode Images template, moving a Linode from one DC to another, or if IPs are changed - on first boot the networking config will be corrected.
  • This will 'heal' a Linode's networking config if you screw it up. In fact, if enabled, this will stomp over whatever config may be on your filesystem, on each boot.

What if I edit the generated file?
If the helper is enabled, say goodbye to your changes on the next boot. We do save a copy of: 1) the original version file the first time the helper ran, and 2) the last version of the file. These are saved to /path/to/.filename-linode-{orig,last}.

If you're doing advanced networking stuff, you'll likely want to turn the network helper off.

Where do I turn this on/off?
Turn it on or off in each Configuration Profile. Under each Linode Configuration Profile (the thing you select to boot), you'll notice a new helper labeled "Auto-configure Networking". When enabled, the helper runs. When disabled, well, it doesn't.

Does the Network Helper default to ON or OFF, or what?
It defaults to OFF, for everybody. This retains existing, expected behavior. After the beta ends, NEW customers will have it default to ON. You can change the default preference under a new Account Settings tab - https://manager.linode.com/account/settings

How can I help you guys?
We could really use your testing and feedback! Turn it on, reboot, and life should be better. Let us know how it goes.

Our Network Helper beta guide is located https://www.linode.com/docs/platform/network-helper.

Thanks and enjoy!
-Chris


Top
   
PostPosted: Tue Dec 09, 2014 3:31 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Fantastic, this should simplify things for a lot of people.


Top
   
PostPosted: Thu Dec 11, 2014 11:06 am 
Offline
Senior Member

Joined: Mon Jul 05, 2010 5:13 pm
Posts: 392
What's the chance that the distro detection code could be open sourced? Seems like it would be a great thing to put out there, since it's a problem that other people are likely to run into and it'll let users contribute patches/fixes to better support more distros.

At the very least, would be cool if the criteria were listed, so that folks trying to figure out why it didn't like their system would have some things to go off of.

- Les


Top
   
PostPosted: Thu Dec 11, 2014 12:42 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Chances are very good. We discussed this earlier already, and we think it'd be a great idea to release the detection code -- but it will likely be a few weeks given all of the holiday disruptions and other stuff going on.

Thanks,
-Chris


Top
   
PostPosted: Sat Jan 17, 2015 12:08 pm 
Offline

Joined: Sat Jan 17, 2015 12:02 pm
Posts: 1
I've been using Network Helper for a few weeks, I like it very much.

Feature request: for Linodes with multiple IPs, could it be possible to give Network Helper some guidance as to what should be the default IP? I've been using one IP on my Linode for a decade. I recently added one to have a second SSL web server, and Network Manager makes the newer IP the default (...for outbound connection source IP...). This means that various hosts scattered across the Internet which have firewall rules trusting my original address now won't let me in :)

Let me know if I can provide more information or testing to help out.

Thanks,
gowen


Top
   
PostPosted: Tue Mar 17, 2015 4:27 am 
Offline
Senior Newbie

Joined: Mon Jan 14, 2013 4:18 am
Posts: 11
This is a great feature, thank you!

Have just started using it, and have not seen any problems yet.

One suggestion - it might be useful to have an option for the hostname be auto configured based on the linode label. The hostname is another one of those 'manual' jobs when cloning etc. This would work perfectly for us, but not sure how other users' linode-labels and hostnames correlate.


Top
   
PostPosted: Tue Mar 17, 2015 5:19 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
sosh wrote:
… not sure how other users' linode-labels and hostnames correlate.

For us, they don't correlate at all.

_________________
/ Peter


Top
   
PostPosted: Wed Dec 02, 2015 6:48 pm 
Offline

Joined: Wed Dec 02, 2015 6:45 pm
Posts: 1
I'm running Debian Stretch (testing) on my Linode and am having trouble with Network Manager being unable to detect my distribution. "Network Helper did not run: could not determine distribution or distribution version."

Is there a way to set the distribution manually or spoof the mechanism so that Network Manager will at least run?


Top
   
PostPosted: Thu Dec 03, 2015 8:25 pm 
Offline
Linode Staff

Joined: Mon Sep 29, 2014 4:47 pm
Posts: 90
Twitter: FelicianoTech
Not that I can think of off the top of my head. I would simply configure networking manually.

If you have one IPv4/6, you're already good to go. Otherwise:

IPv4 - https://www.linode.com/docs/networking/ ... figuration
IPv6 - https://www.linode.com/docs/networking/ ... networking


Top
   
PostPosted: Sat Dec 05, 2015 3:50 pm 
Offline
Senior Member

Joined: Sat Oct 23, 2010 12:56 pm
Posts: 73
Website: http://www.ingber.com
Location: Oregon
What constitutes "advanced networking"? I have one IPv4 and two IPv6 ranges on my Ubuntu 14.04.3 VPS. I am running OpenVPN to serve our own computers. I have a cron job that regular checks /run/resolvconf/resolv.conf , /run/resolvconf/interface/eth0.dhclient/run/dnsmasq/resolv.conf , and /var/lib/dhcp/dhclient.eth0.leases , since the nameservers keep getting reset to Linode's instead of Google's. (I have set the proper nameservers in /etc/resolvconf/resolv.conf.d , but this still gets overriden.)

What should I expect from Network Helper?

Thanks.

Lester

_________________
http://www.ingber.com


Top
   
PostPosted: Mon Dec 07, 2015 12:43 pm 
Offline
Linode Staff

Joined: Mon Sep 29, 2014 4:47 pm
Posts: 90
Twitter: FelicianoTech
Lester,

Network Helper is resetting your resolvers. Sounds like you have a handle on things so you may want to turn it off.


Top
   
PostPosted: Mon Dec 07, 2015 4:25 pm 
Offline
Senior Member

Joined: Sat Oct 23, 2010 12:56 pm
Posts: 73
Website: http://www.ingber.com
Location: Oregon
rfeliciano wrote:
Lester,

Network Helper is resetting your resolvers. Sounds like you have a handle on things so you may want to turn it off.


Hi. No, I had it off for quite a while, and I have been resetting the resolvers for quite some time.

Thanks for your reply.

Lester

_________________
http://www.ingber.com


Top
   
PostPosted: Mon Dec 07, 2015 4:28 pm 
Offline
Linode Staff

Joined: Mon Sep 29, 2014 4:47 pm
Posts: 90
Twitter: FelicianoTech
ingber wrote:
rfeliciano wrote:
Lester,

Network Helper is resetting your resolvers. Sounds like you have a handle on things so you may want to turn it off.


Hi. No, I had it off for quite a while, and I have been resetting the resolvers for quite some time.

Thanks for your reply.

Lester



Then it might be DHCP. You should be able to set the file as immutable to prevent it from being changed.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group