Create a TFTP server and backup and restore device configurations

âš  I am using a Debian machine for my TFTP server, so the commands presented are only valid for Linux. To do on your server On a Debian 10 machine, install a TFTP server: sudo -s apt install xinetd tftpd tftp Once the service is installed, you need to create the configuration file : nano /etc/xinetd.d/tftp and add the following lines to the file: service tftp { protocol = udp port = 69 socket_type = dgram wait = yes user = nobody server = /usr/sbin/in....

January 6, 2023 Â· 2 min Â· Thomas

Create a NTP server with Chrony and synchronize its equipements

⚠ I’m using a Debian machine for my Chrony server Things to do on your server (Linux or Windows) Firstly, install Chrony: sudo -s apt install chrony We can then check the content of the “chrony.conf” file: nano /etc/chrony/chrony.conf Then we have to declare our NTP pool. We will go to line 3 of the file to make some changes: pool 2.debian.pool.ntp.org iburst become: #pool 2.debian.pool.ntp.org iburst and now we can add our pools by entering the following lines instead:...

January 6, 2023 Â· 2 min Â· Thomas

Create a virtual machine with Vmware

I specify that I’m using Vmware Worksation 16 Pro. The installation of a Virtual Machine (VM) is running the same way if you use the Player version. Download an iso image Go to the download page of the desired OS. In this exemple, we gonna choose a very known Linux distribution, Ubuntu. Create the virtual machine On Vmware, select “Create a new virtual machine”: A virtual machine creation wizard appears. Select “Typical”, then “Next”:...

December 1, 2022 Â· 1 min Â· Thomas

Create a proxy server with Pfsense and Squid

In this note, we will see how to install a proxy server, using Pfsense and Squid. We will use virtual machines, created under Vmware Workstation 16 Pro. The different parts of this tutorial: Part-1 Part-2 Part-3 Part-4 Part-5 Topology of our network Here is the network topology that we will use in this tutorial: To access the Internet, “PC1” will go through the “Pfsense” router, in order to leave the local network “LAN”....

December 1, 2022 Â· 3 min Â· Thomas

Basic configuration for a Cisco device

Basic Configuration Switch to privileged mode, then terminal configuration: Switch>en Switch#conf t Définir le nom du switch, ainsi que le domaine auquel il appartient (optionnel). Switch(config)# Switch(config)# hostname SwitchToto SwitchToto(config)# ip domain-name exempledomaine.local SwitchToto(config)# end Define the IP addressing of the switch. To do this, we must create a VLAN dedicated to the switch configuration (here vlan 10). The IP we are going to define will be associated to this VLAN....

November 29, 2022 Â· 2 min Â· Thomas

Create and configure a DNS server on Linux with Bind9

Install Bind9: sudo apt-get install bind9 The Bind9 files are in /etc/bind/ cd /etc/bind/ Then, we put these 3 lines in the named.conf file: include "/etc/bind/named.conf.options"; include "/etc/bind/named.conf.local"; include "/etc/bind/named.conf.default-zones"; In the Bind9 configuration file “named.conf.local”, declare its zones : zone "example.com" { type master; file "/etc/bind/db.example.com"; }; → The “file” line specifies that the configuration of our example.com zone will be done in the “db.example.com” file. In db.example.com, we configure our zone (the IP of my DNS server is 192....

November 17, 2022 Â· 2 min Â· Thomas

Set up an SSH connection on a Cisco device

Creation of user names, domains, and keys (Here we take an exemple of Cisco router.) Firstly, if you haven’t already done so, give your device a personalized name and a domain name: Router(config)# hostname Toto Toto(config)# ip domain-name exemple.com Remember to secure the privileged mode of your device! Toto(config)# enable secret <mot_de_passe> Then, we have to tell to our router (or switch) to generate aymetric key pair (required to the SSH connection)....

November 17, 2022 Â· 3 min Â· Thomas

Hugo basic commands

- hugo new site sitename -f yml Allows you to create the basic files for the creation of a new web site. The “-f yml” option will force the creation of the main configuration file in .yml (which I recommend). - hugo server Allows you to launch the web server from Hugo; this will allows us to see in live the modifications made to our web site. You have to execute this commands in the root from our site....

November 17, 2022 Â· 1 min Â· Thomas