Ansible Installation - Ubuntu 16.04

For network automation, I believe the best tool out there right now is Ansible. Ansible is open-source, agentless, has a large community, and is easy to get started quickly. For the major networking vendors, there are already pre-built modules making it simple to interface with their equipment. This post will focus on getting Ansible up and running on a Ubuntu 16.04 server (in three steps), and following posts will show how to use Ansible to automate network configuration. ...

July 23, 2017 · 1 min · Daniel Kuchenski

Palo Alto Dynamic Block List and AWS

Palo Alto firewalls have a neat feature called “DBL” - Dynamic Block List. This feature allows the firewall to grab a list of ip addresses or domains from an http page. You have to format the web page cleanly (https://live.paloaltonetworks.com/t5/Learning-Articles/Working-with-External-Block-List-EBL-Formats-and-Limitations/ta-p/58795), but it allows you to update the web page dynamically, and the firewall will update it’s policy accordingly. For my use case, we had some new dynamic dev services being tested in AWS, with service ports that we typically don’t allow for outbound traffic. Instead of opening up our security policy to the internet (any destination), I used a DBL to open up the ports to AWS ip addresses only. ...

June 28, 2017 · 2 min · Daniel Kuchenski

ADFS MFA with Office 365

We wanted to implement MFA (multi-factor authentication) for our ADFS servers when authenticating to Office 365. If you just want basic “MFA for all users” then the AD FS GUI will allow you to select your MFA provider and enable. I needed a more granular policy: Only enable MFA if the user is a member of a specific security group AND the user is coming from outside the corporate network AND it is a browser based authentication request ...

May 27, 2017 · 3 min · Daniel Kuchenski

Cisco CSR License Install

Found a great blog post on installing a demo license on the CSR router (http://www.burningnode.com/2016/02/08/the-csr1000v-license-and-the-100kbps/), but I came across one additional (and important step below). TL;DR - Make sure to accept the end user agreement and SAVE before reloading! ip-10-128-228-209#reload % Unfortunately EULA is not detected for following feature/features: % security % Please configure 'license accept end user agreement' and % use 'write' command to ensure license configurations take effect % Continue reload will cause functionality loss for above feature/features. Continue to reload? (yes/[no]): no ip-10-128-228-209# conf t ip-10-128-228-209(config)#license accept end user agreement PLEASE READ THE FOLLOWING TERMS CAREFULLY. INSTALLING THE LICENSE OR LICENSE KEY PROVIDED FOR ANY CISCO PRODUCT FEATURE OR USING SUCH PRODUCT FEATURE CONSTITUTES YOUR FULL ACCEPTANCE OF THE FOLLOWING TERMS. YOU MUST NOT PROCEED FURTHER IF YOU ARE NOT WILLING TO BE BOUND BY ALL THE TERMS SET FORTH HEREIN. Use of this product feature requires an additional license from Cisco, together with an additional payment. You may use this product feature on an evaluation basis, without payment to Cisco, for 60 days. Your use of the product, including during the 60 day evaluation period, is subject to the Cisco end user license agreement http://www.cisco.com/en/US/docs/general/warranty/English/EU1KEN_.html If you use the product feature beyond the 60 day evaluation period, you must submit the appropriate payment to Cisco for the license. After the 60 day evaluation period, your use of the product feature will be governed solely by the Cisco end user license agreement (link above), together with any supplements relating to such product feature. The above applies even if the evaluation license is not automatically terminated and you do not receive any notice of the expiration of the evaluation period. It is your responsibility to determine when the evaluation period is complete and you are required to make payment to Cisco for your use of the product feature beyond the evaluation period. Your acceptance of this agreement for the software features on one product shall be deemed your acceptance with respect to all such software on all Cisco products you purchase which includes the same software. (The foregoing notwithstanding, you must purchase a license for each software feature you use past the 60 days evaluation period, so that if you enable a software feature on 1000 devices, you must purchase 1000 licenses for use past the 60 day evaluation period.) Activation of the software command line interface will be evidence of your acceptance of this agreement. ACCEPT? (yes/[no]): yes ip-10-128-228-209(config)#exit ip-10-128-228-209#wr Building configuration... [OK] ip-10-128-228-209#reload Proceed with reload? [confirm] If you have purchased a BYOL license and are using the same license level, the migration path would be: ...

May 17, 2017 · 3 min · Daniel Kuchenski

Copy File to IOS Router via SCP

Enable SCP on the Cisco router: cisco-csr(config)#ip scp server enable Copy file from linux server to router with the following syntax: scp filename [email protected]:flash:/filename

April 19, 2017 · 1 min · Daniel Kuchenski

ADFS Sign-In Page Customization

If you use ADFS as your primary IdP, you may have noticed that before your users sign in, they have the option to pick the Relying Party they want to sign into under the “Sign in to one of the following sites” radio button. If ADFS is accessible from the internet (which it mostly likely is if you are using Office 365), this is a giant security concern, as it gives an attacker a view into all the external applications your employees use. With the prevalence of credential phishing and social engineering, you want to limit the information an attacker has about the resources your company uses. ...

April 14, 2017 · 2 min · Daniel Kuchenski

IPv6 Cisco Deployment

I recently deployed a small IPv6 network to support our developers meeting Apple’s IPv6 compatibility requirements (https://developer.apple.com/support/ipv6/). This was a good experience to get my feet wet with IPv6 as we have plans to dual-stack our environment in the coming year. Here are my notes: Since this is a test/dev network, I decided to get a /48 IPv6 block from my internet provider. They routed the /48 to me via a /126 link to my Cisco ASR. If you are using vrf’s on your router, make sure the vrf supports the IPv6 address family: ...

April 6, 2017 · 2 min · Daniel Kuchenski

IPv6 Design

I’m very comfortable developing an IPv4 address plan that accounts for summarization and ease of use. There are new design rules for IPv6, which I am posting here (will update this page as I go): General Rules to Follow: Allocate every site a /48 block Allocate each vlan in the site a /64 (from the above /48) P2P links can either be a /64 or /126 - depends if you want to keep it simple or conserve address space You don’t need to use NAT, assign global addresses to endpoints. Use security zones on your firewall for security Address assignment via SLAAC or DHCPv6 - Android only supports SLAAC If you use SLAAC, you must depend on RA for gateway and DNS server assignment I deployed SLAAC which works well so far As always, these design rules may not apply to your environment, but they should help with your first deployment.

April 6, 2017 · 1 min · Daniel Kuchenski

Windows DHCP not Updating DNS

Our 2012R2 DC’s do DHCP and DNS for our environment, but I found that our client’s DNS addresses were frequently incorrect, even though DHCP is supposed to update DNS with the correct entry. Found this blog post that solved our problems: http://blogs.msmvps.com/acefekay/2009/08/20/dhcp-dynamic-dns-updates-scavenging-static-entries-amp-timestamps-and-the-dnsproxyupdate-group/ Note: If you are unsure about running the dnscmd shown in the blog post, I found the commands to verify the setting before you change it, and how to revert: ...

February 6, 2017 · 1 min · Daniel Kuchenski

vCenter No Longer Reachable

After a power outage, we powered on our VMware infrastructure, and as we went through the process, we quickly realized that vCenter was not coming back online. vCenter was not reachable via icmp or http/https. Logging into the ESXi console showed the VCSA booting very slowly, but eventually it booted up. Still no network connectivity. After enabling bash and doing an “ifconfig”, I noticed the eth0 interface was missing. The “ip link show” confirmed that the VM did not recognize any eth0 devices, but it did pick up an eth1 device. For some reason, the vnic mac address had changed, and vCenter added the nic as a new device. To resolve this: ...

June 4, 2016 · 1 min · Daniel Kuchenski

WebEx and ADFS

Implemented WebEx with ADFS 3.0 (Windows 2012R2), and found these articles helpful: https://cisco-support.webex.com/guest/articles/en_US/Usability_FAQs/WBX63102/myr=false https://digitalglue.wordpress.com/2014/02/11/configuring-cisco-webex-meeting-server-to-work-with-adfs-2-0/ But those guides do not go over configuring the sign-out process. By default, when a user sign’s out of WebEx, they are not signed out of their SSO session. This can be accomplished with the WSFederation sign-out URL: http://social.technet.microsoft.com/wiki/contents/articles/1439.ad-fs-how-to-invoke-a-ws-federation-sign-out.aspx To get this working, follow these steps on your ADFS server: Go to AD FS Manager -> Trust Relationships -> Relying Party Trusts -> WebEx -> Properties Under the Endpoints tab, click “Add SAML…” Endpoint Type = SAML Logout, Binding = POST, Trusted URL = https://adfsservername.domainname.com/adfs/ls/?wa=wsignout1.0

April 26, 2016 · 1 min · Daniel Kuchenski

Office 365 - Powershell

Connecting to Office 365 via Powershell for the first time? Here are the steps to get started: Install the Microsoft Online Services Sign-In Assistant for IT Professionals RTW Install the Azure Active Directory Module for Windows Powershell (64-bit version) Open Powershell and run this command the first time you connect on your computer: Set-ExecutionPolicy RemoteSigned Next, run these three commands (you’ll do this everytime you want to connect): $UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection Import-PSSession $Session You should now be connected. When finished, run: Remove-PSSession $Session Update: Here is an awesome project on github that is a Office 365 Powershell GUI: https://github.com/bwya77/O365-Administration-Center ...

April 12, 2016 · 1 min · Daniel Kuchenski

The Unspoken Truth About Managing Geeks

Interesting article on IT culture, definitely worth a read: http://www.computerworld.com/article/2527153/it-management/opinion--the-unspoken-truth-about-managing-geeks.html

February 24, 2016 · 1 min · Daniel Kuchenski

CUCM IM change postgres external database

If you need to change the postgres external database for CUCM, there a few steps to follow: Change database server name a. External server setup -> External databases Unassign servers and disable persistent chat a. Messaging -> Group Chat and Persistent Chat b. Change “Persistant Chat Database Assigntment” to unsassigned c. Uncheck “Enable Persistant Chat” and Save Assign servers and enable persistent chat a. Messaging -> Group Chat and Persistent Chat b. Change “Persistant Chat Database Assigntment” to assigned c. Check “Enable Persistant Chat” and Save Restart Cisco XCP Router Start XCP Text Conference Manager This blog post helped figure out the process: http://collabtechnotes.blogspot.com/2015/07/postgre-sql-cisco-xcp-message-archiver.html

February 24, 2016 · 1 min · Daniel Kuchenski

ASR 1001-X Show Transceiver

On our new ASR I was looking for a command similar to show interface 1/0/1 transceiver, but that didn’t exist. Here are the commands I found relevant to the ASR: To show transceiver hardware details: #show hw-module interface g0/0/1 transceiver idprom To show transceiver temp and light levels: #show hw-module interface g0/0/1 transceiver status

February 4, 2016 · 1 min · Daniel Kuchenski