Skip to content

Instantly share code, notes, and snippets.

@Avyd
Avyd / CheckPoint_Firewall_CLI_Commands
Created July 22, 2014 13:46
CheckPoint_Firewall_CLI_Commands
fw ver
fw lslogs # List log files
fw ctl iflist # Interface list
fw ctl pstat # Kernel memory and connections
fw log -c drop # Show dropped connections
fw log -f # Tail logs
fw stat -l # Show flow (policy, drop, accept..etc)
fw monitor -e 'accept host(10.1.1.1);'
fw monitor -e 'accept host(10.1.1.1) and dst=10.1.1.2;'
fw monitor -e 'accept host(1.1.1.1) and host(2.2.2.2) and not ping;'
@Avyd
Avyd / Compile to .deb
Last active September 23, 2021 09:33
Compile kernel to installable .deb package
#Install necessary things
apt-get update
apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential -y
#Get the kernel
cd /usr/src
wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.13.tar.xz
wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.13.tar.sign
gpg --verify linux-3.13.tar.sign
tar xpvf linux-3.13.tar.xz