Cam Manager under Debian Like

After my latest install, i discover the WebCam can’t be disable except in CLI. I have write a small Python program, to have a graphical “action” instead load/unload the module from the command line.

You can use/fork/update. The project is available on GitHub.

FreeRadius and Dnsmasq

I use DNSmasq to manage my local DHCP/DNS server, but unfortunatly there is no plugin’s or wrapper for FreeRadius. I have coded a quick and dirty Python program to do this:

  • Generate an authorize file
  • Generate and authorized_macs file (no more require with my settings)

My next step is use the “tag” with the “set:” section from dnsmasq for mark the vlan ID (for exemple set:vlan10).this code is also available on GitHub.

After launching the script, copy the authorize_conf file in the files folder in the freeradius 3.0 directory.

i use the $INCLUDE value in the default.conf for include it.

802.1x / MAB / N-Series

Fichier FreeRadius

C42C031E79AC    User-Password = "C42C031E79AC"
Tunnel-Type = "VLAN",
Tunnel-Medium-Type = "IEEE-802",
Tunnel-Private-Group-ID = "10",
Auth-Type := local
"demo"  Cleartext-Password := "demo"
Tunnel-Type = "VLAN",
Tunnel-Medium-Type = "IEEE-802",
Tunnel-Private-Group-ID = "1",
Auth-Type := local
d8a25e91ab06    User-Password = "d8a25e91ab06"
Auth-Type := local
DEFAULT Auth-Type := Reject
Reply-Message = "USERS.8021x - REJECT"


FRR Install from Github

The goal is install FRR under a Raspian Distro

Here, each step to download and install FRR.

Source: http://docs.frrouting.org/en/latest/installation.html

git clone https://github.com/FRRouting/frr.git

Here my script running througt a cron.

#!/bin/bash

#Changement de repository
cd /home/pi/gitclone/frr
# update du Git
git pull

# Build de l'Autoconf
./bootstrap.sh

#Processing du build
./configure --enable-exampledir=/usr/share/doc/frr/examples/ --localstatedir=/var/run/frr --sbindir=/usr/lib/frr --sysconfdir=/etc/frr --enable-vtysh --enable-isisd --enable-pimd --enable-watchfrr --enable-ospfclient=yes --enable-ospfapi=yes --enable-multipath=64 --enable-user=frr --enable-group=frr --enable-vty-group=frrvty --enable-configfile-mask=0640 --enable-logfile-mask=0640 --enable-rtadv --enable-fpm --enable-ldpd --with-pkg-git-version --with-pkg-extra-version=-MyOwn
FRRVersion

make
make check
sudo make install <<< *******

Raspberry Wifi Setup HeadLess

After installing Raspbian on your new Micro SD Card.

Connect the SDCard to your laptop using a adpater MicroSD to SD Adapter or using an MicroSD to USB adapter.

Under the terminal on your MacOSX, go to the boot mount point

cd /Volume/boot
vi wpa_supplicant.conf

After add in the new file

country=FR
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
scan_ssid=1
ssid="YourSSID" psk="yourkey" key_mgmt=WPA-PSK }

If you need ssh (sure you need) in the same directory

/Volume/boot/# touch ssh

Sources: https://www.raspberrypi.org/documentation/configuration/wireless/headless.md

DellEMC Networking and Ansible

Sources:
http://docs.ansible.com/ansible/latest/intro_installation.html#latest-releases-via-apt-ubuntu
https://galaxy.ansible.com/Dell-Networking/
https://ansible-dellos-docs.readthedocs.io/en/latest/install.html

Ansible installation under an Ubuntu Server or Debian  – “Fresh Install”

$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt-get update 
$ sudo apt-get install ansible

After the installation, you do create a file with role srequire to be install and enabled. Not all are necessary…but if you want enable all module by default, you can copy past this one. This install latest role for OS6/OS9/OS10

$ vi dellemc_roles.txt
Dell-Networking.dellos-aaa
Dell-Networking.dellos-acl
Dell-Networking.dellos-bgp
Dell-Networking.dellos-copy-config
Dell-Networking.dellos-dcb
Dell-Networking.dellos-dns
Dell-Networking.dellos-ecmp
Dell-Networking.dellos-flow-monitor
Dell-Networking.dellos-image-upgrade
Dell-Networking.dellos-interface
Dell-Networking.dellos-lag
Dell-Networking.dellos-lldp
Dell-Networking.dellos-logging
Dell-Networking.dellos-ntp
Dell-Networking.dellos-prefix-list
Dell-Networking.dellos-qos
Dell-Networking.dellos-route-map
Dell-Networking.dellos-sflow
Dell-Networking.dellos-snmp
Dell-Networking.dellos-system
Dell-Networking.dellos-users
Dell-Networking.dellos-vlan
Dell-Networking.dellos-vlt
Dell-Networking.dellos-vrf
Dell-Networking.dellos-vrrp
Dell-Networking.dellos-xstp
Dell-Networking.dellos_vxlan
Dell-Networking.dellos_bfd
Dell-Networking.dellos_uplink
Dell-Networking.dellos_fabric_summary
Dell-Networking.dellos_network_validation

Install roles files

$ sudo ansible-galaxy install –r dellemc_roles.txt

For more details and support platform for each role.
https://ansible-dellos-docs.readthedocs.io/en/latest/roles.html