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 setup VPN tunnels or bastion hosts to secure your remote access. This can increase in complexity very quickly with multiple VPC’s across multiple regions, multipied by each AWS account. And with the rise in “Zero Trust” networking, how do you securely provide access without blindly trusting network CIDR’s? ...

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. After attending sessions and deploying Transit Gateway, I wanted to dive into the solution and see what is possible. Tech Specs In case you haven’t read the official docs, the AWS Transit Gateway is a regional layer3 router connecting VPC, VPN, Direct Connect (soon) across multiple accounts, with support for multiple route tables (VRFs). The Transit Gateway (TGW) has much higher scalability limits than VPC peering. ...

November 30, 2018 · 5 min · Daniel Kuchenski

AWS Certified Advanced Networking in 20 Days

Can the AWS Certified Advanced Networking Specialty exam be legitemately 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 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 10/18/18, and then passed the AWS Certified Advanced Networking Specialty exam twenty days later on 11/7/18. \ ...

November 12, 2018 · 4 min · Daniel Kuchenski

Ansible 2.5 - New Network Modules

Ansible 2.5 just came out, and with it comes new network modules (and the network_cli and netconf connectivity methods). The new modules allow us to manage certain IOS configurations without always depending on the “ios_config” module, while the network_cli connectivity method means we don’t always need to configure a “provider” for every network playbook. These new modules and connectivity methods allow networking configuration management to look and feel similar to our server management playbooks, which is great for cross-functional teams and reusability. ...

March 26, 2018 · 3 min · Daniel Kuchenski

Optimize Ruckus Configuration - Part 2

A couple years ago I posted how to Optimize Ruckus Configuration, and since then I’ve been continually tweaking so that my dense, multi-story WiFi environment performs well with Windows, Mac OSX, and mobile devices. Here are my current optimizations: Note: This is based on Ruckus ZoneDirector 10.0.1.0 build 44 System Wide: Channel Optimization: Optimize for Performance. This enables all the 5GHz channels, which is especially useful in a dense environment. Self-Healing: Automatically adjust 2.4Ghz and 5Ghz channels using Background scanning (I found ChannelFly too busy) Background Scanning: Run a background scan every 3600 seconds. The default is too short, causing unnecessary channel changes. AP Specific: ...

February 19, 2018 · 2 min · Daniel Kuchenski

AWS - CloudFormation - Create VPC

If you have worked with AWS networking, you know there is a laundry list of items that need to be initally configured so the environment is ready for use: VPC Internet Gateway VPN Gateway Public Subnets Private Subnets Public Route Tables Private Route Tables NAT Gateways and more depending on your environment Since AWS is a software defined cloud datacenter, you will get more and more requests for a Prod environment, then Dev environment, then QA environment, then DevOps environment, etc…but wait, this also needs to be done in every region! Instead of spending your time pointing and clicking your way through the AWS GUI, Amazon has provided an infrastructure automation solution called CloudFormation. CloudFormation uses the AWS API’s to automate the provisioning of AWS resources, and its very simple to use. ...

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 probably happened after you changed the name of your network device, and generated new RSA keys. Or, if you are using DNS device names in ansible, resolve the name of your network device from your ansible server and verify the DNS resolution is correct. To fix the issue, edit your “known_hosts” file and remove the key associated with the network device throwing the error: ...

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, 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 years ago, my coworker wrote a great post on finding disk space issues in Linux and how to resolve them. Helped me out this weekend when a critical server was having issues, so wanted to post it here: http://www.randomlyexpressed.com/diagnosing-linux-disk-usage/ For future reference (after reading the post above) Show filesystem usage: ~$ df -h Show all files/directories consuming space: ~$ du -kx / | sort -nr | more Show directories in current location: ...

October 16, 2017 · 1 min · Daniel Kuchenski

Ansible - VLAN Provisioning

Note: There is a newer guide for VLAN provisioning with Ansible 2.5 Ansible is such a powerfull tool that it can be easy to get lost in all the possibilities. Running your “network infrastructure as code” with full configs auto-generated and checked into git is the dream, but we can start simple with automating time-consuming tasks. This post will focus on getting ansible up and running with a playbook to configure new vlans across your 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 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 Centify Express for Active Directory integration \ Duo Installation: Install OpenSSL development headers and libraries: ...

August 30, 2017 · 3 min · Daniel Kuchenski

The Half Rack Datacenter

A couple years ago, Ivan Pepelnjak wrote an interesting blog showing how all you need are two top-of-rack switches. Iwan Rahabok followed up on the systems side, with the perspective that 1000 VM per rack is the new minimum. Now in mid 2017, I’d like to show you how we can fit 2M network routes, 1PB of storage, and over 1000 VM’s in a half rack. Don’t worry, I included redundancy as well. ...

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