Installation
Prepare the environment
Currently the supported operating systems are:
- Ubuntu/Debian (Kernel version 5.14 and up).
- CentOS/Fedora (Kernel version 5.14 and up).
In case you are using Mac a virtual machine is required. If you are already on Linux, please proceed to the Automatic Install section. This guide utilizes Lima.
To install Lima, use the following command:
brew install limaVERSION=$(curl -fsSL https://api.github.com/repos/lima-vm/lima/releases/latest | jq -r .tag_name)curl -fsSL "https://github.com/lima-vm/lima/releases/download/${VERSION}/lima-${VERSION:1}-$(uname -s)-$(uname -m).tar.gz" | sudo tar Cxzvm /usr/localNow create a virtual machine:
limactl start --name=quickstart template://ubuntulimactl start --name=quickstart template://k3sTo access the machine, use:
limactl shell quickstartAutomatic install
The most simple way to install Camblet is to run the following command in your terminal. This will setup the necessary repositories on your system and install the all Camblet components.
curl -s https://camblet.io/install.sh | bashCheck if Camblet is installed
Check the status of the systemd service of the agent:
sudo systemctl status camblet.serviceYou should see something like this:
● camblet.service - Camblet Agent Service Loaded: loaded (/etc/systemd/system/camblet.service; enabled; preset: enabled) Active: active (running) since Mon 2023-12-11 11:02:54 UTC; 2h 34min ago Main PID: 1158 (camblet) Tasks: 11 (limit: 4611) Memory: 28.3M CPU: 1.155s CGroup: /system.slice/camblet.service └─1158 /usr/bin/camblet agent --config /etc/camblet/config.yaml --rules-path /etc/camblet/rules/ --sd-path /etc/camblet/services/To check the logs of the Camblet agent, run the following command:
sudo journalctl -u camblet.serviceCheck the status of the Camblet kernel-module:
modinfo cambletfilename: /lib/modules/6.1.0-15-cloud-arm64/updates/dkms/camblet.koversion: 0.3.0description: Camblet - Kernel Space Access Control for Zero Trust Networkinglicense: Dual MIT/GPLauthor: Cisco Systemssrcversion: B169E3295E8A8740274017Fdepends: bearssl,libcrc32cname: cambletvermagic: 6.1.0-15-cloud-arm64 SMP mod_unload modversions aarch64sig_id: PKCS#7signer: DKMS module signing keysig_key: 66:F2:5E:BF:BF:18:04:09:64:2D:DB:5D:E9:AA:DC:95:E5:2E:68:9Bsig_hashalgo: sha256signature: 59:6F:34:6D:4F:E0:9C:D6:FA:11:52:11:21:60:5E:A5:5D:40:80:A4: 60:6B:D8:9C:0A:04:E6:56:07:75:97:E3:42:7E:15:A0:7C:F4:48:E8: 0C:BB:03:24:A7:8E:05:5B:91:6F:C1:11:70:F8:E3:8C:60:C5:87:59: 29:72:6B:89:E9:A3:2A:3B:DB:81:7C:D8:FE:BC:49:99:00:74:F7:23: 16:F9:F3:AB:81:07:A5:E9:F1:57:69:5A:E1:64:4A:8F:2D:21:9D:02: D5:10:E6:F1:58:9C:18:72:3A:7D:EC:DB:5B:E4:CE:CE:8A:E9:42:43: 8F:6D:22:57:75:17:DB:88:B4:5C:11:F4:88:56:87:1C:EC:50:D3:C8: 5E:9E:27:B2:4F:93:26:14:F3:32:D0:13:B5:9E:6B:93:73:97:95:AC: 0C:6F:63:98:D5:45:4B:D0:E1:8C:58:51:EA:C9:E6:ED:E2:E2:8B:55: 25:0D:AF:0F:CE:82:9A:B4:0D:8C:FB:B0:53:4F:0A:5B:3C:DD:3B:63: F8:21:FE:CC:F0:4B:9D:53:FB:F5:9F:7F:F8:F1:19:AB:FC:9A:04:DC: 09:37:BC:42:12:DC:51:39:8F:87:74:53:8D:23:09:62:02:31:5E:C8: 86:AE:C0:2A:E9:0E:07:AB:8B:DE:C8:2C:32:66:F2:D7parm: ktls_available:Marks if kTLS is available on the system (bool)Manual install
If you want to install Camblet manually, you can follow the steps below:
Debian/Ubuntu
Install the dependencies first:
sudo apt install -y wget gnupg linux-headers-$(uname -r) dkmsImport the Camblet repository key:
sudo wget -O- https://camblet.io/packages/camblet.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/camblet.gpg >/dev/nullAdd the Camblet repository:
sudo sh -c "echo 'deb [signed-by=/etc/apt/trusted.gpg.d/camblet.gpg] https://camblet.io/packages/deb stable main' > /etc/apt/sources.list.d/camblet.list"
sudo apt updateInstall the Camblet meta package (this will install the agent, kernel module and CLI):
sudo apt install cambletRedHat/CentOS/Fedora and derivatives
Install the dependencies first:
Without --enablerepo epel on Amazon Linux.
sudo dnf install --enablerepo epel -y dkmsImport the Camblet repository key:
sudo rpm --import https://camblet.io/packages/camblet.ascAdd the Camblet repository:
sudo tee /etc/yum.repos.d/camblet.repo >/dev/null <<EOF[camblet-repo]name=Camblet Repositorybaseurl=https://camblet.io/packages/rpmenabled=1gpgcheck=1EOF
sudo dnf makecacheInstall the Camblet meta package (this will install the agent, kernel module and CLI):
sudo dnf install cambletLoad the kernel module and start the service
Load the Camblet kernel module:
sudo modprobe cambletStart the Camblet agent service:
sudo systemctl start camblet.serviceMaintenance
Upgrade Camblet
If you have already installed Camblet and want to upgrade to the latest version, run the standard upgrade command of your package manager, for example on Debian/Ubuntu:
sudo apt update && sudo apt upgrade cambletUninstall Camblet
To uninstall Camblet, run the following command:
sudo apt autoremove camblet