Archive

Category Archives for "Networking"

Introducing Cf-Terraforming

Ever since we implemented support for configuring Cloudflare via Terraform, we’ve been steadily expanding the set of features and services you can manage via this popular open-source tool.

If you're unfamiliar with how Terraform works with Cloudflare, check out our developer docs.

We are Terraform users ourselves, and we believe in the stability and reproducibility that can be achieved by defining your infrastructure as code.

What is Terraform?

Terraform is an open-source tool that allows you to describe your infrastructure and cloud services (think virtual machines, servers, databases, network configurations, Cloudflare API resources, and more) as human-readable configurations.

Once you’ve done this, you can run the Terraform command-line tool and it will figure out the difference between your desired state and your current state, and make the API calls in the background necessary to reconcile the two.

Unlike other solutions, Terraform does not require you to run software on your hosts, and instead of spending time manually configuring machines, creating DNS records, and specifying Page Rules, you can simply run:

terraform apply

and the state described in your configuration files will be built for you.

Enter Cloudflare Terraforming

Terraform is a tremendous time-saver once you have your configuration files Continue reading

SEO Best Practices with Cloudflare Workers, Part 2: Implementing Subdomains

Recap

SEO Best Practices with Cloudflare Workers, Part 2: Implementing Subdomains

In Part 1, the merits and tradeoffs of subdirectories and subdomains were discussed.  The subdirectory strategy is typically superior to subdomains because subdomains suffer from keyword and backlink dilution.  The subdirectory strategy more effectively boosts a site's search rankings by ensuring that every keyword is attributed to the root domain instead of diluting across subdomains.

Subdirectory Strategy without the NGINX

In the first part, our friend Bob set up a hosted Ghost blog at bobtopia.coolghosthost.com that he connected to blog.bobtopia.com using a CNAME DNS record.  But what if he wanted his blog to live at bobtopia.com/blog to gain the SEO advantages of subdirectories?

A reverse proxy like NGINX is normally needed to route traffic from subdirectories to remotely hosted services.  We'll demonstrate how to implement the subdirectory strategy with Cloudflare Workers and eliminate our dependency on NGINX. (Cloudflare Workers are serverless functions that run on the Cloudflare global network.)

Back to Bobtopia

Let's write a Worker that proxies traffic from a subdirectory – bobtopia.com/blog – to a remotely hosted platform – bobtopia.coolghosthost.com.  This means that if I go to bobtopia.com/blog, I should see the content of Continue reading

SEO Best Practices with Cloudflare Workers, Part 1: Subdomain vs. Subdirectory

Subdomain vs. Subdirectory: 2 Different SEO Strategies

SEO Best Practices with Cloudflare Workers, Part 1: Subdomain vs. Subdirectory

Alice and Bob are budding blogger buddies who met up at a meetup and purchased some root domains to start writing.  Alice bought aliceblogs.com and Bob scooped up bobtopia.com.

Alice and Bob decided against WordPress because its what their parents use and purchased subscriptions to a popular cloud-based Ghost blogging platform instead.

Bob decides his blog should live at at blog.bobtopia.com – a subdomain of bobtopia.com. Alice keeps it old school and builds hers at aliceblogs.com/blog – a subdirectory of aliceblogs.com.

SEO Best Practices with Cloudflare Workers, Part 1: Subdomain vs. Subdirectory

Subdomains and subdirectories are different strategies for instrumenting root domains with new features (think a blog or a storefront).  Alice and Bob chose their strategies on a whim, but which strategy is technically better?  The short answer is, it depends. But the long answer can actually improve your SEO.  In this article, we'll review the merits and tradeoffs of each. In Part 2, we'll show you how to convert subdomains to subdirectories using Cloudflare Workers.

Setting Up Subdomains and Subdirectories

Setting up subdirectories is trivial on basic websites.  A web server treats its subdirectories (aka subfolders) the same as regular old folders in a Continue reading

SSH to all of the serial ports

This is just a quick-and-dirty script for logging into every serial port on an Opengear box, one in each tab of a MacOS terminal.

Used it just recently because I couldn't remember where a device console was connected.

Don't change mouse focus while it's running: It'll wind up dumping keystrokes into the wrong window.

for i in $(seq 48)
do
  port=$(expr 3000 + $i)
  sshcmd="ssh -p $port terminalserver"
  osascript \
    -e 'tell application "Terminal" to activate' \
    -e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down' \
    -e "tell application \"System Events\" to tell process \"Terminal\" to keystroke \"$sshcmd\"" \
    -e "tell application \"System Events\" to tell process \"Terminal\" to key code 36"
done


Leaving it here in case somebody (probably me) finds it useful in the future.

Heavy Networking 430: The Future Of Networking With Guido Appenzeller

Today in our Future of Networking series I speak with Guido Appenzeller. He's been deeply involved in SDN and held key roles at Big Switch Networks and VMware, and now a new job at Yubico. We talk about the role of public cloud in IT, where the industry is with the adoption of "software-defined," the rise of whitebox, the P4 programming language, and more.

