Skip to main content

Building RANCID Server from Scratch

This document outlines how to build RANCID from Scratch, using the name of switch1 and ip of 192.168.3.10, and rostring of community1

1. Install Ubuntu 16.04
2. sudo apt-get install rancid cvs
3. sudo su
4. nano /etc/rancid/rancid.conf

Append:
LIST_OF_GROUPS="switches"

5. sudo su -c /var/lib/rancid/bin/rancid-cvs -s /bin/bash -l rancid
6. nano /var/lib/rancid/switches/router.db

Append:

switch1;cisco;up

7. Modify /etc/hosts

Append:

192.168.3.10 switch1

8. Create .cloginrc file @ /var/lib/rancid/switches

add method {ssh}
add cypertype {3des}
add user {useracc}
add password {enable-password} {enable-password}
add autoenable


9. Modify permissions on the following files:

/var/lib/rancid# chmod a-r .cloginrc
/var/lib/rancid# chmod u+r .cloginrc
/var/lib/rancid# chown rancid .cloginrc
/var/lib/rancid# chgrp rancid .cloginrc

10. This will run the actual rancid command
sudo su -c /var/lib/rancid/bin/rancid-run -s /bin/bash -l rancid

11. This will add it to Crontab for nightly:
crontab -e
/0 0 * * * /usr/bin/rancid-run

12. Perform the following if you get weird errors about encryption:

sudo su rancid
cd ~/
mkdir .ssh
cd .ssh
nano config

"KexAlgorithms +diffie-hellman-group1-sha1" 


13. Install snmpd 
 sudo apt-get install snmpd
sudo mv snmpd.conf snmpd.conf.old
sudo nano snmpd.conf

rocommunity community1

 
 

Comments

Popular posts from this blog

How to setup a Host-Check for Fortigate SSL VPN

This document outlines how to setup a host-check for a Fortigate SSL VPN (Web only): config vpn ssl web portal edit "portalname" set web-mode enable set host-check custom set host-check-policy "Microsoft-Windows-Firewall" set os-check-enable set ip-pools "PoolName" set split-tunneling disable set page-layout double-column set theme orange config os-check-list "windows-7" set action check-up-to-date set latest-patch-level 1 end  config vpn ssl web host-check-software edit "Microsoft-Windows-Firewall" config check-item-list edit 1 set target "HKLM\\SYSTEM\\CurrentControlSet\\Services\\SharedAccess\\Parameters\\FirewallPolicy\\StandardProfile:EnableFirewall==1" set type registry next edit 2 set target "HKLM\\SYSTEM\\CurrentControlSet\\Services\\SharedAccess\\Parameters\\FirewallPolicy\\PublicProfile:EnableFirewall==1" set type registry next edit 3 set target "HKLM\\SYSTEM\\CurrentControlSet\\S...

Implementing 802.1X - Windows 2012R2 + Cisco 4500 Switches

Implementing 802.1X Using Windows Server 2012R2 & Cisco 4500 Series Switches Overview: This document is to outline how the configuration between Windows Server 2012 R2’s NPS Services and Cisco 4500 Series switches has been implemented. High Level Diagram:   Requirements: Windows Server 2012 R2 with NPS Server installed Windows Server 2012 R2 with CA Services Windows AD Environment Cisco 4500 Series Switches Windows 7-10 Clients to connect NPS Configuration: 1. This assumes the above requirement that the NPS Service has already been installed on Windows Server 2012 R2 2. Disable all existing Policies under Connection Request Policies and Network Policies as you will be making your own, except one that states “Catch All” with the below parameters: 3. You will then need to add in a new Radius Client to have Policies built around. Friendly Name will be used going forward for the Policies for referencing the document. 4. Once completed...

Fortigate to USG B2B

Building Site-to-Site B2B from Unifi USG to Fortigate (500D or other models) Fortigate Configuration 1. Build a New VPN Tunnel using Custom VPN Tunnel (No Template) 2. Under Network, point to the Public Side IP of the USG (Public IP, not WAN interface) 3. Leave everything else default (NAT-T Enabled, DPD Disabled..ect) 4. Authentication, use PSK and IKEv1 with Main 5. Phase 1 Purposal, set algorithms to AES128 and SHA1, with DH 14. 6. Phase 2 Purposal, set Local Address and Remote address to 0.0.0.0/0.0.0.0 and 0.0.0.0/0.0.0.0 respectively. 7. Set Encryption to AES128/Sha1, Replay Detection and PFS enabled, along with DH14. Enable Autokey Keep Alive, and Auto-Negotiate, and save changes. 8. Build a Static Route pointing to the Far-End Destination/Segment you want to reach. 9. Build a Policy Stating which Segments can hit the Far-End Destination/B2B USG Configuration 1. This is assuming that USG is already registered to the Unifi Controller. 2. Go t...