The Network Stack

Practical network tips, design and code

AWS Session Manager - Zero Trust Access

When working with AWS, there are plenty of features that make your life easier, but it’s rare to find a feature that feels like magic… Before we dive into the magic, what’s the problem we’re trying to solve? When working with servers anywhere, usually there needs to be some sort of remote access to SSH or RDP and install/troubleshoot things as needed. Worst case, your server has a public IP with port 22 (SSH) open to the world, which means theoretically anyone, anywhere in the world could break in. As you get more advanced, you set up VPN tunnels or bastion hosts to secure your remote access. This can increase in complexity very quickly with multiple VPCs across multiple regions, multiplied by each AWS account. And with the rise in “Zero Trust” networking, how do you securely provide access without blindly trusting network CIDRs? ...

March 16, 2020 · 5 min · Daniel Kuchenski

AWS Transit Gateway

At re:Invent 2018, AWS announced the Transit Gateway, finally giving us a native solution to provide scalable transit connectivity. Here’s how it works and how to configure flat and isolated routing.

November 30, 2018 · 5 min · Daniel Kuchenski

AWS Certified Advanced Networking in 20 Days

Can the AWS Certified Advanced Networking Specialty exam be legitimately passed with only a few weeks of studying? Yes. Is there a secret shortcut? No. Although there is no shortcut, I will discuss my previous experience, study materials, and general impressions of the exam. If you have already been working with AWS networking, and are wondering what it takes to be certified, this post should give you a pretty good idea. Regarding my timeline, I passed the AWS Certified Solutions Architect Associate exam on October 18, 2018, and then passed the AWS Certified Advanced Networking Specialty exam twenty days later on November 7, 2018. ...

November 12, 2018 · 4 min · Daniel Kuchenski

Ansible 2.5 - New Network Modules

Ansible 2.5 adds new network modules and the network_cli connection. Here’s my VLAN provisioning playbook converted to the new syntax.

March 26, 2018 · 3 min · Daniel Kuchenski

Optimize Ruckus Configuration - Part 2

My current Ruckus ZoneDirector optimizations for a dense, multi-story WiFi environment: system-wide, AP-specific and WLAN-specific settings.

February 19, 2018 · 2 min · Daniel Kuchenski

AWS - CloudFormation - Create VPC

A CloudFormation template that builds a VPC with public and private subnets across three AZs, NAT Gateways, an Internet Gateway and a VPN Gateway, so you don’t have to click through it for every environment and region.

January 27, 2018 · 6 min · Daniel Kuchenski

Ansible - BadHostKeyException

When executing an Ansible playbook, you may get the following error: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: paramiko.BadHostKeyException: Host key for server switch-name does not match! This usually happens after you rename a network device and generate new RSA keys. If you use DNS names in Ansible, also check that the device name resolves to the correct IP from your Ansible server. To fix the issue, remove the old key associated with the network device throwing the error from your known_hosts file. ...

January 27, 2018 · 1 min · Daniel Kuchenski

Pluribus Networks - Whitebox Fabric #NFD16

On day two of Networking Field Day, Pluribus Networks gave us a rundown on what is possible with their Netvisor OS, whitebox hardware, and a distributed architecture. I was impressed with the flexibility of the solution, but like any design choice, there are some limitations to be aware of. As a relative newcomer to the Pluribus world, I wanted to know what Pluribus was made of. The answer? Whitebox (or Pluribus branded) switch hardware Layer 3 connectivity between switches Pluribus Netvisor Operating System Hardware Most switch hardware is now pretty generic, so Pluribus gives you the choice to run Dell, D-Link, Edge-Core or Pluribus hardware, which means the magic is really in the software. I’m not going to spend time going over hardware options (archived), because with those choices, you should be able to easily find an option that fits your price/performance needs - that’s the beauty of whitebox. ...

November 3, 2017 · 5 min · Daniel Kuchenski

Troubleshooting Disk Space Usage

A couple of years ago, my coworker wrote a great post on finding disk space issues in Linux and how to resolve them. It helped me out this weekend when a critical server was having issues, so I wanted to share it here: Diagnosing Linux disk usage (archived) Quick reference Show filesystem usage: df -h Show all files/directories consuming space: du -kx / | sort -nr | more Show the size of each directory in the current location: ...

October 16, 2017 · 1 min · Daniel Kuchenski

Ansible - VLAN Provisioning

Getting started with Ansible for network automation: build an inventory, then a playbook that provisions a VLAN across your Cisco switches.

October 11, 2017 · 5 min · Daniel Kuchenski

Cisco Config Basics - User Port

This is my first post in a series I’m calling Cisco Config Basics. These posts will serve as a reference for anyone new to Cisco, or those of you just looking to compare your current configs. After the full config, I will explain each config item line-by-line. In a campus network, the User Port has a lot riding on it - vlan config, security controls, DHCP protection, PoE settings…not to mention new IPv6 policy that is needed even if you’re not running IPv6 in your network! As promised I will give the full config first, then explain everything: ...

September 29, 2017 · 8 min · Daniel Kuchenski

Veriflow - The Formal Future #NFD16

Formal verification. Two words unfamiliar to me before Networking Field Day. To provide a brief summary, formal verification uses mathematical proofs to verify a system is working as designed – the same process used to create hacker-proof code. Veriflow has taken this method and applied it to networking to verify the intended design or operation of the network. But what does this actually mean to us as network operators? Instead of monitoring isolated metrics like an interfaces’ utilization, we can monitor the intent of the entire network as a whole, including security policies. As a practical example, you can write policy that says: ...

September 20, 2017 · 4 min · Daniel Kuchenski

SSH with Duo MFA and Active Directory

Duo has thorough documentation for adding MFA to your SSH sessions, but there are a couple of additional steps needed to also integrate with Active Directory. This post will go through the installation for both Duo and Active Directory for Ubuntu 16.04. For other Linux distros, the Duo documentation linked above has you covered. System components Ubuntu 16.04 server Duo MFA account Duo Unix package Centrify Express for Active Directory integration Duo installation Install the OpenSSL and PAM development headers: ...

August 30, 2017 · 3 min · Daniel Kuchenski

The Half Rack Datacenter

How to fit 2M network routes, 1 PB of storage, and over 1000 VMs in a half rack, with redundancy.

August 22, 2017 · 4 min · Daniel Kuchenski

Active Directory Powershell

Using this page to keep track of all the useful powershell “mini-scripts” I’ve used: Copy users from one security group to another security group Add-ADGroupMember -Identity destination-group-name -Members (Get-ADGroupMember -Identity source-group-name -Recursive) Add enabled users from an OU to a security group Get-ADUser -SearchBase 'OU=Your-OU,DC=corp,DC=company,DC=com' -Filter {Enabled -eq $true} | ForEach-Object {Add-ADGroupMember -Identity 'your-group-name' -Members $_ } Add users from a CSV file to a security group (username column is called “name”) ...

August 4, 2017 · 1 min · Daniel Kuchenski