The post Heavy Networking 430: The Future Of Networking With Guido Appenzeller appeared first on Packet Pushers.

Loop Avoidance in VXLAN Networks

Antonio Boj sent me this interesting challenge:

Is there any way to avoid, prevent or at least mitigate bridging loops when using VXLAN with EVPN? Spanning-tree is not supported when using VXLAN encapsulation so I was hoping to use EVPN duplicate MAC detection.

MAC move dampening (or anything similar) doesn’t help if you have a forwarding loop. You might be able to use it to identify there’s a loop, but that’s it… and while you’re doing that your network is melting down.

Read more ...

Kernel of Truth season 2 episode 1: EVPN on the host

Subscribe to Kernel of Truth on iTunes, Google Play, SpotifyCast Box and Sticher!

Click here for our previous episode.

Guess who’s back? Back again? The real Kernel of Truth podcast is back with season 2 and we’re starting off this season with all things EVPN! This topic is near and dear to Attilla de Groots’ heart having talked about it in his recent blog here. He now joins Atul Patel and our host Brian O’Sullivan to talk more about EVPN on host for multi-tenancy.

Join as we as discuss the problem that we’re solving for, how to deploy EVPN on the host, what the caveats are when deploying and more.

Guest Bios

Brian O’Sullivan: Brian currently heads Product Management for Cumulus Linux. For 15 or so years he’s held software Product Management positions at Juniper Networks as well as other smaller companies. Once he saw the change that was happening in the networking space, he decided to join Cumulus Networks to be a part of the open networking innovation. When not working, Brian is a voracious reader and has held a variety of jobs, including bartending in three countries and working as an extra in a German Continue reading

Solving Problems with Serverless – The Cloudflare LED Data Center Board, Part I

Solving Problems with Serverless – The Cloudflare LED Data Center Board, Part I

You know you have a cool job when your first project lets you bring your hobby into the office.

That’s what happened to me just a few short weeks ago when I joined Cloudflare. The task: to create a light-up version of our Data Center map – we’re talking more than a hundred LEDs tied to the deployment state of each and every Cloudflare data center. This map will be a part of our booths, so it has to be able to travel; meaning we have to consider physical shipping and the ability to update the data when the map is away from the office. And the fun part – we are debuting it at SF Developer Week in late February (I even get to give a talk about it!) That gave me one week of software time in our San Francisco office, and a little over two and a half in the Austin office with the physical materials.

Solving Problems with Serverless – The Cloudflare LED Data Center Board, Part I
What the final LEDs will look like on a map of the world.

So what does this have to do with Serverless? Well, let’s think about where and how this map will need to operate: This will be going to Continue reading

Vapor IO heads new edge computing alliance

Edge computing container specialist Vapor IO has organized the Kinetic Edge Alliance, a group of hardware, software and networking companies that plan to collaborate on accelerating the integration edge solutions.The list of partners includes Federated Wireless, Linode, MobiledgeX, Packet, StackPath, Alef Mobitech, Detecon International, Hitachi Vantara, New Continuum Data Centers, Pluribus Networks, and Seagate Technology.The Alliance plans to target the top 30 U.S. metro markets with its products, which cover nearly 50 percent of the U.S. population. So far, Vapor IO has begun rollouts in Chicago but plans for five more cities this year: Chicago, Pittsburgh, Atlanta, Dallas, Los Angeles, and Seattle.To read this article in full, please click here

Vapor IO heads new edge computing alliance

Edge computing container specialist Vapor IO has organized the Kinetic Edge Alliance, a group of hardware, software and networking companies that plan to collaborate on accelerating the integration edge solutions.The list of partners includes Federated Wireless, Linode, MobiledgeX, Packet, StackPath, Alef Mobitech, Detecon International, Hitachi Vantara, New Continuum Data Centers, Pluribus Networks, and Seagate Technology.The Alliance plans to target the top 30 U.S. metro markets with its products, which cover nearly 50 percent of the U.S. population. So far, Vapor IO has begun rollouts in Chicago but plans for five more cities this year: Chicago, Pittsburgh, Atlanta, Dallas, Los Angeles, and Seattle.To read this article in full, please click here

Vapor IO heads new edge computing alliance

Edge computing container specialist Vapor IO has organized the Kinetic Edge Alliance, a group of hardware, software and networking companies that plan to collaborate on accelerating the integration edge solutions.The list of partners includes Federated Wireless, Linode, MobiledgeX, Packet, StackPath, Alef Mobitech, Detecon International, Hitachi Vantara, New Continuum Data Centers, Pluribus Networks, and Seagate Technology.The Alliance plans to target the top 30 U.S. metro markets with its products, which cover nearly 50 percent of the U.S. population. So far, Vapor IO has begun rollouts in Chicago but plans for five more cities this year: Chicago, Pittsburgh, Atlanta, Dallas, Los Angeles, and Seattle.To read this article in full, please click here